Fix publish-service patch and update README (#1867)
This commit is contained in:
parent
cabd7cb07c
commit
2b24494b55
3 changed files with 11 additions and 5 deletions
|
@ -117,7 +117,7 @@ Patch the nginx ingress controller deployment to add the flag `--publish-service
|
||||||
|
|
||||||
```console
|
```console
|
||||||
kubectl patch deployment -n ingress-nginx nginx-ingress-controller --type='json' \
|
kubectl patch deployment -n ingress-nginx nginx-ingress-controller --type='json' \
|
||||||
--patch="$(curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/patch-deployment.yaml)"
|
--patch="$(curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/publish-service-patch.yaml)"
|
||||||
```
|
```
|
||||||
|
|
||||||
For L4:
|
For L4:
|
||||||
|
@ -159,7 +159,7 @@ Patch the nginx ingress controller deployment to add the flag `--publish-service
|
||||||
|
|
||||||
```console
|
```console
|
||||||
kubectl patch deployment -n ingress-nginx nginx-ingress-controller --type='json' \
|
kubectl patch deployment -n ingress-nginx nginx-ingress-controller --type='json' \
|
||||||
--patch="$(curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/patch-deployment.yaml)"
|
--patch="$(curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/publish-service-patch.yaml)"
|
||||||
```
|
```
|
||||||
|
|
||||||
```console
|
```console
|
||||||
|
@ -187,7 +187,7 @@ Patch the nginx ingress controller deployment to add the flag `--publish-service
|
||||||
|
|
||||||
```console
|
```console
|
||||||
kubectl patch deployment -n ingress-nginx nginx-ingress-controller --type='json' \
|
kubectl patch deployment -n ingress-nginx nginx-ingress-controller --type='json' \
|
||||||
--patch="$(curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/patch-deployment.yaml)"
|
--patch="$(curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/publish-service-patch.yaml)"
|
||||||
```
|
```
|
||||||
|
|
||||||
```console
|
```console
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
[{'op': 'replace', 'path': '/spec/template/spec/containers/0/args', 'value':['/nginx-ingress-controller','--default-backend-service=$(POD_NAMESPACE)/default-http-backend','--configmap=$(POD_NAMESPACE)/nginx-configuration','--tcp-services-configmap=$(POD_NAMESPACE)/tcp-services','--udp-services-configmap=$(POD_NAMESPACE)/udp-services','--annotations-prefix=nginx.ingress.kubernetes.io','--publish-service=$(POD_NAMESPACE)/ingress-nginx']}]
|
|
7
deploy/publish-service-patch.yaml
Normal file
7
deploy/publish-service-patch.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
'op': 'add',
|
||||||
|
'path': '/spec/template/spec/containers/0/args/-',
|
||||||
|
'value': '--publish-service=$(POD_NAMESPACE)/ingress-nginx'
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in a new issue