<p>I'm running a kubernetes cluster hostet inside 4 kvm, managed by proxmox. After installing the nginx-ingress-controller with</p>
<pre><code>helm install nginx-ingress stable/nginx-ingress --set controller.publishService.enabled=true -n nginx-ingress
</code></pre>
<p>the controller is crashing (crashloop) . The logs don't really help (or i don't know where to look exactly)</p>
<p>thanks Peter</p>
<p>herer the cluster pods:</p>
<pre><code>root@sedeka78:~# kubectl get pods --all-namespaces -o wide
NAMESPACE              NAME                                             READY   STATUS             RESTARTS   AGE   IP            NODE       NOMINATED NODE   READINESS GATES
kube-system            coredns-66bff467f8-jv2mx                         1/1     Running            0          83m   10.244.0.9    sedeka78   &lt;none&gt;           &lt;none&gt;
kube-system            coredns-66bff467f8-vwrzb                         1/1     Running            0          83m   10.244.0.6    sedeka78   &lt;none&gt;           &lt;none&gt;
kube-system            etcd-sedeka78                                    1/1     Running            2          84m   10.10.10.78   sedeka78   &lt;none&gt;           &lt;none&gt;
kube-system            kube-apiserver-sedeka78                          1/1     Running            2          84m   10.10.10.78   sedeka78   &lt;none&gt;           &lt;none&gt;
kube-system            kube-controller-manager-sedeka78                 1/1     Running            4          84m   10.10.10.78   sedeka78   &lt;none&gt;           &lt;none&gt;
kube-system            kube-flannel-ds-amd64-fxvfh                      1/1     Running            0          83m   10.10.10.78   sedeka78   &lt;none&gt;           &lt;none&gt;
kube-system            kube-flannel-ds-amd64-h6btb                      1/1     Running            1          78m   10.10.10.79   sedeka79   &lt;none&gt;           &lt;none&gt;
kube-system            kube-flannel-ds-amd64-m6dw2                      1/1     Running            1          78m   10.10.10.80   sedeka80   &lt;none&gt;           &lt;none&gt;
kube-system            kube-flannel-ds-amd64-wgtqb                      1/1     Running            1          78m   10.10.10.81   sedeka81   &lt;none&gt;           &lt;none&gt;
kube-system            kube-proxy-5dvdg                                 1/1     Running            1          78m   10.10.10.80   sedeka80   &lt;none&gt;           &lt;none&gt;
kube-system            kube-proxy-89pf7                                 1/1     Running            0          83m   10.10.10.78   sedeka78   &lt;none&gt;           &lt;none&gt;
kube-system            kube-proxy-hhgtf                                 1/1     Running            1          78m   10.10.10.79   sedeka79   &lt;none&gt;           &lt;none&gt;
kube-system            kube-proxy-kshnn                                 1/1     Running            1          78m   10.10.10.81   sedeka81   &lt;none&gt;           &lt;none&gt;
kube-system            kube-scheduler-sedeka78                          1/1     Running            5          84m   10.10.10.78   sedeka78   &lt;none&gt;           &lt;none&gt;
kubernetes-dashboard   dashboard-metrics-scraper-6b4884c9d5-4trgg       1/1     Running            0          80m   10.244.0.8    sedeka78   &lt;none&gt;           &lt;none&gt;
kubernetes-dashboard   kubernetes-dashboard-7bfbb48676-q6c2t            1/1     Running            0          80m   10.244.0.7    sedeka78   &lt;none&gt;           &lt;none&gt;
nginx-ingress          nginx-ingress-controller-57f4b84b5-ldkk5         0/1     CrashLoopBackOff   19         45m   10.244.1.2    sedeka81   &lt;none&gt;           &lt;none&gt;
nginx-ingress          nginx-ingress-default-backend-7c868597f4-8q9n7   1/1     Running            0          45m   10.244.4.2    sedeka80   &lt;none&gt;           &lt;none&gt;
root@sedeka78:~#
</code></pre>
<p>here the logs of the controller:</p>
<pre><code>root@sedeka78:~# kubectl logs nginx-ingress-controller-57f4b84b5-ldkk5 -n nginx-ingress -v10
I0705 14:31:41.152337   11692 loader.go:375] Config loaded from file:  /home/kubernetes/.kube/config
I0705 14:31:41.170664   11692 cached_discovery.go:114] returning cached discovery info from /root/.kube/cache/discovery/10.10.10.78_6443/servergroups.json
I0705 14:31:41.174651   11692 cached_discovery.go:71] returning cached discovery info from
</code></pre>
<p>...</p>
<pre><code>I0705 14:31:41.189379   11692 cached_discovery.go:71] returning cached discovery info from /root/.kube/cache/discovery/10.10.10.78_6443/batch/v1beta1/serverresources.json
I0705 14:31:41.189481   11692 cached_discovery.go:71] returning cached discovery info from /root/.kube/cache/discovery/10.10.10.78_6443/batch/v1/serverresources.json
I0705 14:31:41.189560   11692 cached_discovery.go:71] returning cached discovery info from /root/.kube/cache/discovery/10.10.10.78_6443/certificates.k8s.io/v1beta1/serverresources.json
I0705 14:31:41.192043   11692 round_trippers.go:423] curl -k -v -XGET  -H &quot;Accept: application/json, */*&quot; -H &quot;User-Agent: kubectl/v1.18.5 (linux/amd64) kubernetes/e6503f8&quot; 'https://10.10.10.78:6443/api/v1/namespaces/nginx-ingress/pods/nginx-ingress-controller-57f4b84b5-ldkk5'
I0705 14:31:41.222314   11692 round_trippers.go:443] GET https://10.10.10.78:6443/api/v1/namespaces/nginx-ingress/pods/nginx-ingress-controller-57f4b84b5-ldkk5 200 OK in 30 milliseconds
I0705 14:31:41.222588   11692 round_trippers.go:449] Response Headers:
I0705 14:31:41.222611   11692 round_trippers.go:452]     Cache-Control: no-cache, private
I0705 14:31:41.222771   11692 round_trippers.go:452]     Content-Type: application/json
I0705 14:31:41.222812   11692 round_trippers.go:452]     Date: Sun, 05 Jul 2020 12:31:41 GMT
I0705 14:31:41.223225   11692 request.go:1068] Response Body: {&quot;kind&quot;:&quot;Pod&quot;,&quot;apiVersion&quot;:&quot;v1&quot;,&quot;metadata&quot;:{&quot;name&quot;:&quot;nginx-ingress-controller-57f4b84b5-ldkk5&quot;,&quot;generateName&quot;:&quot;nginx-ingress-controller-57f4b84b5-&quot;,&quot;namespace&quot;:&quot;nginx-ingress&quot;,&quot;selfLink&quot;:&quot;/api/v1/namespaces/nginx-ingress/pods/nginx-ingress-controller-57f4b84b5-ldkk5&quot;,&quot;uid&quot;:&quot;778a9c24-9785-462e-9e1e-137a1aa08c87&quot;,&quot;resourceVersion&quot;:&quot;10435&quot;,&quot;creationTimestamp&quot;:&quot;2020-07-05T11:54:55Z&quot;,&quot;labels&quot;:{&quot;app&quot;:&quot;nginx-ingress&quot;,&quot;app.kubernetes.io/component&quot;:&quot;controller&quot;,&quot;component&quot;:&quot;controller&quot;,&quot;pod-template-hash&quot;:&quot;57f4b84b5&quot;,&quot;release&quot;:&quot;nginx-ingress&quot;},&quot;ownerReferences&quot;:[{&quot;apiVersion&quot;:&quot;apps/v1&quot;,&quot;kind&quot;:&quot;ReplicaSet&quot;,&quot;name&quot;:&quot;nginx-ingress-controller-57f4b84b5&quot;,&quot;uid&quot;:&quot;b9c42590-7efb-46d2-b37c-cec3a994bf4e&quot;,&quot;controller&quot;:true,&quot;blockOwnerDeletion&quot;:true}],&quot;managedFields&quot;:[{&quot;manager&quot;:&quot;kube-controller-manager&quot;,&quot;operation&quot;:&quot;Update&quot;,&quot;apiVersion&quot;:&quot;v1&quot;,&quot;time&quot;:&quot;2020-07-05T11:54:55Z&quot;,&quot;fieldsType&quot;:&quot;FieldsV1&quot;,&quot;fieldsV1&quot;:{&quot;f:metadata&quot;:{&quot;f:generateName&quot;:{},&quot;f:labels&quot;:{&quot;.&quot;:{},&quot;f:app&quot;:{},&quot;f:app.kubernetes.io/component&quot;:{},&quot;f:component&quot;:{},&quot;f:pod-template-hash&quot;:{},&quot;f:release&quot;:{}},&quot;f:ownerReferences&quot;:{&quot;.&quot;:{},&quot;k:{\&quot;uid\&quot;:\&quot;b9c42590-7efb-46d2-b37c-cec3a994bf4e\&quot;}&quot;:{&quot;.&quot;:{},&quot;f:apiVersion&quot;:{},&quot;f:blockOwnerDeletion&quot;:{},&quot;f:controller&quot;:{},&quot;f:kind&quot;:{},&quot;f:name&quot;:{},&quot;f:uid&quot;:{}}}},&quot;f:spec&quot;:{&quot;f:containers&quot;:{&quot;k:{\&quot;name\&quot;:\&quot;nginx-ingress-controller\&quot;}&quot;:{&quot;.&quot;:{},&quot;f:args&quot;:{},&quot;f:env&quot;:{&quot;.&quot;:{},&quot;k:{\&quot;name\&quot;:\&quot;POD_NAME\&quot;}&quot;:{&quot;.&quot;:{},&quot;f:name&quot;:{},&quot;f:valueFrom&quot;:{&quot;.&quot;:{},&quot;f:fieldRef&quot;:{&quot;.&quot;:{},&quot;f:apiVersion&quot;:{},&quot;f:fieldPath&quot;:{}}}},&quot;k:{\&quot;name\&quot;:\&quot;POD_NAMESPACE\&quot;}&quot;:{&quot;.&quot;:{},&quot;f:name&quot;:{},&quot;f:valueFrom&quot;:{&quot;.&quot;:{},&quot;f:fieldRef&quot;:{&quot;.&quot;:{},&quot;f:apiVersion&quot;:{},&quot;f:fieldPath&quot;:{}}}}},&quot;f:image&quot;:{},&quot;f:imagePullPolicy&quot;:{},&quot;f:livenessProbe&quot;:{&quot;.&quot;:{},&quot;f:failureThreshold&quot;:{},&quot;f:httpGet&quot;:{&quot;.&quot;:{},&quot;f:path&quot;:{},&quot;f:port&quot;:{},&quot;f:scheme&quot;:{}},&quot;f:initialDelaySeconds&quot;:{},&quot;f:periodSeconds&quot;:{},&quot;f:successThreshold&quot;:{},&quot;f:timeoutSeconds&quot;:{}},&quot;f:name&quot;:{},&quot;f:ports&quot;:{&quot;.&quot;:{},&quot;k:{\&quot;containerPort\&quot;:80,\&quot;protocol\&quot;:\&quot;TCP\&quot;}&quot;:{&quot;.&quot;:{},&quot;f:containerPort&quot;:{},&quot;f:name&quot;:{},&quot;f:protocol&quot;:{}},&quot;k:{\&quot;containerPort\&quot;:443,\&quot;protocol\&quot;:\&quot;TCP\&quot;}&quot;:{&quot;.&quot;:{},&quot;f:containerPort&quot;:{},&quot;f:name&quot;:{},&quot;f:protocol&quot;:{}}},&quot;f:readinessProbe&quot;:{&quot;.&quot;:{},&quot;f:failureThreshold&quot;:{},&quot;f:httpGet&quot;:{&quot;.&quot;:{},&quot;f:path&quot;:{},&quot;f:port&quot;:{},&quot;f:scheme&quot;:{}},&quot;f:initialDelaySeconds&quot;:{},&quot;f:periodSeconds&quot;:{},&quot;f:successThreshold&quot;:{},&quot;f:timeoutSeconds&quot;:{}},&quot;f:resources&quot;:{},&quot;f:securityContext&quot;:{&quot;.&quot;:{},&quot;f:allowPrivilegeEscalation&quot;:{},&quot;f:capabilities&quot;:{&quot;.&quot;:{},&quot;f:add&quot;:{},&quot;f:drop&quot;:{}},&quot;f:runAsUser&quot;:{}},&quot;f:terminationMessagePath&quot;:{},&quot;f:terminationMessagePolicy&quot;:{}}},&quot;f:dnsPolicy&quot;:{},&quot;f:enableServiceLinks&quot;:{},&quot;f:restartPolicy&quot;:{},&quot;f:schedulerName&quot;:{},&quot;f:securityContext&quot;:{},&quot;f:serviceAccount&quot;:{},&quot;f:serviceAccountName&quot;:{},&quot;f:terminationGracePeriodSeconds&quot;:{}}}},{&quot;manager&quot;:&quot;kubelet&quot;,&quot;operation&quot;:&quot;Update&quot;,&quot;apiVersion&quot;:&quot;v1&quot;,&quot;time&quot;:&quot;2020-07-05T12:27:53Z&quot;,&quot;fieldsType&quot;:&quot;FieldsV1&quot;,&quot;fieldsV1&quot;:{&quot;f:status&quot;:{&quot;f:conditions&quot;:{&quot;k:{\&quot;type\&quot;:\&quot;ContainersReady\&quot;}&quot;:{&quot;.&quot;:{},&quot;f:lastProbeTime&quot;:{},&quot;f:lastTransitionTime&quot;:{},&quot;f:message&quot;:{},&quot;f:reason&quot;:{},&quot;f:status&quot;:{},&quot;f:type&quot;:{}},&quot;k:{\&quot;type\&quot;:\&quot;Initialized\&quot;}&quot;:{&quot;.&quot;:{},&quot;f:lastProbeTime&quot;:{},&quot;f:lastTransitionTime&quot;:{},&quot;f:status&quot;:{},&quot;f:type&quot;:{}},&quot;k:{\&quot;type\&quot;:\&quot;Ready\&quot;}&quot;:{&quot;.&quot;:{},&quot;f:lastProbeTime&quot;:{},&quot;f:lastTransitionTime&quot;:{},&quot;f:message&quot;:{},&quot;f:reason&quot;:{},&quot;f:status&quot;:{},&quot;f:type&quot;:{}}},&quot;f:containerStatuses&quot;:{},&quot;f:hostIP&quot;:{},&quot;f:phase&quot;:{},&quot;f:podIP&quot;:{},&quot;f:podIPs&quot;:{&quot;.&quot;:{},&quot;k:{\&quot;ip\&quot;:\&quot;10.244.1.2\&quot;}&quot;:{&quot;.&quot;:{},&quot;f:ip&quot;:{}}},&quot;f:startTime&quot;:{}}}}]},&quot;spec&quot;:{&quot;volumes&quot;:[{&quot;name&quot;:&quot;nginx-ingress-token-rmhf8&quot;,&quot;secret&quot;:{&quot;secretName&quot;:&quot;nginx-ingress-token-rmhf8&quot;,&quot;defaultMode&quot;:420}}],&quot;containers&quot;:[{&quot;name&quot;:&quot;nginx-ingress-controller&quot;,&quot;image&quot;:&quot;quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.32.0&quot;,&quot;args&quot;:[&quot;/nginx-ingress-controller&quot;,&quot;--default-backend-service=nginx-ingress/nginx-ingress-default-backend&quot;,&quot;--publish-service=nginx-ingress/nginx-ingress-controller&quot;,&quot;--election-id=ingress-controller-leader&quot;,&quot;--ingress-class=nginx&quot;,&quot;--configmap=nginx-ingress/nginx-ingress-controller&quot;],&quot;ports&quot;:[{&quot;name&quot;:&quot;http&quot;,&quot;containerPort&quot;:80,&quot;protocol&quot;:&quot;TCP&quot;},{&quot;name&quot;:&quot;https&quot;,&quot;containerPort&quot;:443,&quot;protocol&quot;:&quot;TCP&quot;}],&quot;env&quot;:[{&quot;name&quot;:&quot;POD_NAME&quot;,&quot;valueFrom&quot;:{&quot;fieldRef&quot;:{&quot;apiVersion&quot;:&quot;v1&quot;,&quot;fieldPath&quot;:&quot;metadata.name&quot;}}},{&quot;name&quot;:&quot;POD_NAMESPACE&quot;,&quot;valueFrom&quot;:{&quot;fieldRef&quot;:{&quot;apiVersion&quot;:&quot;v1&quot;,&quot;fieldPath&quot;:&quot;metadata.namespace&quot;}}}],&quot;resources&quot;:{},&quot;volumeMounts&quot;:[{&quot;name&quot;:&quot;nginx-ingress-token-rmhf8&quot;,&quot;readOnly&quot;:true,&quot;mountPath&quot;:&quot;/var/run/secrets/kubernetes.io/serviceaccount&quot;}],&quot;livenessProbe&quot;:{&quot;httpGet&quot;:{&quot;path&quot;:&quot;/healthz&quot;,&quot;port&quot;:10254,&quot;scheme&quot;:&quot;HTTP&quot;},&quot;initialDelaySeconds&quot;:10,&quot;timeoutSeconds&quot;:1,&quot;periodSeconds&quot;:10,&quot;successThreshold&quot;:1,&quot;failureThreshold&quot;:3},&quot;readinessProbe&quot;:{&quot;httpGet&quot;:{&quot;path&quot;:&quot;/healthz&quot;,&quot;port&quot;:10254,&quot;scheme&quot;:&quot;HTTP&quot;},&quot;initialDelaySeconds&quot;:10,&quot;timeoutSeconds&quot;:1,&quot;periodSeconds&quot;:10,&quot;successThreshold&quot;:1,&quot;failureThreshold&quot;:3},&quot;terminationMessagePath&quot;:&quot;/dev/termination-log&quot;,&quot;terminationMessagePolicy&quot;:&quot;File&quot;,&quot;imagePullPolicy&quot;:&quot;IfNotPresent&quot;,&quot;securityContext&quot;:{&quot;capabilities&quot;:{&quot;add&quot;:[&quot;NET_BIND_SERVICE&quot;],&quot;drop&quot;:[&quot;ALL&quot;]},&quot;runAsUser&quot;:101,&quot;allowPrivilegeEscalation&quot;:true}}],&quot;restartPolicy&quot;:&quot;Always&quot;,&quot;terminationGracePeriodSeconds&quot;:60,&quot;dnsPolicy&quot;:&quot;ClusterFirst&quot;,&quot;serviceAccountName&quot;:&quot;nginx-ingress&quot;,&quot;serviceAccount&quot;:&quot;nginx-ingress&quot;,&quot;nodeName&quot;:&quot;sedeka81&quot;,&quot;securityContext&quot;:{},&quot;schedulerName&quot;:&quot;default-scheduler&quot;,&quot;tolerations&quot;:[{&quot;key&quot;:&quot;node.kubernetes.io/not-ready&quot;,&quot;operator&quot;:&quot;Exists&quot;,&quot;effect&quot;:&quot;NoExecute&quot;,&quot;tolerationSeconds&quot;:300},{&quot;key&quot;:&quot;node.kubernetes.io/unreachable&quot;,&quot;operator&quot;:&quot;Exists&quot;,&quot;effect&quot;:&quot;NoExecute&quot;,&quot;tolerationSeconds&quot;:300}],&quot;priority&quot;:0,&quot;enableServiceLinks&quot;:true},&quot;status&quot;:{&quot;phase&quot;:&quot;Running&quot;,&quot;conditions&quot;:[{&quot;type&quot;:&quot;Initialized&quot;,&quot;status&quot;:&quot;True&quot;,&quot;lastProbeTime&quot;:null,&quot;lastTransitionTime&quot;:&quot;2020-07-05T11:54:56Z&quot;},{&quot;type&quot;:&quot;Ready&quot;,&quot;status&quot;:&quot;False&quot;,&quot;lastProbeTime&quot;:null,&quot;lastTransitionTime&quot;:&quot;2020-07-05T11:54:56Z&quot;,&quot;reason&quot;:&quot;ContainersNotReady&quot;,&quot;message&quot;:&quot;containers with unready status: [nginx-ingress-controller]&quot;},{&quot;type&quot;:&quot;ContainersReady&quot;,&quot;status&quot;:&quot;False&quot;,&quot;lastProbeTime&quot;:null,&quot;lastTransitionTime&quot;:&quot;2020-07-05T11:54:56Z&quot;,&quot;reason&quot;:&quot;ContainersNotReady&quot;,&quot;message&quot;:&quot;containers with unready status: [nginx-ingress-controller]&quot;},{&quot;type&quot;:&quot;PodScheduled&quot;,&quot;status&quot;:&quot;True&quot;,&quot;lastProbeTime&quot;:null,&quot;lastTransitionTime&quot;:&quot;2020-07-05T11:54:56Z&quot;}],&quot;hostIP&quot;:&quot;10.10.10.81&quot;,&quot;podIP&quot;:&quot;10.244.1.2&quot;,&quot;podIPs&quot;:[{&quot;ip&quot;:&quot;10.244.1.2&quot;}],&quot;startTime&quot;:&quot;2020-07-05T11:54:56Z&quot;,&quot;containerStatuses&quot;:[{&quot;name&quot;:&quot;nginx-ingress-controller&quot;,&quot;state&quot;:{&quot;waiting&quot;:{&quot;reason&quot;:&quot;CrashLoopBackOff&quot;,&quot;message&quot;:&quot;back-off 5m0s restarting failed container=nginx-ingress-controller pod=nginx-ingress-controller-57f4b84b5-ldkk5_nginx-ingress(778a9c24-9785-462e-9e1e-137a1aa08c87)&quot;}},&quot;lastState&quot;:{&quot;terminated&quot;:{&quot;exitCode&quot;:143,&quot;reason&quot;:&quot;Error&quot;,&quot;startedAt&quot;:&quot;2020-07-05T12:27:23Z&quot;,&quot;finishedAt&quot;:&quot;2020-07-05T12:27:53Z&quot;,&quot;containerID&quot;:&quot;docker://4b7d69c47884790031e665801e282dafd8ea5dfaf97d54c6659d894d88af5a7a&quot;}},&quot;ready&quot;:false,&quot;restartCount&quot;:15,&quot;image&quot;:&quot;quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.32.0&quot;,&quot;imageID&quot;:&quot;docker-pullable://quay.io/kubernetes-ingress-controller/nginx-ingress-controller@sha256:251e733bf41cdf726092e079d32eed51791746560fff4d59cf067508ed635287&quot;,&quot;containerID&quot;:&quot;docker://4b7d69c47884790031e665801e282dafd8ea5dfaf97d54c6659d894d88af5a7a&quot;,&quot;started&quot;:false}],&quot;qosClass&quot;:&quot;BestEffort&quot;}}
I0705 14:31:41.239523   11692 round_trippers.go:423] curl -k -v -XGET  -H &quot;Accept: application/json, */*&quot; -H &quot;User-Agent: kubectl/v1.18.5 (linux/amd64) kubernetes/e6503f8&quot; 'https://10.10.10.78:6443/api/v1/namespaces/nginx-ingress/pods/nginx-ingress-controller-57f4b84b5-ldkk5/log'
I0705 14:31:41.247040   11692 round_trippers.go:443] GET https://10.10.10.78:6443/api/v1/namespaces/nginx-ingress/pods/nginx-ingress-controller-57f4b84b5-ldkk5/log 200 OK in 7 milliseconds
I0705 14:31:41.247125   11692 round_trippers.go:449] Response Headers:
I0705 14:31:41.247146   11692 round_trippers.go:452]     Content-Type: text/plain
I0705 14:31:41.247164   11692 round_trippers.go:452]     Date: Sun, 05 Jul 2020 12:31:41 GMT
I0705 14:31:41.247182   11692 round_trippers.go:452]     Cache-Control: no-cache, private
-------------------------------------------------------------------------------
NGINX Ingress controller
  Release:       0.32.0
  Build:         git-446845114
  Repository:    https://github.com/kubernetes/ingress-nginx
  nginx version: nginx/1.17.10

-------------------------------------------------------------------------------

I0705 12:27:23.597622       8 flags.go:204] Watching for Ingress class: nginx
W0705 12:27:23.598540       8 flags.go:249] SSL certificate chain completion is disabled (--enable-ssl-chain-completion=false)
W0705 12:27:23.598663       8 client_config.go:543] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
I0705 12:27:23.599666       8 main.go:220] Creating API client for https://10.96.0.1:443
</code></pre>
<p>And here:</p>
<pre><code>root@sedeka78:~# kubectl describe pod nginx-ingress-controller-57f4b84b5-ldkk5 -n nginx-ingress
Name:         nginx-ingress-controller-57f4b84b5-ldkk5
Namespace:    nginx-ingress
Priority:     0
Node:         sedeka81/10.10.10.81
Start Time:   Sun, 05 Jul 2020 13:54:56 +0200
Labels:       app=nginx-ingress
              app.kubernetes.io/component=controller
              component=controller
              pod-template-hash=57f4b84b5
              release=nginx-ingress
Annotations:  &lt;none&gt;
Status:       Running
IP:           10.244.1.2
IPs:
  IP:           10.244.1.2
Controlled By:  ReplicaSet/nginx-ingress-controller-57f4b84b5
Containers:
  nginx-ingress-controller:
    Container ID:  docker://545ed277d1a039cd36b0d18a66d1f58c8b44f3fc5e4cacdcde84cc68e763b0e8
    Image:         quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.32.0
    Image ID:      docker-pullable://quay.io/kubernetes-ingress-controller/nginx-ingress-controller@sha256:251e733bf41cdf726092e079d32eed51791746560fff4d59cf067508ed635287
    Ports:         80/TCP, 443/TCP
    Host Ports:    0/TCP, 0/TCP
    Args:
      /nginx-ingress-controller
      --default-backend-service=nginx-ingress/nginx-ingress-default-backend
      --publish-service=nginx-ingress/nginx-ingress-controller
      --election-id=ingress-controller-leader
      --ingress-class=nginx
      --configmap=nginx-ingress/nginx-ingress-controller
    State:          Waiting
      Reason:       CrashLoopBackOff
    Last State:     Terminated
      Reason:       Error
      Exit Code:    143
      Started:      Sun, 05 Jul 2020 14:33:33 +0200
      Finished:     Sun, 05 Jul 2020 14:34:03 +0200
    Ready:          False
    Restart Count:  17
    Liveness:       http-get http://:10254/healthz delay=10s timeout=1s period=10s #success=1 #failure=3
    Readiness:      http-get http://:10254/healthz delay=10s timeout=1s period=10s #success=1 #failure=3
    Environment:
      POD_NAME:       nginx-ingress-controller-57f4b84b5-ldkk5 (v1:metadata.name)
      POD_NAMESPACE:  nginx-ingress (v1:metadata.namespace)
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from nginx-ingress-token-rmhf8 (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             False
  ContainersReady   False
  PodScheduled      True
Volumes:
  nginx-ingress-token-rmhf8:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  nginx-ingress-token-rmhf8
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  &lt;none&gt;
Tolerations:     node.kubernetes.io/not-ready:NoExecute for 300s
                 node.kubernetes.io/unreachable:NoExecute for 300s
Events:
  Type     Reason     Age                  From               Message
  ----     ------     ----                 ----               -------
  Normal   Scheduled  &lt;unknown&gt;            default-scheduler  Successfully assigned nginx-ingress/nginx-ingress-controller-57f4b84b5-ldkk5 to sedeka81
  Normal   Pulling    41m                  kubelet, sedeka81  Pulling image &quot;quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.32.0&quot;
  Normal   Pulled     41m                  kubelet, sedeka81  Successfully pulled image &quot;quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.32.0&quot;
  Normal   Created    40m (x3 over 41m)    kubelet, sedeka81  Created container nginx-ingress-controller
  Normal   Started    40m (x3 over 41m)    kubelet, sedeka81  Started container nginx-ingress-controller
  Normal   Killing    40m (x2 over 40m)    kubelet, sedeka81  Container nginx-ingress-controller failed liveness probe, will be restarted
  Normal   Pulled     40m (x2 over 40m)    kubelet, sedeka81  Container image &quot;quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.32.0&quot; already present on machine
  Warning  Unhealthy  40m (x6 over 41m)    kubelet, sedeka81  Readiness probe failed: Get http://10.244.1.2:10254/healthz: dial tcp 10.244.1.2:10254: connect: connection refused
  Warning  Unhealthy  21m (x33 over 41m)   kubelet, sedeka81  Liveness probe failed: Get http://10.244.1.2:10254/healthz: dial tcp 10.244.1.2:10254: connect: connection refused
  Warning  BackOff    97s (x148 over 38m)  kubelet, sedeka81  Back-off restarting failed container
</code></pre>

<p>SOLVED
I used DEBIAN10 (Buster) and arptables wasn't in the legacy mode.</p>
<p>Here is the solution:</p>
<pre><code>sudo apt-get install -y iptables arptables ebtables


update-alternatives --set iptables /usr/sbin/iptables-nft
update-alternatives --set ip6tables /usr/sbin/ip6tables-nft
update-alternatives --set arptables /usr/sbin/arptables-nft
update-alternatives --set ebtables /usr/sbin/ebtables-nft
</code></pre>
<p>See here:
<a href="https://stackoverflow.com/questions/62441725/update-alternatives-error-alternative-usr-sbin-arptables-legacy-for-arptables">update-alternatives: error: alternative /usr/sbin/arptables-legacy for arptables not registered; not setting</a></p>
