Minikube: Invald deployment patch in Ingress nginx tutorial

Created on 11 Jun 2020  路  5Comments  路  Source: kubernetes/minikube

Following the steps in the tutorial Ingress nginx for TCP and UDP services there are two issues:

  1. Invalid deployment name (fixed in #8451)
  2. Invalid deployment patch

Invalid deployment patch

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

$ minikube version: v1.11.0

commit: 57e2f55f47effe9ce396cea42a1e0eb4f611ebbd
addoingress kinsupport triagneeds-information

Most helpful comment

@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

All 5 comments

@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
Was this page helpful?
0 / 5 - 0 ratings