Commit 17feaa07 authored by Mark Beierl's avatar Mark Beierl
Browse files

Updating Microk8s to be Single



As there will only be one Kubernetes cluster for the
hackfest, this script is only going to be used once:
for the set up and configuration of the Hackfest
shared Kubernetes resource.

Signed-off-by: default avatarMark Beierl <mark.beierl@canonical.com>
parent 9ae857e8
Loading
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -22,14 +22,14 @@ skip_verify = true
plain-http = true
EOF

sudo microk8s stop
sudo microk8s start
sudo microk8s.enable storage

HOST_IP=10.0.0.11
METALLB_START=10.0.0.201
METALLB_END=10.0.0.250
sudo cat /var/snap/microk8s/current/args/kube-apiserver | grep advertise-address || ( echo "--advertise-address ${HOST_IP}" | sudo tee -a /var/snap/microk8s/current/args/kube-apiserver; sudo microk8s.stop; sudo microk8s.start; )
sudo systemctl restart snap.microk8s.daemon-containerd.service
sudo microk8s.enable hostpath-storage

FLOATING_IP=172.21.249.42
sudo sed -i "/^IP.2 = .*/a IP.3 = ${FLOATING_IP}" /var/snap/microk8s/current/certs/csr.conf.template

METALLB_START=10.1.0.10
METALLB_END=10.1.1.254

sudo microk8s.enable metallb:${METALLB_START}-${METALLB_END}
sudo microk8s.enable ingress storage dns
+0 −3
Original line number Diff line number Diff line
@@ -63,9 +63,6 @@ vnfd:
  - id: root-volume
    type-of-storage: persistent-storage
    size-of-storage: 10
    vdu-storage-requirements:
      - key: keep-volume
        value: 'true'
  - id: persistent-volume
    type-of-storage: persistent-storage
    size-of-storage: 1