Skip to content

Instantly share code, notes, and snippets.

@askmeegs
Created December 15, 2019 21:16
Show Gist options
  • Save askmeegs/bdc283dc8e39b167795aac4b90ea5918 to your computer and use it in GitHub Desktop.
Save askmeegs/bdc283dc8e39b167795aac4b90ea5918 to your computer and use it in GitHub Desktop.
install istio 1.4.2
#!/bin/bash
# Download Istio
WORKDIR="`pwd`"
ISTIO_VERSION="${ISTIO_VERSION:?ISTIO_VERSION env variable must be specified}"
log "Downloading Istio ${ISTIO_VERSION}..."
curl -L https://git.io/getLatestIstio | ISTIO_VERSION=$ISTIO_VERSION sh -
# Prepare for install
kubectl create namespace istio-system
kubectl create clusterrolebinding cluster-admin-binding \
--clusterrole=cluster-admin \
--user=$(gcloud config get-value core/account)
helm template ${WORKDIR}/istio-${ISTIO_VERSION}/install/kubernetes/helm/istio-init --name istio-init --namespace istio-system | kubectl apply -f -
sleep 20
sleep 2
# Install with mesh expansion enabled
helm template ${WORKDIR}/istio-${ISTIO_VERSION}/install/kubernetes/helm/istio --name istio --namespace istio-system \
--set prometheus.enabled=true \
--set tracing.enabled=true \
--set kiali.enabled=true --set kiali.createDemoSecret=true \
--set "kiali.dashboard.jaegerURL=http://jaeger-query:16686" \
--set "kiali.dashboard.grafanaURL=http://grafana:3000" \
--set grafana.enabled=true \
--set global.proxy.accessLogFile="/dev/stdout" \
--set sidecarInjectorWebhook.enabled=true >> istio.yaml
# install istio
kubectl apply -f istio.yaml
# expose kiali
kubectl expose deployment -n istio-system kiali --port 20001 --name kiali2 --type LoadBalancer
kubectl label namespace default istio-injection=enabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment