download
https://raw.githubusercontent.com/charmed-kubernetes/bundle/master/overlays/calico-overlay.yaml
wget https://raw.githubusercontent.com/charmed-kubernetes/bundle/master/overlays/calico-overlay.yaml --no-check-certificate
The content of the file is like this
description: Charmed Kubernetes overlay to add Calico CNI.
applications:
calico:
annotations:
gui-x: '480'
gui-y: '750'
charm: cs:~containers/calico
flannel:
relations:
- - calico:etcd
- etcd:db
- - calico:cni
- kubernetes-master:cni
- - calico:cni
- kubernetes-worker:cni
juju bootstrap
juju add-model k8s
juju deploy charmed-kubernetes
sudo snap install kubectl --classic
juju scp kubernetes-master/0:config ~/.kube/config