Patch ingress-nginx to allow namePrefix to function
This commit is contained in:
parent
6501709c08
commit
aadc898ea8
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/args/1
|
||||
value: "--publish-service=$(POD_NAMESPACE)/dev-ingress-nginx-controller"
|
|
@ -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
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/args/1
|
||||
value: "--publish-service=$(POD_NAMESPACE)/prod-ingress-nginx-controller"
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue