using HelmRelease postrenderer patch

This commit is contained in:
2024-06-12 03:07:06 +10:00
parent c912c7fce1
commit 45005be6d9

View File

@@ -18,26 +18,28 @@ spec:
substituteFrom:
- kind: ConfigMap
name: ingress-nginx-values
patches:
- target:
kind: Service
name: ingress-nginx-controller
patch: |
- op: add
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
- target:
kind: Deployment
name: ingress-nginx-controller
patch: |
- op: add
path: "/spec/template/spec/containers/[0]/ports/-"
value:
containerPort: 9000
name: capacitor
protocol: TCP
postRenderers:
- kustomze:
patches:
- target:
kind: Service
name: ingress-nginx-controller
patch: |
- op: add
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
- target:
kind: Deployment
name: ingress-nginx-controller
patch: |
- op: add
path: "/spec/template/spec/containers/[0]/ports/-"
value:
containerPort: 9000
name: capacitor
protocol: TCP