-
Notifications
You must be signed in to change notification settings - Fork 0
/
istio-install-helm.sh
43 lines (33 loc) · 1.25 KB
/
istio-install-helm.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
#
# Author Yuya Tinnefeld
#
install_helm_istio() {
export NS="istio-system"
echo "############## ADD HELM REPO ##############"
helm repo add istio https://istio-release.storage.googleapis.com/charts
helm repo update
echo "############## INSTALL ISTIO WITH HELM ##############"
echo "create namespace $NS..."
kubectl create namespace $NS
echo "############## INSTALL ISTIO BASE CHART ##############"
helm install istio-base istio/base -n $NS --set defaultRevision=default
helm ls -n $NS
echo "############## INSTALL ISTIOD CHART ##############"
helm install istiod istio/istiod -n $NS --wait
helm ls -n $NS
kubectl get deployments -n $NS --output wide
echo "############## INSTALL ISTIO INGRESS CHART ##############"
kubectl create namespace istio-ingress
helm install istio-ingressgateway istio/gateway -n $NS --wait
echo "############## ISTIO INJECTION ENABLED ##############"
kubectl label namespace default istio-injection=enabled
kubectl get namespace -L istio-injection
echo "############## DONE ! ##############"
}
# 1. Check if Minikube IP is available
if ! istioctl version >/dev/null 2>&1; then
install_helm_istio
else
echo "Istio alredy installed"
fi