-
Notifications
You must be signed in to change notification settings - Fork 130
/
install-serving
executable file
·27 lines (18 loc) · 989 Bytes
/
install-serving
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
set -v
DIR="$(dirname "$0")"
. "${DIR}/config"
# Install Serving CRDs
kubectl apply -f "https://github.com/knative/serving/releases/download/knative-v${KNATIVE_SERVING_VERSION}/serving-crds.yaml"
# Install Serving Core Components
kubectl apply -f "https://github.com/knative/serving/releases/download/knative-v${KNATIVE_SERVING_VERSION}/serving-core.yaml"
# Install Istio
kubectl apply -f "https://github.com/knative/net-istio/releases/download/knative-v${KNATIVE_SERVING_VERSION}/istio.yaml"
# Install Knative Istio Controller
kubectl apply -f "https://github.com/knative/net-istio/releases/download/knative-v${KNATIVE_SERVING_VERSION}/net-istio.yaml"
# Optional: Setup Magic DNS (xip.io)
kubectl apply -f "https://github.com/knative/serving/releases/download/knative-v${KNATIVE_SERVING_VERSION}/serving-default-domain.yaml"
# Check pods have STATUS 'Running'
# kubectl get pods -n istio-system
# Check pods have STATUS 'Running'
# kubectl get pods -n knative-serving