Patch ingress-nginx to allow namePrefix to function

This commit is contained in:
Rob Watson 2022-05-02 19:36:36 +02:00
parent 6501709c08
commit aadc898ea8
4 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,4 @@
---
- op: replace
path: /spec/template/spec/containers/0/args/1
value: "--publish-service=$(POD_NAMESPACE)/dev-ingress-nginx-controller"

View File

@ -1,3 +1,11 @@
---
namePrefix: dev-
resources:
- ../base
patchesJson6902:
# Patch the ingress-nginx deployment to allow it to use a service with a
# namePrefix. See https://github.com/kubernetes/ingress-nginx/issues/2599#issuecomment-601170289.
- target:
kind: Deployment
name: ingress-nginx-controller
path: deploy-ingress-nginx.yaml

View File

@ -0,0 +1,4 @@
---
- op: replace
path: /spec/template/spec/containers/0/args/1
value: "--publish-service=$(POD_NAMESPACE)/prod-ingress-nginx-controller"

View File

@ -1,3 +1,10 @@
namePrefix: prod-
resources:
- ../base
patchesJson6902:
# Patch the ingress-nginx deployment to allow it to use a service with a
# namePrefix. See https://github.com/kubernetes/ingress-nginx/issues/2599#issuecomment-601170289.
- target:
kind: Deployment
name: ingress-nginx-controller
path: deploy-ingress-nginx.yaml