Command output with --debug:
$ juju add-k8s --client k8s --skip-storage --debug 16:13:38 INFO juju.cmd supercommand.go:56 running juju [3.1.2 f43d417390caeba51beece481aa7441ce3388519 gc go1.20.2] 16:13:38 DEBUG juju.cmd supercommand.go:57 args: []string{"/snap/juju/22722/bin/juju", "add-k8s", "--client", "k8s", "--skip-storage", "--debug"} 16:13:38 DEBUG juju.environs.tools build.go:122 looking for: /snap/juju/22722/bin/juju 16:13:38 DEBUG juju.environs.tools versionfile.go:54 looking for sha256 f5f009bdc97044471643520b933824ff15dc9c5ed0f1ff42cbbcf319909955d0 16:13:38 DEBUG juju.kubernetes.provider detectcloud.go:33 failed to query local microk8s: "/var/snap/juju/22722/microk8s/credentials/client.config" does not exist: juju "3.1.2" can only work with strictly confined microk8s ERROR making juju admin credentials in cluster: ensuring cluster role "juju-credential-9eef92ca" in namespace "kube-system": Get "https://10.246.154.123:6443/apis/rbac.authorization.k8s.io/v1/clusterroles/juju-credential-9eef92ca": dial tcp 10.246.154.123:6443: connect: connection refused 16:13:38 DEBUG cmd supercommand.go:548 error stack: Get "https://10.246.154.123:6443/apis/rbac.authorization.k8s.io/v1/clusterroles/juju-credential-9eef92ca": dial tcp 10.246.154.123:6443: connect: connection refused github.com/juju/juju/caas/kubernetes/clientconfig.getOrCreateClusterRole:167: github.com/juju/juju/caas/kubernetes/clientconfig.ensureJujuAdminServiceAccount:88: ensuring cluster role "juju-credential-9eef92ca" in namespace "kube-system" github.com/juju/juju/cmd/juju/caas.(*AddCAASCommand).Run:503: making juju admin credentials in cluster
Command output with --debug:
$ juju add-k8s --client k8s --skip-storage --debug 51beece481aa744 1ce3388519 gc go1.20.2] "/snap/ juju/22722/ bin/juju" , "add-k8s", "--client", "k8s", "--skip-storage", "--debug"} 22722/bin/ juju 71643520b933824 ff15dc9c5ed0f1f f42cbbcf3199099 55d0 .provider detectcloud.go:33 failed to query local microk8s: "/var/snap/ juju/22722/ microk8s/ credentials/ client. config" does not exist: juju "3.1.2" can only work with strictly confined microk8s l-9eef92ca" in namespace "kube-system": Get "https:/ /10.246. 154.123: 6443/apis/ rbac.authorizat ion.k8s. io/v1/clusterro les/juju- credential- 9eef92ca": dial tcp 10.246. 154.123: 6443: connect: connection refused /10.246. 154.123: 6443/apis/ rbac.authorizat ion.k8s. io/v1/clusterro les/juju- credential- 9eef92ca": dial tcp 10.246. 154.123: 6443: connect: connection refused com/juju/ juju/caas/ kubernetes/ clientconfig. getOrCreateClus terRole: 167: com/juju/ juju/caas/ kubernetes/ clientconfig. ensureJujuAdmin ServiceAccount: 88: ensuring cluster role "juju-credentia l-9eef92ca" in namespace "kube-system" com/juju/ juju/cmd/ juju/caas. (*AddCAASComman d).Run: 503: making juju admin credentials in cluster
16:13:38 INFO juju.cmd supercommand.go:56 running juju [3.1.2 f43d417390caeba
16:13:38 DEBUG juju.cmd supercommand.go:57 args: []string{
16:13:38 DEBUG juju.environs.tools build.go:122 looking for: /snap/juju/
16:13:38 DEBUG juju.environs.tools versionfile.go:54 looking for sha256 f5f009bdc970444
16:13:38 DEBUG juju.kubernetes
ERROR making juju admin credentials in cluster: ensuring cluster role "juju-credentia
16:13:38 DEBUG cmd supercommand.go:548 error stack:
Get "https:/
github.
github.
github.