Update README.md
This commit is contained in:
parent
1caa068ac3
commit
a856691295
26
README.md
26
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`:
|
||||
```
|
||||
[...]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user