Skip to content

Commit

Permalink
Merge pull request #8451 from sepetrov/fix-deployment-name
Browse files Browse the repository at this point in the history
Fix deployment name in ingress Nginx tutorial
  • Loading branch information
medyagh authored Jun 11, 2020
2 parents cd0187b + 74950b4 commit 46d23c4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions site/content/en/docs/tutorials/nginx_tcp_udp_ingress.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,24 +166,24 @@ There is one final step that must be done in order to obtain connectivity from t
We need to patch our nginx controller so that it is listening on port 6379 and can route traffic to your service. To do
this we need to create a patch file.

`nginx-ingress-controller-patch.yaml`
`ingress-nginx-controller-patch.yaml`
```yaml
spec:
template:
spec:
containers:
- name: nginx-ingress-controller
- name: ingress-nginx-controller
ports:
- containerPort: 6379
hostPort: 6379
```

Create a file called `nginx-ingress-controller-patch.yaml` and paste the contents above.
Create a file called `ingress-nginx-controller-patch.yaml` and paste the contents above.

Next apply the changes with the following command:

```shell
kubectl patch deployment nginx-ingress-controller --patch "$(cat nginx-ingress-controller-patch.yaml)" -n kube-system
kubectl patch deployment ingress-nginx-controller --patch "$(cat ingress-nginx-controller-patch.yaml)" -n kube-system
```

### Test your connection
Expand Down Expand Up @@ -212,7 +212,7 @@ In the above example we did the following:

- Created a redis deployment and service in the `default` namespace
- Patched the `tcp-services` configmap in the `kube-system` namespace
- Patched the `nginx-ingress-controller` deployment in the `kube-system` namespace
- Patched the `ingress-nginx-controller` deployment in the `kube-system` namespace
- Connected to our service from the host via port 6379

You can apply the same steps that were applied to `tcp-services` to the `udp-services` configmap as well if you have a
Expand Down

0 comments on commit 46d23c4

Please sign in to comment.