변환 yaml 수정
This commit is contained in:
@@ -178,7 +178,7 @@ def save_split(data, out_dir):
|
|||||||
rendered = item.pop("_rendered_annotations", "")
|
rendered = item.pop("_rendered_annotations", "")
|
||||||
name = item["metadata"]["name"]
|
name = item["metadata"]["name"]
|
||||||
namespace = item["metadata"].get("namespace", "default")
|
namespace = item["metadata"].get("namespace", "default")
|
||||||
path = Path(out_dir) / f"{namespace}_{name}.yaml"
|
path = Path(out_dir) / f"{namespace}__{name}.yaml"
|
||||||
|
|
||||||
with open(path, "w") as f:
|
with open(path, "w") as f:
|
||||||
yaml.dump(item, f)
|
yaml.dump(item, f)
|
||||||
|
|||||||
16
report.md
Normal file
16
report.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# Ingress Migration Report
|
||||||
|
|
||||||
|
## Summary
|
||||||
|
- Converted : 2
|
||||||
|
- Partial : 1
|
||||||
|
- Unsupported: 1
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## test/nginx-ingress
|
||||||
|
|
||||||
|
- PARTIAL nginx.ingress.kubernetes.io/app-root → haproxy.org/path-rewrite
|
||||||
|
- note: Chage Value
|
||||||
|
- UNSUPPORTED proxy-buffering
|
||||||
|
- note: HAProxy does not support arbitrary NGINX snippets
|
||||||
|
|
||||||
28
yaml/test__haproxy-ingress.yaml
Normal file
28
yaml/test__haproxy-ingress.yaml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kubectl.kubernetes.io/last-applied-configuration: {"apiVersion":"networking.k8s.io/v1","kind":"Ingress","metadata":{"annotations":{},"creationTimestamp":"2025-12-29T07:28:19Z","generation":1,"name":"haproxy-ingress","namespace":"test","resourceVersion":"3565525","uid":"1c305e90-734c-4421-83a5-b3e3414796c3"},"spec":{"ingressClassName":"haproxy","rules":[{"host":"app.10.60.100.92.nip.io","http":{"paths":[{"backend":{"service":{"name":"test-app","port":{"number":8080}}},"path":"/","pathType":"Prefix"}]}}]},"status":{"loadBalancer":{}}}
|
||||||
|
|
||||||
|
annotations: {}
|
||||||
|
creationTimestamp: "2025-12-29T07:28:19Z"
|
||||||
|
generation: 1
|
||||||
|
name: haproxy-ingress
|
||||||
|
namespace: test
|
||||||
|
resourceVersion: "4241506"
|
||||||
|
uid: 1c305e90-734c-4421-83a5-b3e3414796c3
|
||||||
|
spec:
|
||||||
|
ingressClassName: haproxy
|
||||||
|
rules:
|
||||||
|
- host: app.10.60.100.92.nip.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
service:
|
||||||
|
name: test-app
|
||||||
|
port:
|
||||||
|
number: 8080
|
||||||
|
path: /
|
||||||
|
pathType: Prefix
|
||||||
|
status:
|
||||||
|
loadBalancer: {}
|
||||||
36
yaml/test__nginx-ingress.yaml
Normal file
36
yaml/test__nginx-ingress.yaml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
# HAProxy does not support arbitrary NGINX snippets
|
||||||
|
#proxy-buffering: on
|
||||||
|
|
||||||
|
# PARTIAL SUPPORT: Chage Value
|
||||||
|
haproxy.org/path-rewrite: /kor
|
||||||
|
|
||||||
|
haproxy.org/proxy-connect-timeout: 100
|
||||||
|
haproxy.org/ssl-redirect: true
|
||||||
|
annotations: {}
|
||||||
|
creationTimestamp: "2025-12-30T23:22:37Z"
|
||||||
|
generation: 1
|
||||||
|
name: nginx-ingress
|
||||||
|
namespace: test
|
||||||
|
resourceVersion: "4549046"
|
||||||
|
uid: 9948d763-7e01-4a34-9b2b-a733fd9acff5
|
||||||
|
spec:
|
||||||
|
ingressClassName: haproxy
|
||||||
|
rules:
|
||||||
|
- host: app.10.60.100.91.nip.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
service:
|
||||||
|
name: test-app
|
||||||
|
port:
|
||||||
|
number: 8080
|
||||||
|
path: /
|
||||||
|
pathType: Prefix
|
||||||
|
status:
|
||||||
|
loadBalancer:
|
||||||
|
ingress:
|
||||||
|
- ip: 10.60.100.91
|
||||||
Reference in New Issue
Block a user