Skip to content

Commit 46d23c4

Browse files
authored
Merge pull request #8451 from sepetrov/fix-deployment-name
Fix deployment name in ingress Nginx tutorial
2 parents cd0187b + 74950b4 commit 46d23c4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

site/content/en/docs/tutorials/nginx_tcp_udp_ingress.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -166,24 +166,24 @@ There is one final step that must be done in order to obtain connectivity from t
166166
We need to patch our nginx controller so that it is listening on port 6379 and can route traffic to your service. To do
167167
this we need to create a patch file.
168168

169-
`nginx-ingress-controller-patch.yaml`
169+
`ingress-nginx-controller-patch.yaml`
170170
```yaml
171171
spec:
172172
template:
173173
spec:
174174
containers:
175-
- name: nginx-ingress-controller
175+
- name: ingress-nginx-controller
176176
ports:
177177
- containerPort: 6379
178178
hostPort: 6379
179179
```
180180

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

183183
Next apply the changes with the following command:
184184

185185
```shell
186-
kubectl patch deployment nginx-ingress-controller --patch "$(cat nginx-ingress-controller-patch.yaml)" -n kube-system
186+
kubectl patch deployment ingress-nginx-controller --patch "$(cat ingress-nginx-controller-patch.yaml)" -n kube-system
187187
```
188188

189189
### Test your connection
@@ -212,7 +212,7 @@ In the above example we did the following:
212212

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

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

0 commit comments

Comments
 (0)