From: beierlm Date: Mon, 14 Dec 2020 14:59:19 +0000 (-0500) Subject: Pin MicroK8s version X-Git-Tag: release-v9.0-start~19 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=481ae7d606286c40e775fddd17146285a7d1a3cc;p=osm%2Fdevops.git Pin MicroK8s version Pins Microk8s to 1.19 Change-Id: Ic21f1774cb7c3d8fc6362f6a4a0b95bf4f3e5e73 Signed-off-by: beierlm --- diff --git a/installers/charmed_install.sh b/installers/charmed_install.sh index 79899ec8..00e4112b 100755 --- a/installers/charmed_install.sh +++ b/installers/charmed_install.sh @@ -18,6 +18,7 @@ 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} @@ -42,7 +43,7 @@ function check_arguments(){ 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 diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index 6523debc..04c1e1bd 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -379,7 +379,7 @@ node("${params.NODE}") { // 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