Following the steps in the tutorial Ingress nginx for TCP and UDP services there are two issues:
After executing the command patching the deployment I received the following error:
$ cat ingress-nginx-controller-patch.yaml
spec:
template:
spec:
containers:
- name: ingress-nginx-controller
ports:
- containerPort: 6379
hostPort: 6379
$ kubectl patch deployment ingress-nginx-controller --patch "$(cat ingress-nginx-controller-patch.yaml)" -n kube-system
The Deployment "ingress-nginx-controller" is invalid: spec.template.spec.containers[0].image: Required value
$ minikube version: v1.11.0
commit: 57e2f55f47effe9ce396cea42a1e0eb4f611ebbd
@epetrov which driver are you using ?
the ingress tutotirals need to consolidated and fixed
@epetrov which driver are you using ?
@medyagh, virtualbox
Looks like merging #8451 closed this issue :(
The name was fixed in the tutorial but not the Invalid deployment patch. Does anyone have a working deployment patch? I get the same error as sepetrov, and I am also using the same minikube version. Thanks.
@sepetrov , @medyagh Hi it seems that now , the name of the container on the deployment is "controller" not "ingress-nginx-controller"
spec:
template:
spec:
containers:
- name: controller
ports:
- containerPort: 6379
hostPort: 6379
Most helpful comment
@sepetrov , @medyagh Hi it seems that now , the name of the container on the deployment is "controller" not "ingress-nginx-controller"