Install ceph for ceph-disk; run helm serve via nohup 69/45869/1
authorBryan Sullivan <bryan.sullivan@att.com>
Thu, 19 Oct 2017 19:27:11 +0000 (12:27 -0700)
committerBryan Sullivan <bryan.sullivan@att.com>
Thu, 19 Oct 2017 19:27:11 +0000 (12:27 -0700)
JIRA: MODELS-23
Use fork of netarbiter while issues are being worked.
Use release name without underscores (issue?).

Change-Id: I88b7d585c3c2ded87d37b066a00bb505551da28c
Signed-off-by: Bryan Sullivan <bryan.sullivan@att.com>
tools/kubernetes/ceph-helm.sh
tools/kubernetes/k8s-cluster.sh

index 6c92fb0..2df95c5 100644 (file)
@@ -38,13 +38,13 @@ function setup_ceph() {
   dev=$4
   # per https://github.com/att/netarbiter/tree/master/sds/ceph-docker/examples/helm
   echo "${FUNCNAME[0]}: Clone netarbiter"
-  git clone https://github.com/att/netarbiter.git
+  git clone https://github.com/blsaws/netarbiter.git
   
   echo "${FUNCNAME[0]}: Create a .kube/config secret so that a K8s job could run kubectl inside the container"
   cd netarbiter/sds/ceph-docker/examples/helm
   kubectl create namespace ceph
   ./create-secret-kube-config.sh ceph
-  ./helm-install-ceph.sh my_ceph_chart $private_net $public_net
+  ./helm-install-ceph.sh cephtest $private_net $public_net
 
   kubedns=$(kubectl get service -o json --namespace kube-system kube-dns | \
     jq -r '.spec.clusterIP')
index 0047527..a5cc07d 100644 (file)
@@ -67,7 +67,7 @@ EOF
 sudo apt-get update
 # Next command is to workaround bug resulting in "PersistentVolumeClaim is not bound" for pod startup (remain in Pending)
 # TODO: reverify if this is still an issue in the final working script
-sudo apt-get -y install ceph-common
+sudo apt-get -y install ceph ceph-common
 sudo apt-get -y install --allow-downgrades kubectl=${KUBE_VERSION}-00 kubelet=${KUBE_VERSION}-00 kubeadm=${KUBE_VERSION}-00
 # Needed for ceph setup etc
 sudo apt-get -y install jq
@@ -229,6 +229,7 @@ function setup_helm() {
   chmod 700 get_helm.sh
   ./get_helm.sh
   helm init
+  nohup helm serve &
   helm repo update
   # TODO: Workaround for bug https://github.com/kubernetes/helm/issues/2224
   # For testing use only!