i deployed a charmed k8s and then i added it as a cloud managed by juju by:
juju add-k8s cloud-k8s --controller $(juju switch | cut -d: -f1)
juju add-model cos cloud-k8s
then i tried to deploy the cos-lite bundle: it worked by creating a modeloperator in the “cos” namespace but it fails fetching the desired image and i’m behind a proxy
the kubectl describe command shows
Normal Scheduled 12m default-scheduler Successfully assigned cos/modeloperator-85896ff44d-bw26h to juju-360533-k8s-8
mmm no i meant a different thing: in charmed k8s (not microk8s) i passed the default registry to kubernetes-control-plane charm in order to fetch images from a local registry (not dockerhub or docker.io).
when i use juju to deploy operators it seems going on the public one.
The Juju controller has a separate registry, which isn’t necessarily pointed at the registry that the kubernetes-control-plane charm creates. You need to get the image into the Juju controller’s registry. The microk8s command is basically just a wrapper around the commands necessary to do so. I don’t know if there’s a similar shortcut in charmed-k8s.