On your local machine, install conjure-up
with the following command:
sudo snap install conjure-up --classic
Install Charmed Kubernetes using conjure-up
.
conjure-up charmed-kubernetes
Follow the on-screen instructions to select AWS as the cloud provider and specify the AWS credentials in subsequent prompts.
To add support for dynamic volume provisioning; navigate to the Advanced Configuration page of the kubernetes-master application and set the value of the api-extra-args
field to admission-control=Initializers,NamespaceLifecycle,LimitRanger,ServiceAccount,ResourceQuota,DefaultTolerationSeconds,DefaultStorageClass
and trigger the deployment.
After the installation has completed, lets configure kubectl
to talk to our cluster.
mkdir -p ~/.kube
juju scp kubernetes-master/0:config ~/.kube/config
What is “juju scp
”?
Juju is a tool used by conjure-up
for managing software deployments’ installation, configuration and management. It was installed by juju
snap package if the command if it wasn’t found.
Now let’s verify that we’re able to communicate with our Kubernetes cluster:
kubectl cluster-info
If you do not have the kubectl
command already installed, install it with:
sudo snap install kubectl --classic