2020-02-18 21:28:25 +01:00
|
|
|
#!/bin/bash
|
2019-10-02 18:47:20 +02:00
|
|
|
|
|
|
|
#Download and unpack istio
|
2020-02-18 21:28:25 +01:00
|
|
|
ISTIO_VERSION=1.4.4
|
2019-10-02 18:47:20 +02:00
|
|
|
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
|
|
|
|
|
2019-10-02 20:11:48 +02:00
|
|
|
kubectl apply -f ../istio-namespace.yml
|
|
|
|
|
2019-10-02 18:47:20 +02:00
|
|
|
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
|
|
|
|
|
2020-02-18 21:28:25 +01:00
|
|
|
cd ..
|
2019-10-02 20:11:48 +02:00
|
|
|
|
2019-10-02 18:47:20 +02:00
|
|
|
#Install Knative
|
|
|
|
kubectl apply --selector knative.dev/crd-install=true \
|
|
|
|
--filename https://github.com/knative/serving/releases/download/v0.9.0/serving.yaml \
|
2019-10-02 21:02:07 +02:00
|
|
|
--filename https://github.com/knative/eventing/releases/download/v0.9.0/release.yaml
|
2019-10-02 18:47:20 +02:00
|
|
|
|
2019-10-29 11:16:37 +01:00
|
|
|
#This is needed because some CRDs do get installed properly
|
|
|
|
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
|
|
|
|
|
2019-10-02 18:47:20 +02:00
|
|
|
kubectl apply --filename https://github.com/knative/serving/releases/download/v0.9.0/serving.yaml \
|
2019-10-02 21:02:07 +02:00
|
|
|
--filename https://github.com/knative/eventing/releases/download/v0.9.0/release.yaml
|