unhelpful error message bootstrapping microk8s
Bug #1860154 reported by
Heather Lanigan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Medium
|
Anastasia |
Bug Description
$ ~/work/bin/juju bootstrap --build-agent microk8s mk8s
Creating Juju controller "mk8s" on microk8s/localhost
ERROR failed to bootstrap model: --build-agent when bootstrapping a k8s controller
$
Does this mean that you cannot use --build-agent when bootstraping micro8ks? I haven't been able to find documentation around this. There is no mention in `juju help bootstrap` that I can find.
summary: |
- unmeaningful error message bootstrapping microk8s + unhelpful error message bootstrapping microk8s |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The error should say "--build agent when bootstrapping a k8s controller not supported" but the "not supported" has been left off it seems.
The way to do it with microk8s is to use the make target "microk8s- operator- update" .
This will make a new docker image with a build jujud and push that to the microk8s containerd registry. Because the image pull policy is PullIfNotPresent, the custom buitt, pre-cached image will be used.
The same technique applies for any k8s cluster, but the make target is oriented to microk8s.