1
1
#! /bin/sh
2
2
3
+ set -x
4
+
3
5
# This script will set up a minikube cluster with knative serving and eventing
4
6
# as well as tekton pipelines.
5
7
@@ -11,6 +13,7 @@ minikube start --memory=8192 --cpus=6 \
11
13
--disk-size=30g \
12
14
--extra-config=apiserver.enable-admission-plugins=" LimitRanger,NamespaceExists,NamespaceLifecycle,ResourceQuota,ServiceAccount,DefaultStorageClass,MutatingAdmissionWebhook"
13
15
16
+ echo " Installing helm tiller"
14
17
helm init
15
18
16
19
# Install Istio
@@ -21,7 +24,7 @@ cd istio-${ISTIO_VERSION}
21
24
22
25
for i in install/kubernetes/helm/istio-init/files/crd* yaml; do kubectl apply -f $i ; done
23
26
24
- echo " Waiting for CRDs to be comitted "
27
+ echo " Waiting for CRDs to be committed "
25
28
sleep 7
26
29
27
30
cat << EOF | kubectl apply -f -
@@ -66,14 +69,22 @@ kubectl apply -f istio-lean.yaml
66
69
kubectl get pods --namespace istio-system
67
70
68
71
# Install Knative
72
+ echo " Preparing to knative installation"
73
+ kubectl apply --selector knative.dev/crd-install=true \
74
+ --filename https://github.com/knative/serving/releases/download/v0.8.0/serving.yaml \
75
+ --filename https://github.com/knative/eventing/releases/download/v0.8.0/release.yaml \
76
+ --filename https://github.com/knative/serving/releases/download/v0.8.0/monitoring.yaml
77
+
78
+ # Apparently there is a known race condition on install, so just to be safe do this again
69
79
kubectl apply --selector knative.dev/crd-install=true \
70
- --filename https://github.com/knative/serving/releases/download/v0.9.0/serving.yaml \
71
- --filename https://github.com/knative/eventing/releases/download/v0.9.0/release.yaml \
72
- --filename https://github.com/knative/serving/releases/download/v0.9.0/monitoring.yaml
80
+ --filename https://github.com/knative/serving/releases/download/v0.8.0/serving.yaml
73
81
74
- kubectl apply --filename https://github.com/knative/serving/releases/download/v0.9.0/serving.yaml \
75
- --filename https://github.com/knative/eventing/releases/download/v0.9.0/release.yaml \
76
- --filename https://github.com/knative/serving/releases/download/v0.9.0/monitoring.yaml
82
+ echo " Applying knative resources"
83
+ kubectl apply --filename https://github.com/knative/serving/releases/download/v0.8.0/serving.yaml \
84
+ --filename https://github.com/knative/eventing/releases/download/v0.8.0/release.yaml \
85
+ --filename https://github.com/knative/serving/releases/download/v0.8.0/monitoring.yaml
86
+
87
+ # Apparently there is a known race condition on install, so just to be safe do this again
77
88
78
89
79
90
# Install Tekton
@@ -89,4 +100,11 @@ kubectl apply -f deploy/service_account.yaml
89
100
kubectl apply -f deploy/build/js-function-build.yaml
90
101
kubectl apply -f deploy/operator.yaml
91
102
92
- kubectl get namespaces
103
+ kubectl get pods -n istio-system
104
+ kubectl get pods -n tekton-pipelines
105
+ kubectl get pods -n knative-monitoring
106
+ kubectl get pods -n knative-eventing
107
+ kubectl get pods -n knative-serving
108
+ kubectl get pods -n default
109
+
110
+ echo " Cluster set up complete. Wait for up to 10 minutes for the cluster to be fully functional."
0 commit comments