easyrsa:
- charm: "./{{ ubuntu.release }}/easyrsa"
+ charm: "cs:~containers/easyrsa"
num_units: 1
to:
- "lxd:nodes/0"
etcd:
- charm: "./{{ ubuntu.release }}/etcd"
+ charm: "cs:~containers/etcd"
{% if k8.feature.loadbalancer %}
num_units: 3
{% else %}
kubeapi-load-balancer:
- charm: "./{{ ubuntu.release }}/kubeapi-load-balancer"
+ charm: "cs:~containers/kubeapi-load-balancer"
num_units: 1
expose: true
to:
kubernetes-master:
- charm: "./{{ ubuntu.release }}/kubernetes-master"
+ charm: "cs:~containers/kubernetes-master"
num_units: 1
expose: true
to:
- "nodes/0"
kubernetes-worker:
- charm: "./{{ ubuntu.release }}/kubernetes-worker"
+ charm: "cs:~containers/kubernetes-worker"
num_units: {{ opnfv.units - 1 }}
expose: true
to:
flannel:
- charm: ./{{ ubuntu.release }}/flannel
+ charm: cs:~containers/flannel
../juju/joid-configure-openstack || true
fi
+if [[ "$opnfvmodel" = "kubernetes" ]]; then
+ ./k8.sh
+fi
echo "...... finished ......."
--- /dev/null
+#!/bin/bash
+set -ex
+mkdir -p ~/.kube || true
+juju scp kubernetes-master/0:config ~/.kube/config || true
+juju scp kubernetes-master/0:kubectl ./kubectl || true
+./kubectl cluster-info || true
+juju config kubernetes-master enable-dashboard-addons=true || true
+#./kubectl proxy
+#http://localhost:8001/ui
+./kubectl get nodes || true
+#./kubectl create -f example.yaml || true
+./kubectl get pods --all-namespaces || true
+./kubectl get services --all-namespaces || true
+juju expose kubernetes-worker || true
+++ /dev/null
-#!/bin/bash -ex
-
-distro=$1
-mkdir -p $distro
-
-function build {
- sudo apt-get install charm-tools -y
- (cd $distro/charm-$1; charm build -s $distro -obuild src)
- mv $distro/charm-$1/build/$distro/$1 $distro
-}
-
-# openstack
-bzr branch lp:~narindergupta/opnfv/ntp $distro/ntp
-charm pull cs:~containers/kubernetes-master $distro/kubernetes-master
-charm pull cs:~containers/kubernetes-worker $distro/kubernetes-worker
-charm pull cs:~containers/flannel $distro/flannel
-charm pull cs:~containers/etcd $distro/etcd
-charm pull cs:~containers/easyrsa $distro/easyrsa
-charm pull cs:~containers/kubeapi-load-balancer $distro/kubeapi-load-balancer
--- /dev/null
+#!/bin/bash -ex
+
+distro=$1
+mkdir -p $distro
+
+function build {
+ sudo apt-get install charm-tools -y
+ (cd $distro/charm-$1; charm build -s $distro -obuild src)
+ mv $distro/charm-$1/build/$distro/$1 $distro
+}
+
+# openstack
+bzr branch lp:~narindergupta/opnfv/ntp $distro/ntp
+