knative-report/deploy/install_knative.sh

44 lines
1.5 KiB
Bash
Raw Normal View History

2019-10-02 18:47:20 +02:00
#!/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
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
2019-10-02 20:11:48 +02:00
cd..
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
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