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: substituteFrom:
- kind: ConfigMap - kind: ConfigMap
name: ingress-nginx-values name: ingress-nginx-values
patches: postRenderers:
- target: - kustomze:
kind: Service patches:
name: ingress-nginx-controller - target:
patch: | kind: Service
- op: add name: ingress-nginx-controller
path: "/spec/ports/-" #resouirce we want to change patch: |
value: #value we want to use for patching - op: add
name: capacitor-tcp-9000 path: "/spec/ports/-" #resouirce we want to change
nodePort: 31555 value: #value we want to use for patching
port: 9000 name: capacitor-tcp-9000
protocol: TCP nodePort: 31555
targetPort: 9000 port: 9000
- target: protocol: TCP
kind: Deployment targetPort: 9000
name: ingress-nginx-controller - target:
patch: | kind: Deployment
- op: add name: ingress-nginx-controller
path: "/spec/template/spec/containers/[0]/ports/-" patch: |
value: - op: add
containerPort: 9000 path: "/spec/template/spec/containers/[0]/ports/-"
name: capacitor value:
protocol: TCP containerPort: 9000
name: capacitor
protocol: TCP