기능 추가
This commit is contained in:
26
yaml/account.yaml
Normal file
26
yaml/account.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: ingress-migrator
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: ingress-migrator
|
||||
rules:
|
||||
- apiGroups: ["networking.k8s.io"]
|
||||
resources: ["ingresses"]
|
||||
verbs: ["get", "list", "update", "patch"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: ingress-migrator
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: ingress-migrator
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: ingress-migrator
|
||||
namespace: testapp
|
||||
57
yaml/configmap.yaml
Normal file
57
yaml/configmap.yaml
Normal file
@@ -0,0 +1,57 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: ingress-migrator-mapping
|
||||
data:
|
||||
mapping.yaml: |
|
||||
nginx.ingress.kubernetes.io/affinity:
|
||||
haproxy: haproxy.org/cookie-persistence
|
||||
support: partial
|
||||
note: "value 수정 필요 (ex. cookie -> route)"
|
||||
|
||||
nginx.ingress.kubernetes.io/backend-protocol:
|
||||
haproxy: haproxy.org/server-ssl
|
||||
support: partial
|
||||
note: "value 수정 필요 (ex. HTTPS -> true)"
|
||||
|
||||
nginx.ingress.kubernetes.io/force-ssl-redirect:
|
||||
haproxy: haproxy.org/ssl-redirect
|
||||
support: full
|
||||
|
||||
nginx.ingress.kubernetes.io/session-cookie-hash:
|
||||
haproxy: null
|
||||
support: unsupported
|
||||
note: "HAProxy는 해시 방식 지정 불필요 (자동 제공)"
|
||||
|
||||
nginx.ingress.kubernetes.io/session-cookie-name:
|
||||
haproxy: haproxy.org/cookie-persistence
|
||||
support: full
|
||||
|
||||
nginx.ingress.kubernetes.io/ssl-redirect:
|
||||
haproxy: haproxy.org/ssl-redirect
|
||||
support: full
|
||||
|
||||
nginx.ingress.kubernetes.io/server-snippet:
|
||||
haproxy: haproxy.org/backend-config-snippet
|
||||
support: partial
|
||||
note: "value 수정 필요"
|
||||
|
||||
nginx.ingress.kubernetes.io/app-root:
|
||||
haproxy: haproxy.org/path-rewrite
|
||||
support: partial
|
||||
note: "Change Value"
|
||||
|
||||
nginx.ingress.kubernetes.io/configuration-snippet:
|
||||
haproxy: null
|
||||
support: unsupported
|
||||
note: "HAProxy does not support arbitrary NGINX snippets"
|
||||
|
||||
proxy-buffering:
|
||||
haproxy: null
|
||||
support: unsupported
|
||||
note: "HAProxy does not support arbitrary NGINX snippets"
|
||||
|
||||
gzip-level:
|
||||
haproxy: null
|
||||
support: unsupported
|
||||
note: "HAProxy does not support arbitrary NGINX snippets"
|
||||
32
yaml/deploy.yaml
Normal file
32
yaml/deploy.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: ingress-migrator-web
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: ingress-migrator-web
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: ingress-migrator-web
|
||||
spec:
|
||||
serviceAccountName: ingress-migrator
|
||||
containers:
|
||||
- name: web
|
||||
image: sa8001/ngtoha:v3
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
volumeMounts:
|
||||
- name: work
|
||||
mountPath: /work
|
||||
- name: mapping
|
||||
mountPath: /app/mapping.yaml
|
||||
subPath: mapping.yaml
|
||||
volumes:
|
||||
- name: work
|
||||
emptyDir: {}
|
||||
- name: mapping
|
||||
configMap:
|
||||
name: ingress-migrator-mapping
|
||||
11
yaml/svc.yaml
Normal file
11
yaml/svc.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: ingress-migrator-web
|
||||
spec:
|
||||
selector:
|
||||
app: ingress-migrator-web
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8080
|
||||
type: NodePort
|
||||
Reference in New Issue
Block a user