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`: ``` [...]