From a948a15fbd10fe25262d890c6205aadf7201bdba Mon Sep 17 00:00:00 2001 From: Dominik Chilla Date: Sun, 23 Aug 2020 21:20:36 +0200 Subject: [PATCH] explicit kubectl commands --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2fc6b26..0caecd0 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Finally `systemctl daemon-reload` and `systemctl restart k3s` https://kubernetes.github.io/ingress-nginx/deploy/#bare-metal ### Change service type from NodePort to LoadBalancer -`kubectl edit service -n ingress-nginx` and change `type: NodePort` to `type: LoadBalancer` +`kubectl edit service -n ingress-nginx ingress-nginx-controller` and change `type: NodePort` to `type: LoadBalancer` Port 80 and 443 should listen now on an *External-IP* `kubectl get all --all-namespaces`: ``` @@ -58,7 +58,7 @@ dominik@muggler:~$ curl -s http://10.62.94.246 ### Enable nginx-ingress tcp- and udp-services for apps other than http/s Docs: https://kubernetes.github.io/ingress-nginx/user-guide/exposing-tcp-udp-services/ -`kubectl edit deployment -n ingress-nginx` and search for `spec:`/`template`/`spec`/`containers` section: +`kubectl edit deployment -n ingress-nginx ingress-nginx-controller` and search for `spec:`/`template`/`spec`/`containers` section: ``` [...] spec: @@ -89,7 +89,7 @@ spec: ``` ## Enable client-IP transparency and expose TCP-port 9000 -Enable client-IP transparency and expose my-nginx app on nginx-ingress TCP-port 9000: `kubectl edit service -n ingress-nginx` +Enable client-IP transparency and expose my-nginx app on nginx-ingress TCP-port 9000: `kubectl edit service -n ingress-nginx ingress-nginx-controller` Find the `ports:`-section of the `ingress-nginx-controller` service and *ADD* the definition for port 9000: ``` [...]