-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall-istio.sh
executable file
·24 lines (17 loc) · 1.31 KB
/
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
#!/bin/bash
# TAG=$(curl https://storage.googleapis.com/istio-build/dev/latest)
# TAG=1.24-alpha.6a458274241dd51fbd6e015e7f439a29e8beb07f
# istioctl install --set tag=$TAG --set hub=gcr.io/istio-testing --set profile=ambient --skip-confirmation --set meshConfig.accessLogFile=/dev/stdout --set values.pilot.env.PILOT_ENABLE_IP_AUTOALLOCATE=true --set values.cni.ambient.dnsCapture=true
istioctl install --set profile=ambient --skip-confirmation --set meshConfig.accessLogFile=/dev/stdout --set values.pilot.env.PILOT_ENABLE_IP_AUTOALLOCATE=true --set values.cni.ambient.dnsCapture=true
kubectl get crd gateways.gateway.networking.k8s.io &> /dev/null || \
{ kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.2.0/standard-install.yaml }
# change this to your istio dir
ISTIO_DOWNLOAD_DIR=~/Downloads/istio-1.24.0
kubectl apply -f $ISTIO_DOWNLOAD_DIR/samples/addons/prometheus.yaml
kubectl apply -f $ISTIO_DOWNLOAD_DIR/samples/addons/kiali.yaml
# kubectl apply -f $ISTIO_DOWNLOAD_DIR/samples/addons/grafana.yaml
#kubectl create ns istio-egress
#kubectl label ns istio-egress istio.io/dataplane-mode=ambient
#istioctl waypoint apply --enroll-namespace --namespace istio-egress
# kubectl label ns default istio.io/dataplane-mode=ambient
# kubectl label ns ollama istio.io/dataplane-mode=ambient