Comment 1 for bug 1916780

Revision history for this message
George Kraft (cynerva) wrote : Re: kubelet fails to start, cannot connect to the Docker daemon at unix:///var/run/docker.sock

Thanks for the report. You can ignore the stuff in kubelet logs about failing to connect to Docker. That's just a sign that kubernetes-worker has not configured kubelet yet. Kube-proxy also has not been configured.

The kubernetes-worker charms aren't running start_worker. They're missing the kube-control.auth.available flag.

Looking at debug-log for kubernetes-master, it looks like it tried to auth the workers, but failed:

2021-02-23 17:33:53 INFO juju-log grafana:59: Invoking reactive handler: reactive/kubernetes_master.py:569:setup_leader_authentication
2021-02-23 17:33:54 WARNING grafana-relation-changed The Secret "auth-admin-ip.w9q-.9f" is invalid: metadata.name: Invalid value: "auth-admin-ip.w9q-.9f": a lowercase RFC 1123 subdomain must co
nsist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
2021-02-23 17:33:56 WARNING grafana-relation-changed The Secret "auth-admin-vml..xq7si" is invalid: metadata.name: Invalid value: "auth-admin-vml..xq7si": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
2021-02-23 17:33:57 INFO juju-log grafana:59: Missing required tokens for kubelet startup; will retry

After this, setup_leader_authentication was never called again.