Pins Microk8s to 1.19
Change-Id: Ic21f1774cb7c3d8fc6362f6a4a0b95bf4f3e5e73
Signed-off-by: beierlm <mark.beierl@canonical.com>
JUJU_AGENT_VERSION=2.8.6
K8S_CLOUD_NAME="k8s-cloud"
KUBECTL="microk8s.kubectl"
+MICROK8S_VERSION=1.19
IMAGES_OVERLAY_FILE=~/.osm/images-overlay.yaml
PATH=/snap/bin:${PATH}
function install_snaps(){
if [ ! -v KUBECFG ]; then
- sudo snap install microk8s --classic
+ sudo snap install microk8s --classic --channel=${MICROK8S_VERSION}/stable
sudo usermod -a -G microk8s `whoami`
mkdir -p ~/.kube
sudo chown -f -R `whoami` ~/.kube
// Use local proxy for docker hub
sshCommand remote: remote, command: '''
- sudo snap install microk8s --classic
+ sudo snap install microk8s --classic --channel=1.19/stable
sudo sed -i "s|https://registry-1.docker.io|http://172.21.1.1:5000|" /var/snap/microk8s/current/args/containerd-template.toml
sudo systemctl restart snap.microk8s.daemon-containerd.service
sudo snap alias microk8s.kubectl kubectl