In this article Juju | Get started with Juju says how to use microk8s in juju cloud
ubuntu@tutorial-vm:~$ juju clouds
microk8s 1 localhost k8s 1 built-in A Kubernetes Cluster has a built-in k8s cloud
But I install juju 3.3.1 , and juju clouds command output :
kubernetes-admin@kubernetes 0 k8s 0 built-in A local Kubernetes context
localhost 1 localhost lxd 0 built-in LXD Container Hypervisor
I want to use cloud name is kubernetes-admin@kubernetes and type is k8s built-in cloud How can init region for kubernetes-admin@kubernetes?? After init regions , I can bootstrap juu controller.
‘juju clouds --format yaml’ command output below, That means it’s already recognized
Only clouds with registered credentials are shown.
There are more clouds, use --all to see them.
kubernetes-admin@kubernetes:
defined: built-in
type: k8s
description: A local Kubernetes context
auth-types: [certificate, clientcertificate, oauth2, oauth2withcert, userpass]
endpoint: https://node100:6443
ca-credentials:
|
-----BEGIN CERTIFICATE-----
MIIDBTCC…
-----END CERTIFICATE-----
localhost:
defined: built-in
type: lxd
description: LXD Container Hypervisor
auth-types: [certificate]
regions:
localhost: {}
aik8s@ai-k8s-node100:~$ juju bootstrap kubernetes-admin@kubernetes aik8s-controller
ERROR cloud name "kubernetes-admin@kubernetes" not valid