summaryrefslogtreecommitdiffstats
path: root/tools/kubernetes/helm-tools.sh
diff options
context:
space:
mode:
authorBryan Sullivan <bryan.sullivan@att.com>2018-06-11 09:32:01 -0700
committerBryan Sullivan <bryan.sullivan@att.com>2018-06-11 09:32:01 -0700
commitd40f36a0eecc24566b441d7e9298303defc4613f (patch)
tree00be736b0b2a1ceb2adc01fce14a14680e718294 /tools/kubernetes/helm-tools.sh
parent089b55a64fcab0845ed4c326483ec33bc07bd35b (diff)
Update k8s and docker-ce versions
Add option to deploy k8s core only JIRA: MODELS-2 Change-Id: I6094d0db688256ff45be75414f5d4271ae9e2234 Signed-off-by: Bryan Sullivan <bryan.sullivan@att.com>
Diffstat (limited to 'tools/kubernetes/helm-tools.sh')
-rw-r--r--tools/kubernetes/helm-tools.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/kubernetes/helm-tools.sh b/tools/kubernetes/helm-tools.sh
index a28b340..aa4bf23 100644
--- a/tools/kubernetes/helm-tools.sh
+++ b/tools/kubernetes/helm-tools.sh
@@ -39,13 +39,16 @@ function log() {
function setup_helm() {
log "Setup helm"
# Install Helm
+ # per https://github.com/kubernetes/helm/blob/master/docs/install.md
cd ~
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get > get_helm.sh
chmod 700 get_helm.sh
./get_helm.sh
+ log "Initialize helm"
helm init
- nohup helm serve > /dev/null 2>&1 &
- helm repo update
+# nohup helm serve > /dev/null 2>&1 &
+# log "Run helm repo update"
+# helm repo update
# TODO: Workaround for bug https://github.com/kubernetes/helm/issues/2224
# For testing use only!
kubectl create clusterrolebinding permissive-binding \
@@ -69,7 +72,8 @@ function setup_helm() {
function wait_for_service() {
log "Waiting for service $1 to be available"
- pod=$(kubectl get pods --namespace default | awk "/$1/ { print \$1 }")
+ # TODO: fix 'head' workaround for more than one pod per service
+ pod=$(kubectl get pods --namespace default | awk "/$1/ { print \$1 }" | head -1)
log "Service $1 is at pod $pod"
ready=$(kubectl get pods --namespace default -o jsonpath='{.status.containerStatuses[0].ready}' $pod)
while [[ "$ready" != "true" ]]; do