From a85669129507ffdecdecdadb44ddbbfaacbe9fc7 Mon Sep 17 00:00:00 2001 From: Dominik Chilla <43314918+chillout2k@users.noreply.github.com> Date: Sun, 23 Aug 2020 17:45:02 +0200 Subject: [PATCH] Update README.md --- README.md | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index dbfbae9..c777cb5 100644 --- a/README.md +++ b/README.md @@ -108,15 +108,6 @@ spec: protocol: TCP selector: run: my-nginx - ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: tcp-services - namespace: ingress-nginx -data: - 9000: "default/my-nginx:80::PROXY" ``` Apply with `kubectl apply -f my-nginx-deployment.yml`: ``` @@ -158,6 +149,23 @@ spec: <<< ADD *** [...] ``` +Finally, we need to glue nginx-ingress with the my-nginx app. This will be done with the config-map `tcp-services-config-map.yml` referenced earlier in the nginx-ingress deployment definition: +``` +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: tcp-services + namespace: ingress-nginx +data: + 9000: "default/my-nginx:80::PROXY" +``` +Apply with `kubectl apply -f tcp-services-config-map.yml`: +``` +configmap/tcp-services created +``` + + Verify nginx-ingress is listening on port 9000 with `kubectl get all --all-namespaces`: ``` [...]