-
Notifications
You must be signed in to change notification settings - Fork 1
/
install-istio.sh
executable file
·28 lines (19 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
25
26
27
28
#!/bin/bash
# pull the 2 models
kubectl exec -it deploy/client -- curl http://ollama.ollama:80/api/pull -d '{"name": "llama3.2"}'
kubectl exec -it deploy/client -- curl http://ollama.ollama:80/api/pull -d '{"name": "llava"}'
# 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
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=~/src/github.com/istio/istio/
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