microk8s: microks8 flannel - subnet.env not found
Hello,
My server :
Ubuntu 19.10 microk8s 1.16
I have a problem with microk8s and flannel.
When a run this command :
microk8s.kubectl -n kube-system describe pod kubernetes-dashboard-5c848cc544-dnq66
I have this log :
Warning FailedCreatePodSandBox 15m kubelet, monkeydryzen Failed create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "a5f4e184e1fd364b99dee83b32715ca63e3acba3dc6c3df1d338c15f1be3f126": open /var/snap/microk8s/common/run/flannel/subnet.env: no such file or directory
“flannel” folder do not exist “subnet.env” file do not exist
When a run this command :
microk8s.kubectl get all --all-namespaces
I have this log :
`NAMESPACE NAME READY STATUS RESTARTS AGE kube-system pod/dashboard-metrics-scraper-687667bb6c-4cbwb 0/1 ContainerCreating 0 20m kube-system pod/heapster-v1.5.2-5c58f64f8b-48sww 0/4 ContainerCreating 0 20m kube-system pod/kubernetes-dashboard-5c848cc544-dnq66 0/1 ContainerCreating 0 20m kube-system pod/monitoring-influxdb-grafana-v4-6d599df6bf-5vkmg 0/2 ContainerCreating 0 20m
NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE default service/kubernetes ClusterIP 10.152.183.1 <none> 443/TCP 26m kube-system service/dashboard-metrics-scraper ClusterIP 10.152.183.161 <none> 8000/TCP 20m kube-system service/heapster ClusterIP 10.152.183.233 <none> 80/TCP 20m kube-system service/kubernetes-dashboard ClusterIP 10.152.183.224 <none> 443/TCP 20m kube-system service/monitoring-grafana ClusterIP 10.152.183.205 <none> 80/TCP 20m kube-system service/monitoring-influxdb ClusterIP 10.152.183.246 <none> 8083/TCP,8086/TCP 20m
NAMESPACE NAME READY UP-TO-DATE AVAILABLE AGE kube-system deployment.apps/dashboard-metrics-scraper 0/1 1 0 20m kube-system deployment.apps/heapster-v1.5.2 0/1 1 0 20m kube-system deployment.apps/kubernetes-dashboard 0/1 1 0 20m kube-system deployment.apps/monitoring-influxdb-grafana-v4 0/1 1 0 20m
NAMESPACE NAME DESIRED CURRENT READY AGE kube-system replicaset.apps/dashboard-metrics-scraper-687667bb6c 1 1 0 20m kube-system replicaset.apps/heapster-v1.5.2-5c58f64f8b 1 1 0 20m kube-system replicaset.apps/kubernetes-dashboard-5c848cc544 1 1 0 20m kube-system replicaset.apps/monitoring-influxdb-grafana-v4-6d599df6bf 1 1 0 20m`
Have you a idea ?
Thank you
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 15 (2 by maintainers)
I have the same issue with: microk8s v1.18 Ubuntu 18.04
This issue emerged after the last microk8s update. Before that everything was working great…
Edit:
when I manually create /var/snap/microk8s/common/run/flannel/subnet.env:
Everything is working again. Any idea, why it’s not created automatically?
OK i have confirmed, https://github.com/coreos/flannel/issues/1365 is the same issue. flanneld crashes on my system.
the fix is to compile flannel w/ golang v1.15+
Also observing this problem. For me the culprit is the flannel service crasing w/ sigsegv. microk8s.inspect attached inspection-report-20201208_134629.tar.gz
It may match https://github.com/coreos/flannel/issues/1365