#!/bin/bash #Download and unpack istio ISTIO_VERSION=1.3.1 curl -L https://git.io/getLatestIstio | sh - cd istio-${ISTIO_VERSION} #Install istio CRDs for i in install/kubernetes/helm/istio-init/files/crd*yaml; do kubectl apply -f $i; done kubectl apply -f ../istio-namespace.yml helm template --namespace=istio-system \ --set prometheus.enabled=false \ --set mixer.enabled=false \ --set mixer.policy.enabled=false \ --set mixer.telemetry.enabled=false \ --set pilot.sidecar=false \ --set pilot.resources.requests.memory=128Mi \ --set galley.enabled=false \ --set global.useMCP=false \ --set security.enabled=false \ --set global.disablePolicyChecks=true \ --set sidecarInjectorWebhook.enabled=false \ --set global.proxy.autoInject=disabled \ --set global.omitSidecarInjectorConfigMap=true \ --set gateways.istio-ingressgateway.autoscaleMin=1 \ --set gateways.istio-ingressgateway.autoscaleMax=1 \ --set pilot.traceSampling=100 \ install/kubernetes/helm/istio \ > ./istio-lean.yaml kubectl apply -f istio-lean.yaml cd.. #Install Knative kubectl apply --selector knative.dev/crd-install=true \ --filename https://github.com/knative/serving/releases/download/v0.9.0/serving.yaml \ --filename https://github.com/knative/eventing/releases/download/v0.9.0/release.yaml kubectl apply --filename https://github.com/knative/serving/releases/download/v0.9.0/serving.yaml \ --filename https://github.com/knative/eventing/releases/download/v0.9.0/release.yaml