diff --git a/kubernetes/infrastructure/ingress-nginx/ingress-nginx.yaml b/kubernetes/infrastructure/ingress-nginx/ingress-nginx.yaml index 8aa9696..fc16180 100644 --- a/kubernetes/infrastructure/ingress-nginx/ingress-nginx.yaml +++ b/kubernetes/infrastructure/ingress-nginx/ingress-nginx.yaml @@ -24,8 +24,8 @@ spec: name: ingress-nginx-controller patch: | - op: add - path: "/spec/ports/-" - value: + path: "/spec/ports/-" #resouirce we want to change + value: #value we want to use for patching name: capacitor-tcp-9000 nodePort: 31555 port: 9000 diff --git a/kubernetes/infrastructure/ingress-nginx/patches/patches-deployment-ports.yaml b/kubernetes/infrastructure/ingress-nginx/patches/patches-deployment-ports.yaml new file mode 100644 index 0000000..27bfc8e --- /dev/null +++ b/kubernetes/infrastructure/ingress-nginx/patches/patches-deployment-ports.yaml @@ -0,0 +1,6 @@ +- op: add #action + path: "/spec/template/spec/containers/[0]/ports/-" #resouirce we want to change + value: #value we want to use for patching + containerPort: 9000 + name: capacitor + protocol: TCP \ No newline at end of file diff --git a/kubernetes/infrastructure/ingress-nginx/patches/patches-service-ports.yaml b/kubernetes/infrastructure/ingress-nginx/patches/patches-service-ports.yaml new file mode 100644 index 0000000..f59f866 --- /dev/null +++ b/kubernetes/infrastructure/ingress-nginx/patches/patches-service-ports.yaml @@ -0,0 +1,8 @@ +- op: add #action + path: "/spec/ports/-" #resouirce we want to change + value: #value we want to use for patching + name: capacitor-tcp-9000 + nodePort: 31555 + port: 9000 + protocol: TCP + targetPort: 9000 \ No newline at end of file