git.iko.soy/typeable/octopod
on master help sign in
explicit kubeconfig context (#122)
commit5480a1b7b723fe95a861b9ca3a4d845bfa93f5ae authorAlex-Sizov <45825279+Alex-Sizov@users.noreply.github.com> dateFri 1 Oct 2021, 17:32 (5 years ago) parentaa00bee
1 file changed+6−6
octopod_local_install.sh+6−6
octopod_local_install.sh+6−6
@@ -50,7 +50,7 @@ nodes:
5050 hostPort: 443
5151 protocol: TCP
5252EOF
53−cat <<EOF | kubectl apply -f -
53+cat <<EOF | kubectl --context=kind-octopod apply -f -
5454apiVersion: v1
5555kind: ConfigMap
5656metadata:
@@ -80,9 +80,9 @@ data:
8080 }
8181EOF
8282message "Installing ingress-nginx controller"
83−kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.45.0/deploy/static/provider/kind/deploy.yaml
83+kubectl --context=kind-octopod apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.45.0/deploy/static/provider/kind/deploy.yaml
8484while true; do
85− if [ $(kubectl -n ingress-nginx get deploy | awk -F ' ' '$1 ~ /^ingress-nginx/ {print $4}') == '1' ]; then
85+ if [ $(kubectl --context=kind-octopod -n ingress-nginx get deploy | awk -F ' ' '$1 ~ /^ingress-nginx/ {print $4}') == '1' ]; then
8686 message 'ingress-controller is ready'
8787 break;
8888 else
@@ -90,12 +90,12 @@ while true; do
9090 fi
9191done
9292message "Creating nessesary namespaces"
93−kubectl create ns octopod
94−kubectl create ns octopod-deployment
93+kubectl --context=kind-octopod create ns octopod
94+kubectl --context=kind-octopod create ns octopod-deployment
9595message "Adding typeable helm repository"
9696helm repo add typeable https://typeable.github.io/octopod
9797helm repo update
9898message "Installing octopod helm chart"
99−helm -n octopod install octopod typeable/octopod --wait --timeout=5m --set octopod.baseDomain="lvh.me" --set ingress.tls.enabled=false
99+helm --kube-context=kind-octopod -n octopod install octopod typeable/octopod --wait --timeout=5m --set octopod.baseDomain="lvh.me" --set ingress.tls.enabled=false
100100message "Octopod was successfully installed! Use instruction above to connect to it."
101101message "To uninstall octopod just run: kind delete cluster --name octopod"