Closed asbalderson closed 2 years ago
I should also note, when trying to add-k8s with juju i get the following output
$ KUBECONFIG=/home/ubuntu/project/generated/microk8s/kube.conf juju add-k8s microk8s_cloud --controller foundations-maas
ERROR making juju admin credentials in cluster: ensuring cluster role "juju-credential-bf5f2498" in namespace "kube-system": the server was unable to return a response in the time allotted, but may still be processing the request (get clusterroles.rbac.authorization.k8s.io juju-credential-bf5f2498)
attaching logs from other 2 units (0 and 2) inspection-report-20220822_193734.tar.gz inspection-report-20220822_193451.tar.gz
Apologies for missing to reply on this issue.
I was unable to reproduce this issue on any of our development environments. Looking at the error messages, along with loglines filled with timeouts and slow disk ops, I think it might just be transient networking issues instead or resource limits (e.g. open files) instead.
Closing this issue for now, please reopen if this occurs again.
Summary
While testing microk8s 1.25/candidate (v1.25.0-rc.1) using using the stable charm for a 3 unit cluster. All 3 units came up active/idle, but i was unable to run
juju add-k8s
against the kube.conf from the cluster. After some inspection i was unable to run any commands against the cluster,kubectl --kubeconfig=kube.conf get po
for example, returned aUnable to connect to the server: stream error: stream ID 1; INTERNAL_ERROR; received from peer
After inspecting the syslog on the units i saw lots of messages relating to context deadline exceeded for etcd.
What Should Happen Instead?
I would expect that when deploying 1.25 with the stable charm, i would get a working cluster which i could use
juju add-k8s
or query regular information against the cluster.kubectl get po
for example would return the running pods.Reproduction Steps
10.246.164.2
is our MaaS server which is handling DNS.juju exec microk8s/leader microk8s config
and save it to a file (kube.conf)kubectl --kubeconfig=kube.conf get po
Introspection Report
inspection-report-20220822_191338.tar.gz