Skip to content
This repository was archived by the owner on Jun 7, 2021. It is now read-only.

Commit 25dfbd2

Browse files
committed
build,test: tweak cluster set up
1 parent 5784641 commit 25dfbd2

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,5 @@ tags
7676
.history
7777
# End of https://www.gitignore.io/api/go,vim,emacs,visualstudiocode
7878
vendor
79+
80+
istio-1.1.7

test/setup-cluster.sh

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
set -x
4+
35
# This script will set up a minikube cluster with knative serving and eventing
46
# as well as tekton pipelines.
57

@@ -11,6 +13,7 @@ minikube start --memory=8192 --cpus=6 \
1113
--disk-size=30g \
1214
--extra-config=apiserver.enable-admission-plugins="LimitRanger,NamespaceExists,NamespaceLifecycle,ResourceQuota,ServiceAccount,DefaultStorageClass,MutatingAdmissionWebhook"
1315

16+
echo "Installing helm tiller"
1417
helm init
1518

1619
# Install Istio
@@ -21,7 +24,7 @@ cd istio-${ISTIO_VERSION}
2124

2225
for i in install/kubernetes/helm/istio-init/files/crd*yaml; do kubectl apply -f $i; done
2326

24-
echo "Waiting for CRDs to be comitted"
27+
echo "Waiting for CRDs to be committed"
2528
sleep 7
2629

2730
cat <<EOF | kubectl apply -f -
@@ -66,14 +69,22 @@ kubectl apply -f istio-lean.yaml
6669
kubectl get pods --namespace istio-system
6770

6871
# 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
6979
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
7381

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
7788

7889

7990
# Install Tekton
@@ -89,4 +100,11 @@ kubectl apply -f deploy/service_account.yaml
89100
kubectl apply -f deploy/build/js-function-build.yaml
90101
kubectl apply -f deploy/operator.yaml
91102

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

Comments
 (0)