forked from istio-ecosystem/authservice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-istio.sh
executable file
·31 lines (25 loc) · 938 Bytes
/
install-istio.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
#!/usr/bin/env bash
set -eux
script_dir=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
cd ${script_dir}/../istio-1.4.0
# Follow quick setup instructions for Istio
for i in install/kubernetes/helm/istio-init/files/crd*yaml; do
kubectl apply -f ${i};
done
# For testing purposes, we’ll go the with “permissive mtls” setup
kubectl apply -f install/kubernetes/istio-demo.yaml
# Wait until all the istio components are running
while true; do
kubectl get pods -n istio-system
echo
read -p "Are all of the pods completed/running? (y/n)" yn
case ${yn} in
[Yy]* ) break;;
[Nn]* ) ;;
* ) echo "Please answer yes or no.";;
esac
done
# Label the namespace in which you intend to deploy your app to enable automatic
# sidecar injection for all pods in that namespace. E.g. if you plan to deploy
# your app into the default namespace:
kubectl label namespace default istio-injection=enabled