Juju add-k8s failing with Minikube
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Thomas Miller |
Bug Description
I am attempting to bootstrap Juju onto a freshly-installed Minikube instance. Minikube has set up `~/.kube/config` correctly, and I can talk to it just fine with `kubectl` commands. However, I get this message when I attempt to run `juju add-k8s`:
ERROR ensuring k8s credential "283394d5" with RBAC setup: invalid configuration: certificate-
The --debug flag doesn't add much more info:
18:59:25 INFO juju.cmd supercommand.go:54 running juju [2.8.6 0 5d0442d3e15952b
18:59:25 DEBUG juju.cmd supercommand.go:55 args: []string{
18:59:25 INFO juju.util.exec exec.go:209 run result: exit status 1
18:59:25 DEBUG juju.kubernetes
18:59:25 DEBUG juju.caas.
18:59:25 DEBUG juju.caas.
ERROR ensuring k8s credential "688e4b23" with RBAC setup: invalid configuration: certificate-
18:59:25 DEBUG cmd supercommand.go:537 error stack:
invalid configuration: certificate-
/build/
/build/
/build/
/build/
/build/
Here is the generated kubeconfig file:
apiVersion: v1
clusters:
- cluster:
certificate
server: https:/
name: minikube
contexts:
- context:
cluster: minikube
namespace: default
user: minikube
name: minikube
current-context: minikube
kind: Config
preferences: {}
users:
- name: minikube
user:
client-
client-key: /home/ubuntu/
Changed in juju: | |
assignee: | nobody → Thomas Miller (tlmiller) |
Changed in juju: | |
status: | New → In Progress |
Changed in juju: | |
milestone: | none → 2.8.7 |
importance: | Undecided → High |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
It seems that this bug is actually that Juju doesn't handle `certificate- authority` well, as if I edit `~/.kube/config` to convert `certificate- authority` to the `certificate- authority- data` option and inline the contents of `/home/ ubuntu/ .minikube/ ca.crt` , it works fine.