Use Hostname instead of IP to install k8s
[iec.git] / src / foundation / scripts / helm.sh
index 3f575d2..44205ca 100755 (executable)
@@ -1,5 +1,10 @@
 #!/bin/bash -ex
 
+if [ -f "$HOME/.bashrc" ]; then
+  # shellcheck source=/dev/null
+  source "$HOME/.bashrc"
+fi
+
 VERSION='v2.12.3'
 TILLER_SA_RBAC=~/tiller-rbac.yaml
 if [ "$(uname -m)" == 'aarch64' ]; then
@@ -42,3 +47,4 @@ EOF
   kubectl create -f "${TILLER_SA_RBAC}"
   helm init --service-account tiller --tiller-image="jessestuart/tiller:${VERSION}"
 fi
+rm -f "${TILLER_SA_RBAC}"