8716 - K8s Proxy Charms
This commit contains the following changes:
- Changes to LCM Charm to configure vca k8s cloud
- K8s installation:
- Add storageclass to K8s
- Add k8s to VCA
- Configure lcm.env to pass k8s cloud name
- Pass k8s cloud name to LCM Charm in charmed
installation
- Pin juju version tu 2.8/stable
- Instal juju after Microk8s in charmed
installation
Change-Id: I62ae50e4f226eba3bbda7c4a310cfe52591de5b4
Signed-off-by: Dominik Fleischmann <dominik.fleischmann@canonical.com>
diff --git a/installers/charmed_install.sh b/installers/charmed_install.sh
index 49bf277..d215608 100755
--- a/installers/charmed_install.sh
+++ b/installers/charmed_install.sh
@@ -35,8 +35,8 @@
# echo $BUNDLE $KUBECONFIG $LXDENDPOINT
}
function install_snaps(){
- sudo snap install juju --classic --channel=2.7/stable
[ ! -v KUBECFG ] && sudo snap install microk8s --classic && sudo usermod -a -G microk8s `whoami` && mkdir -p ~/.kube && sudo chown -f -R `whoami` ~/.kube
+ sudo snap install juju --classic --channel=2.8/stable
}
function bootstrap_k8s_lxd(){
@@ -118,6 +118,7 @@
juju add-credential -c $CONTROLLER_NAME lxd-cloud -f $LXD_CREDENTIALS
sg lxd -c "lxd waitready"
juju add-model test lxd-cloud || true
+ juju controller-config features=[k8s-operators]
}
function deploy_charmed_osm(){
@@ -191,6 +192,7 @@
vca_cacert: $vca_cacert
vca_apiproxy: $vca_apiproxy
vca_cloud: $vca_cloud
+ vca_k8s_cloud: $K8S_CLOUD_NAME
mon-k8s:
options:
vca_user: $vca_user