<p>When I'm running following code:</p>
<pre class="lang-sh prettyprint-override"><code>minikube addons enable ingress
</code></pre>
<p>I'm getting following error:</p>
<pre class="lang-sh prettyprint-override"><code>▪ Using image k8s.gcr.io/ingress-nginx/controller:v0.44.0
    ▪ Using image docker.io/jettech/kube-webhook-certgen:v1.5.1
    ▪ Using image docker.io/jettech/kube-webhook-certgen:v1.5.1
🔎  Verifying ingress addon...

❌  Exiting due to MK_ENABLE: run callbacks: running callbacks: [sudo KUBECONFIG=/var/lib/minikube/kubeconfig /var/lib/minikube/binaries/v1.20.2/kubectl apply -f /etc/kubernetes/addons/ingress-configmap.yaml -f /etc/kubernetes/addons/ingress-rbac.yaml -f /etc/kubernetes/addons/ingress-dp.yaml: Process exited with status 1
stdout:
namespace/ingress-nginx unchanged
configmap/ingress-nginx-controller unchanged
configmap/tcp-services unchanged
configmap/udp-services unchanged
serviceaccount/ingress-nginx unchanged
clusterrole.rbac.authorization.k8s.io/ingress-nginx unchanged
clusterrolebinding.rbac.authorization.k8s.io/ingress-nginx unchanged
role.rbac.authorization.k8s.io/ingress-nginx unchanged
rolebinding.rbac.authorization.k8s.io/ingress-nginx unchanged
serviceaccount/ingress-nginx-admission unchanged
clusterrole.rbac.authorization.k8s.io/ingress-nginx-admission unchanged
clusterrolebinding.rbac.authorization.k8s.io/ingress-nginx-admission unchanged
role.rbac.authorization.k8s.io/ingress-nginx-admission unchanged
rolebinding.rbac.authorization.k8s.io/ingress-nginx-admission unchanged
service/ingress-nginx-controller-admission unchanged
service/ingress-nginx-controller unchanged
validatingwebhookconfiguration.admissionregistration.k8s.io/ingress-nginx-admission configured

stderr:
Error from server (Invalid): error when applying patch:
{&quot;metadata&quot;:{&quot;annotations&quot;:{&quot;kubectl.kubernetes.io/last-applied-configuration&quot;:&quot;{\&quot;apiVersion\&quot;:\&quot;apps/v1\&quot;,\&quot;kind\&quot;:\&quot;Deployment\&quot;,\&quot;metadata\&quot;:{\&quot;annotations\&quot;:{},\&quot;labels\&quot;:{\&quot;addonmanager.kubernetes.io/mode\&quot;:\&quot;Reconcile\&quot;,\&quot;app.kubernetes.io/component\&quot;:\&quot;controller\&quot;,\&quot;app.kubernetes.io/instance\&quot;:\&quot;ingress-nginx\&quot;,\&quot;app.kubernetes.io/name\&quot;:\&quot;ingress-nginx\&quot;},\&quot;name\&quot;:\&quot;ingress-nginx-controller\&quot;,\&quot;namespace\&quot;:\&quot;ingress-nginx\&quot;},\&quot;spec\&quot;:{\&quot;minReadySeconds\&quot;:0,\&quot;revisionHistoryLimit\&quot;:10,\&quot;selector\&quot;:{\&quot;matchLabels\&quot;:{\&quot;addonmanager.kubernetes.io/mode\&quot;:\&quot;Reconcile\&quot;,\&quot;app.kubernetes.io/component\&quot;:\&quot;controller\&quot;,\&quot;app.kubernetes.io/instance\&quot;:\&quot;ingress-nginx\&quot;,\&quot;app.kubernetes.io/name\&quot;:\&quot;ingress-nginx\&quot;}},\&quot;strategy\&quot;:{\&quot;rollingUpdate\&quot;:{\&quot;maxUnavailable\&quot;:1},\&quot;type\&quot;:\&quot;RollingUpdate\&quot;},\&quot;template\&quot;:{\&quot;metadata\&quot;:{\&quot;labels\&quot;:{\&quot;addonmanager.kubernetes.io/mode\&quot;:\&quot;Reconcile\&quot;,\&quot;app.kubernetes.io/component\&quot;:\&quot;controller\&quot;,\&quot;app.kubernetes.io/instance\&quot;:\&quot;ingress-nginx\&quot;,\&quot;app.kubernetes.io/name\&quot;:\&quot;ingress-nginx\&quot;,\&quot;gcp-auth-skip-secret\&quot;:\&quot;true\&quot;}},\&quot;spec\&quot;:{\&quot;containers\&quot;:[{\&quot;args\&quot;:[\&quot;/nginx-ingress-controller\&quot;,\&quot;--ingress-class=nginx\&quot;,\&quot;--configmap=$(POD_NAMESPACE)/ingress-nginx-controller\&quot;,\&quot;--report-node-internal-ip-address\&quot;,\&quot;--tcp-services-configmap=$(POD_NAMESPACE)/tcp-services\&quot;,\&quot;--udp-services-configmap=$(POD_NAMESPACE)/udp-services\&quot;,\&quot;--validating-webhook=:8443\&quot;,\&quot;--validating-webhook-certificate=/usr/local/certificates/cert\&quot;,\&quot;--validating-webhook-key=/usr/local/certificates/key\&quot;],\&quot;env\&quot;:[{\&quot;name\&quot;:\&quot;POD_NAME\&quot;,\&quot;valueFrom\&quot;:{\&quot;fieldRef\&quot;:{\&quot;fieldPath\&quot;:\&quot;metadata.name\&quot;}}},{\&quot;name\&quot;:\&quot;POD_NAMESPACE\&quot;,\&quot;valueFrom\&quot;:{\&quot;fieldRef\&quot;:{\&quot;fieldPath\&quot;:\&quot;metadata.namespace\&quot;}}},{\&quot;name\&quot;:\&quot;LD_PRELOAD\&quot;,\&quot;value\&quot;:\&quot;/usr/local/lib/libmimalloc.so\&quot;}],\&quot;image\&quot;:\&quot;k8s.gcr.io/ingress-nginx/controller:v0.44.0@sha256:3dd0fac48073beaca2d67a78c746c7593f9c575168a17139a9955a82c63c4b9a\&quot;,\&quot;imagePullPolicy\&quot;:\&quot;IfNotPresent\&quot;,\&quot;lifecycle\&quot;:{\&quot;preStop\&quot;:{\&quot;exec\&quot;:{\&quot;command\&quot;:[\&quot;/wait-shutdown\&quot;]}}},\&quot;livenessProbe\&quot;:{\&quot;failureThreshold\&quot;:5,\&quot;httpGet\&quot;:{\&quot;path\&quot;:\&quot;/healthz\&quot;,\&quot;port\&quot;:10254,\&quot;scheme\&quot;:\&quot;HTTP\&quot;},\&quot;initialDelaySeconds\&quot;:10,\&quot;periodSeconds\&quot;:10,\&quot;successThreshold\&quot;:1,\&quot;timeoutSeconds\&quot;:1},\&quot;name\&quot;:\&quot;controller\&quot;,\&quot;ports\&quot;:[{\&quot;containerPort\&quot;:80,\&quot;hostPort\&quot;:80,\&quot;name\&quot;:\&quot;http\&quot;,\&quot;protocol\&quot;:\&quot;TCP\&quot;},{\&quot;containerPort\&quot;:443,\&quot;hostPort\&quot;:443,\&quot;name\&quot;:\&quot;https\&quot;,\&quot;protocol\&quot;:\&quot;TCP\&quot;},{\&quot;containerPort\&quot;:8443,\&quot;name\&quot;:\&quot;webhook\&quot;,\&quot;protocol\&quot;:\&quot;TCP\&quot;}],\&quot;readinessProbe\&quot;:{\&quot;failureThreshold\&quot;:3,\&quot;httpGet\&quot;:{\&quot;path\&quot;:\&quot;/healthz\&quot;,\&quot;port\&quot;:10254,\&quot;scheme\&quot;:\&quot;HTTP\&quot;},\&quot;initialDelaySeconds\&quot;:10,\&quot;periodSeconds\&quot;:10,\&quot;successThreshold\&quot;:1,\&quot;timeoutSeconds\&quot;:1},\&quot;resources\&quot;:{\&quot;requests\&quot;:{\&quot;cpu\&quot;:\&quot;100m\&quot;,\&quot;memory\&quot;:\&quot;90Mi\&quot;}},\&quot;securityContext\&quot;:{\&quot;allowPrivilegeEscalation\&quot;:true,\&quot;capabilities\&quot;:{\&quot;add\&quot;:[\&quot;NET_BIND_SERVICE\&quot;],\&quot;drop\&quot;:[\&quot;ALL\&quot;]},\&quot;runAsUser\&quot;:101},\&quot;volumeMounts\&quot;:[{\&quot;mountPath\&quot;:\&quot;/usr/local/certificates/\&quot;,\&quot;name\&quot;:\&quot;webhook-cert\&quot;,\&quot;readOnly\&quot;:true}]}],\&quot;dnsPolicy\&quot;:\&quot;ClusterFirst\&quot;,\&quot;serviceAccountName\&quot;:\&quot;ingress-nginx\&quot;,\&quot;volumes\&quot;:[{\&quot;name\&quot;:\&quot;webhook-cert\&quot;,\&quot;secret\&quot;:{\&quot;secretName\&quot;:\&quot;ingress-nginx-admission\&quot;}}]}}}}\n&quot;},&quot;labels&quot;:{&quot;addonmanager.kubernetes.io/mode&quot;:&quot;Reconcile&quot;,&quot;app.kubernetes.io/managed-by&quot;:null,&quot;app.kubernetes.io/version&quot;:null,&quot;helm.sh/chart&quot;:null}},&quot;spec&quot;:{&quot;minReadySeconds&quot;:0,&quot;selector&quot;:{&quot;matchLabels&quot;:{&quot;addonmanager.kubernetes.io/mode&quot;:&quot;Reconcile&quot;}},&quot;strategy&quot;:{&quot;$retainKeys&quot;:[&quot;rollingUpdate&quot;,&quot;type&quot;],&quot;rollingUpdate&quot;:{&quot;maxUnavailable&quot;:1}},&quot;template&quot;:{&quot;metadata&quot;:{&quot;labels&quot;:{&quot;addonmanager.kubernetes.io/mode&quot;:&quot;Reconcile&quot;,&quot;gcp-auth-skip-secret&quot;:&quot;true&quot;}},&quot;spec&quot;:{&quot;$setElementOrder/containers&quot;:[{&quot;name&quot;:&quot;controller&quot;}],&quot;containers&quot;:[{&quot;$setElementOrder/ports&quot;:[{&quot;containerPort&quot;:80},{&quot;containerPort&quot;:443},{&quot;containerPort&quot;:8443}],&quot;args&quot;:[&quot;/nginx-ingress-controller&quot;,&quot;--ingress-class=nginx&quot;,&quot;--configmap=$(POD_NAMESPACE)/ingress-nginx-controller&quot;,&quot;--report-node-internal-ip-address&quot;,&quot;--tcp-services-configmap=$(POD_NAMESPACE)/tcp-services&quot;,&quot;--udp-services-configmap=$(POD_NAMESPACE)/udp-services&quot;,&quot;--validating-webhook=:8443&quot;,&quot;--validating-webhook-certificate=/usr/local/certificates/cert&quot;,&quot;--validating-webhook-key=/usr/local/certificates/key&quot;],&quot;image&quot;:&quot;k8s.gcr.io/ingress-nginx/controller:v0.44.0@sha256:3dd0fac48073beaca2d67a78c746c7593f9c575168a17139a9955a82c63c4b9a&quot;,&quot;name&quot;:&quot;controller&quot;,&quot;ports&quot;:[{&quot;containerPort&quot;:80,&quot;hostPort&quot;:80},{&quot;containerPort&quot;:443,&quot;hostPort&quot;:443}]}],&quot;nodeSelector&quot;:null,&quot;terminationGracePeriodSeconds&quot;:null}}}}
to:
Resource: &quot;apps/v1, Resource=deployments&quot;, GroupVersionKind: &quot;apps/v1, Kind=Deployment&quot;
Name: &quot;ingress-nginx-controller&quot;, Namespace: &quot;ingress-nginx&quot;
for: &quot;/etc/kubernetes/addons/ingress-dp.yaml&quot;: Deployment.apps &quot;ingress-nginx-controller&quot; is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{&quot;addonmanager.kubernetes.io/mode&quot;:&quot;Reconcile&quot;, &quot;app.kubernetes.io/component&quot;:&quot;controller&quot;, &quot;app.kubernetes.io/instance&quot;:&quot;ingress-nginx&quot;, &quot;app.kubernetes.io/name&quot;:&quot;ingress-nginx&quot;}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
Error from server (Invalid): error when applying patch:
{&quot;metadata&quot;:{&quot;annotations&quot;:{&quot;helm.sh/hook&quot;:null,&quot;helm.sh/hook-delete-policy&quot;:null,&quot;kubectl.kubernetes.io/last-applied-configuration&quot;:&quot;{\&quot;apiVersion\&quot;:\&quot;batch/v1\&quot;,\&quot;kind\&quot;:\&quot;Job\&quot;,\&quot;metadata\&quot;:{\&quot;annotations\&quot;:{},\&quot;labels\&quot;:{\&quot;addonmanager.kubernetes.io/mode\&quot;:\&quot;Reconcile\&quot;,\&quot;app.kubernetes.io/component\&quot;:\&quot;admission-webhook\&quot;,\&quot;app.kubernetes.io/instance\&quot;:\&quot;ingress-nginx\&quot;,\&quot;app.kubernetes.io/name\&quot;:\&quot;ingress-nginx\&quot;},\&quot;name\&quot;:\&quot;ingress-nginx-admission-create\&quot;,\&quot;namespace\&quot;:\&quot;ingress-nginx\&quot;},\&quot;spec\&quot;:{\&quot;template\&quot;:{\&quot;metadata\&quot;:{\&quot;labels\&quot;:{\&quot;addonmanager.kubernetes.io/mode\&quot;:\&quot;Reconcile\&quot;,\&quot;app.kubernetes.io/component\&quot;:\&quot;admission-webhook\&quot;,\&quot;app.kubernetes.io/instance\&quot;:\&quot;ingress-nginx\&quot;,\&quot;app.kubernetes.io/name\&quot;:\&quot;ingress-nginx\&quot;},\&quot;name\&quot;:\&quot;ingress-nginx-admission-create\&quot;},\&quot;spec\&quot;:{\&quot;containers\&quot;:[{\&quot;args\&quot;:[\&quot;create\&quot;,\&quot;--host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc\&quot;,\&quot;--namespace=$(POD_NAMESPACE)\&quot;,\&quot;--secret-name=ingress-nginx-admission\&quot;],\&quot;env\&quot;:[{\&quot;name\&quot;:\&quot;POD_NAMESPACE\&quot;,\&quot;valueFrom\&quot;:{\&quot;fieldRef\&quot;:{\&quot;fieldPath\&quot;:\&quot;metadata.namespace\&quot;}}}],\&quot;image\&quot;:\&quot;docker.io/jettech/kube-webhook-certgen:v1.5.1@sha256:950833e19ade18cd389d647efb88992a7cc077abedef343fa59e012d376d79b7\&quot;,\&quot;imagePullPolicy\&quot;:\&quot;IfNotPresent\&quot;,\&quot;name\&quot;:\&quot;create\&quot;}],\&quot;restartPolicy\&quot;:\&quot;OnFailure\&quot;,\&quot;securityContext\&quot;:{\&quot;runAsNonRoot\&quot;:true,\&quot;runAsUser\&quot;:2000},\&quot;serviceAccountName\&quot;:\&quot;ingress-nginx-admission\&quot;}}}}\n&quot;},&quot;labels&quot;:{&quot;addonmanager.kubernetes.io/mode&quot;:&quot;Reconcile&quot;,&quot;app.kubernetes.io/managed-by&quot;:null,&quot;app.kubernetes.io/version&quot;:null,&quot;helm.sh/chart&quot;:null}},&quot;spec&quot;:{&quot;template&quot;:{&quot;metadata&quot;:{&quot;labels&quot;:{&quot;addonmanager.kubernetes.io/mode&quot;:&quot;Reconcile&quot;,&quot;app.kubernetes.io/managed-by&quot;:null,&quot;app.kubernetes.io/version&quot;:null,&quot;helm.sh/chart&quot;:null}},&quot;spec&quot;:{&quot;$setElementOrder/containers&quot;:[{&quot;name&quot;:&quot;create&quot;}],&quot;containers&quot;:[{&quot;image&quot;:&quot;docker.io/jettech/kube-webhook-certgen:v1.5.1@sha256:950833e19ade18cd389d647efb88992a7cc077abedef343fa59e012d376d79b7&quot;,&quot;name&quot;:&quot;create&quot;}]}}}}
to:
Resource: &quot;batch/v1, Resource=jobs&quot;, GroupVersionKind: &quot;batch/v1, Kind=Job&quot;
Name: &quot;ingress-nginx-admission-create&quot;, Namespace: &quot;ingress-nginx&quot;
for: &quot;/etc/kubernetes/addons/ingress-dp.yaml&quot;: Job.batch &quot;ingress-nginx-admission-create&quot; is invalid: spec.template: Invalid value: core.PodTemplateSpec{ObjectMeta:v1.ObjectMeta{Name:&quot;ingress-nginx-admission-create&quot;, GenerateName:&quot;&quot;, Namespace:&quot;&quot;, SelfLink:&quot;&quot;, UID:&quot;&quot;, ResourceVersion:&quot;&quot;, Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string{&quot;addonmanager.kubernetes.io/mode&quot;:&quot;Reconcile&quot;, &quot;app.kubernetes.io/component&quot;:&quot;admission-webhook&quot;, &quot;app.kubernetes.io/instance&quot;:&quot;ingress-nginx&quot;, &quot;app.kubernetes.io/name&quot;:&quot;ingress-nginx&quot;, &quot;controller-uid&quot;:&quot;d33a74a3-101c-4e82-a2b7-45b46068f189&quot;, &quot;job-name&quot;:&quot;ingress-nginx-admission-create&quot;}, Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:&quot;&quot;, ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Spec:core.PodSpec{Volumes:[]core.Volume(nil), InitContainers:[]core.Container(nil), Containers:[]core.Container{core.Container{Name:&quot;create&quot;, Image:&quot;docker.io/jettech/kube-webhook-certgen:v1.5.1@sha256:950833e19ade18cd389d647efb88992a7cc077abedef343fa59e012d376d79b7&quot;, Command:[]string(nil), Args:[]string{&quot;create&quot;, &quot;--host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc&quot;, &quot;--namespace=$(POD_NAMESPACE)&quot;, &quot;--secret-name=ingress-nginx-admission&quot;}, WorkingDir:&quot;&quot;, Ports:[]core.ContainerPort(nil), EnvFrom:[]core.EnvFromSource(nil), Env:[]core.EnvVar{core.EnvVar{Name:&quot;POD_NAMESPACE&quot;, Value:&quot;&quot;, ValueFrom:(*core.EnvVarSource)(0xc00a79dea0)}}, Resources:core.ResourceRequirements{Limits:core.ResourceList(nil), Requests:core.ResourceList(nil)}, VolumeMounts:[]core.VolumeMount(nil), VolumeDevices:[]core.VolumeDevice(nil), LivenessProbe:(*core.Probe)(nil), ReadinessProbe:(*core.Probe)(nil), StartupProbe:(*core.Probe)(nil), Lifecycle:(*core.Lifecycle)(nil), TerminationMessagePath:&quot;/dev/termination-log&quot;, TerminationMessagePolicy:&quot;File&quot;, ImagePullPolicy:&quot;IfNotPresent&quot;, SecurityContext:(*core.SecurityContext)(nil), Stdin:false, StdinOnce:false, TTY:false}}, EphemeralContainers:[]core.EphemeralContainer(nil), RestartPolicy:&quot;OnFailure&quot;, TerminationGracePeriodSeconds:(*int64)(0xc003184dc0), ActiveDeadlineSeconds:(*int64)(nil), DNSPolicy:&quot;ClusterFirst&quot;, NodeSelector:map[string]string(nil), ServiceAccountName:&quot;ingress-nginx-admission&quot;, AutomountServiceAccountToken:(*bool)(nil), NodeName:&quot;&quot;, SecurityContext:(*core.PodSecurityContext)(0xc010b3d980), ImagePullSecrets:[]core.LocalObjectReference(nil), Hostname:&quot;&quot;, Subdomain:&quot;&quot;, SetHostnameAsFQDN:(*bool)(nil), Affinity:(*core.Affinity)(nil), SchedulerName:&quot;default-scheduler&quot;, Tolerations:[]core.Toleration(nil), HostAliases:[]core.HostAlias(nil), PriorityClassName:&quot;&quot;, Priority:(*int32)(nil), PreemptionPolicy:(*core.PreemptionPolicy)(nil), DNSConfig:(*core.PodDNSConfig)(nil), ReadinessGates:[]core.PodReadinessGate(nil), RuntimeClassName:(*string)(nil), Overhead:core.ResourceList(nil), EnableServiceLinks:(*bool)(nil), TopologySpreadConstraints:[]core.TopologySpreadConstraint(nil)}}: field is immutable
Error from server (Invalid): error when applying patch:
{&quot;metadata&quot;:{&quot;annotations&quot;:{&quot;helm.sh/hook&quot;:null,&quot;helm.sh/hook-delete-policy&quot;:null,&quot;kubectl.kubernetes.io/last-applied-configuration&quot;:&quot;{\&quot;apiVersion\&quot;:\&quot;batch/v1\&quot;,\&quot;kind\&quot;:\&quot;Job\&quot;,\&quot;metadata\&quot;:{\&quot;annotations\&quot;:{},\&quot;labels\&quot;:{\&quot;addonmanager.kubernetes.io/mode\&quot;:\&quot;Reconcile\&quot;,\&quot;app.kubernetes.io/component\&quot;:\&quot;admission-webhook\&quot;,\&quot;app.kubernetes.io/instance\&quot;:\&quot;ingress-nginx\&quot;,\&quot;app.kubernetes.io/name\&quot;:\&quot;ingress-nginx\&quot;},\&quot;name\&quot;:\&quot;ingress-nginx-admission-patch\&quot;,\&quot;namespace\&quot;:\&quot;ingress-nginx\&quot;},\&quot;spec\&quot;:{\&quot;template\&quot;:{\&quot;metadata\&quot;:{\&quot;labels\&quot;:{\&quot;addonmanager.kubernetes.io/mode\&quot;:\&quot;Reconcile\&quot;,\&quot;app.kubernetes.io/component\&quot;:\&quot;admission-webhook\&quot;,\&quot;app.kubernetes.io/instance\&quot;:\&quot;ingress-nginx\&quot;,\&quot;app.kubernetes.io/name\&quot;:\&quot;ingress-nginx\&quot;},\&quot;name\&quot;:\&quot;ingress-nginx-admission-patch\&quot;},\&quot;spec\&quot;:{\&quot;containers\&quot;:[{\&quot;args\&quot;:[\&quot;patch\&quot;,\&quot;--webhook-name=ingress-nginx-admission\&quot;,\&quot;--namespace=$(POD_NAMESPACE)\&quot;,\&quot;--patch-mutating=false\&quot;,\&quot;--secret-name=ingress-nginx-admission\&quot;,\&quot;--patch-failure-policy=Fail\&quot;],\&quot;env\&quot;:[{\&quot;name\&quot;:\&quot;POD_NAMESPACE\&quot;,\&quot;valueFrom\&quot;:{\&quot;fieldRef\&quot;:{\&quot;fieldPath\&quot;:\&quot;metadata.namespace\&quot;}}}],\&quot;image\&quot;:\&quot;docker.io/jettech/kube-webhook-certgen:v1.5.1@sha256:950833e19ade18cd389d647efb88992a7cc077abedef343fa59e012d376d79b7\&quot;,\&quot;imagePullPolicy\&quot;:\&quot;IfNotPresent\&quot;,\&quot;name\&quot;:\&quot;patch\&quot;}],\&quot;restartPolicy\&quot;:\&quot;OnFailure\&quot;,\&quot;securityContext\&quot;:{\&quot;runAsNonRoot\&quot;:true,\&quot;runAsUser\&quot;:2000},\&quot;serviceAccountName\&quot;:\&quot;ingress-nginx-admission\&quot;}}}}\n&quot;},&quot;labels&quot;:{&quot;addonmanager.kubernetes.io/mode&quot;:&quot;Reconcile&quot;,&quot;app.kubernetes.io/managed-by&quot;:null,&quot;app.kubernetes.io/version&quot;:null,&quot;helm.sh/chart&quot;:null}},&quot;spec&quot;:{&quot;template&quot;:{&quot;metadata&quot;:{&quot;labels&quot;:{&quot;addonmanager.kubernetes.io/mode&quot;:&quot;Reconcile&quot;,&quot;app.kubernetes.io/managed-by&quot;:null,&quot;app.kubernetes.io/version&quot;:null,&quot;helm.sh/chart&quot;:null}},&quot;spec&quot;:{&quot;$setElementOrder/containers&quot;:[{&quot;name&quot;:&quot;patch&quot;}],&quot;containers&quot;:[{&quot;image&quot;:&quot;docker.io/jettech/kube-webhook-certgen:v1.5.1@sha256:950833e19ade18cd389d647efb88992a7cc077abedef343fa59e012d376d79b7&quot;,&quot;name&quot;:&quot;patch&quot;}]}}}}
to:
Resource: &quot;batch/v1, Resource=jobs&quot;, GroupVersionKind: &quot;batch/v1, Kind=Job&quot;
Name: &quot;ingress-nginx-admission-patch&quot;, Namespace: &quot;ingress-nginx&quot;
for: &quot;/etc/kubernetes/addons/ingress-dp.yaml&quot;: Job.batch &quot;ingress-nginx-admission-patch&quot; is invalid: spec.template: Invalid value: core.PodTemplateSpec{ObjectMeta:v1.ObjectMeta{Name:&quot;ingress-nginx-admission-patch&quot;, GenerateName:&quot;&quot;, Namespace:&quot;&quot;, SelfLink:&quot;&quot;, UID:&quot;&quot;, ResourceVersion:&quot;&quot;, Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string{&quot;addonmanager.kubernetes.io/mode&quot;:&quot;Reconcile&quot;, &quot;app.kubernetes.io/component&quot;:&quot;admission-webhook&quot;, &quot;app.kubernetes.io/instance&quot;:&quot;ingress-nginx&quot;, &quot;app.kubernetes.io/name&quot;:&quot;ingress-nginx&quot;, &quot;controller-uid&quot;:&quot;ef303f40-b52d-49c5-ab80-8330379fed36&quot;, &quot;job-name&quot;:&quot;ingress-nginx-admission-patch&quot;}, Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:&quot;&quot;, ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Spec:core.PodSpec{Volumes:[]core.Volume(nil), InitContainers:[]core.Container(nil), Containers:[]core.Container{core.Container{Name:&quot;patch&quot;, Image:&quot;docker.io/jettech/kube-webhook-certgen:v1.5.1@sha256:950833e19ade18cd389d647efb88992a7cc077abedef343fa59e012d376d79b7&quot;, Command:[]string(nil), Args:[]string{&quot;patch&quot;, &quot;--webhook-name=ingress-nginx-admission&quot;, &quot;--namespace=$(POD_NAMESPACE)&quot;, &quot;--patch-mutating=false&quot;, &quot;--secret-name=ingress-nginx-admission&quot;, &quot;--patch-failure-policy=Fail&quot;}, WorkingDir:&quot;&quot;, Ports:[]core.ContainerPort(nil), EnvFrom:[]core.EnvFromSource(nil), Env:[]core.EnvVar{core.EnvVar{Name:&quot;POD_NAMESPACE&quot;, Value:&quot;&quot;, ValueFrom:(*core.EnvVarSource)(0xc00fd798a0)}}, Resources:core.ResourceRequirements{Limits:core.ResourceList(nil), Requests:core.ResourceList(nil)}, VolumeMounts:[]core.VolumeMount(nil), VolumeDevices:[]core.VolumeDevice(nil), LivenessProbe:(*core.Probe)(nil), ReadinessProbe:(*core.Probe)(nil), StartupProbe:(*core.Probe)(nil), Lifecycle:(*core.Lifecycle)(nil), TerminationMessagePath:&quot;/dev/termination-log&quot;, TerminationMessagePolicy:&quot;File&quot;, ImagePullPolicy:&quot;IfNotPresent&quot;, SecurityContext:(*core.SecurityContext)(nil), Stdin:false, StdinOnce:false, TTY:false}}, EphemeralContainers:[]core.EphemeralContainer(nil), RestartPolicy:&quot;OnFailure&quot;, TerminationGracePeriodSeconds:(*int64)(0xc00573d190), ActiveDeadlineSeconds:(*int64)(nil), DNSPolicy:&quot;ClusterFirst&quot;, NodeSelector:map[string]string(nil), ServiceAccountName:&quot;ingress-nginx-admission&quot;, AutomountServiceAccountToken:(*bool)(nil), NodeName:&quot;&quot;, SecurityContext:(*core.PodSecurityContext)(0xc00d7d9100), ImagePullSecrets:[]core.LocalObjectReference(nil), Hostname:&quot;&quot;, Subdomain:&quot;&quot;, SetHostnameAsFQDN:(*bool)(nil), Affinity:(*core.Affinity)(nil), SchedulerName:&quot;default-scheduler&quot;, Tolerations:[]core.Toleration(nil), HostAliases:[]core.HostAlias(nil), PriorityClassName:&quot;&quot;, Priority:(*int32)(nil), PreemptionPolicy:(*core.PreemptionPolicy)(nil), DNSConfig:(*core.PodDNSConfig)(nil), ReadinessGates:[]core.PodReadinessGate(nil), RuntimeClassName:(*string)(nil), Overhead:core.ResourceList(nil), EnableServiceLinks:(*bool)(nil), TopologySpreadConstraints:[]core.TopologySpreadConstraint(nil)}}: field is immutable
]

😿  If the above advice does not help, please let us know: 
👉  https://github.com/kubernetes/minikube/issues/new/choose
</code></pre>
<p>So I had some bug issue in my PC. So, i reinstall minikube. After this when I use <code>minikube start</code> and all want fine. But when i enable ingress then the above error was showing.</p>
<p>And when i run <code>skaffold dev</code> the following error was showing:</p>
<pre class="lang-sh prettyprint-override"><code>Warning: extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
 - Error from server (InternalError): error when creating &quot;STDIN&quot;: Internal error occurred: failed calling webhook &quot;validate.nginx.ingress.kubernetes.io&quot;: an error on the server (&quot;&quot;) has prevented the request from succeeding
exiting dev mode because first deploy failed: kubectl apply: exit status 1

</code></pre>

Ishan Joshi
<p>As <strong>@Brian de Alwis</strong> pointed out in the comments section, this PR <a href="https://github.com/kubernetes/minikube/pull/11189" rel="nofollow noreferrer">#11189</a> should resolve the above issue.</p>
<p>You can try the <a href="https://github.com/kubernetes/minikube/releases/tag/v1.20.0-beta.0" rel="nofollow noreferrer">v1.20.0-beta.0</a> release with this fix. Additionally, a stable <a href="https://github.com/kubernetes/minikube/releases/tag/v1.20.0" rel="nofollow noreferrer">v1.20.0</a> version is now available.</p>
