Skip to content

Instantly share code, notes, and snippets.

@developer-guy
Created November 24, 2020 10:06
Show Gist options
  • Save developer-guy/aa6e9256b942e1522a5f4ea4a20f788d to your computer and use it in GitHub Desktop.
Save developer-guy/aa6e9256b942e1522a5f4ea4a20f788d to your computer and use it in GitHub Desktop.
Setting up Istio
#!/usr/bin/env bash
set -e
# Get the distribution
mkdir istio
cd istio
curl -L https://istio.io/downloadIstio | sh -
cd istio-1.8.0
# Create a namespace for Istio
kubectl create namespace istio-system
# Use Helm to install Istio
helm install --namespace istio-system istio-base \
manifests/charts/base \
--set global.jwtPolicy=first-party-jwt
helm install --namespace istio-system istiod \
manifests/charts/istio-control/istio-discovery \
--set global.hub="docker.io/istio" \
--set global.tag="1.8.0" \
--set global.jwtPolicy=first-party-jwt
# Now get the key addons
kubectl apply -f samples/addons/prometheus.yaml
kubectl apply -f samples/addons/kiali.yaml
kubectl apply -f samples/addons/grafana.yaml
# And set up automatic sidecar injection
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