File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,15 @@ readonly KUBEDEPLOY="${PKGDIR}/deploy/kubernetes"
8
8
9
9
if ! kubectl get secret cloud-sa;
10
10
then
11
- kubectl create secret generic cloud-sa --from-file=" ${SA_FILE} "
11
+ kubectl create secret generic cloud-sa --from-file=" ${SA_FILE} "
12
12
fi
13
+
14
+ # GKE Required Setup
15
+ if ! kubectl get clusterrolebinding cluster-admin-binding;
16
+ then
17
+ kubectl create clusterrolebinding cluster-admin-binding --clusterrole cluster-admin --user $( gcloud config get-value account)
18
+ fi
19
+
13
20
kubectl apply -f " ${KUBEDEPLOY} /setup-cluster.yaml"
14
21
kubectl apply -f " ${KUBEDEPLOY} /node.yaml"
15
- kubectl apply -f " ${KUBEDEPLOY} /controller.yaml"
22
+ kubectl apply -f " ${KUBEDEPLOY} /controller.yaml"
Original file line number Diff line number Diff line change @@ -16,4 +16,4 @@ gcloud iam service-accounts delete "$IAM_NAME" --quiet || true
16
16
gcloud iam service-accounts create " ${GCEPD_SA_NAME} "
17
17
gcloud iam service-accounts keys create " ${SA_FILE} " --iam-account " ${IAM_NAME} "
18
18
gcloud projects add-iam-policy-binding " ${PROJECT} " --member serviceAccount:" ${IAM_NAME} " --role roles/compute.admin
19
- gcloud projects add-iam-policy-binding " ${PROJECT} " --member serviceAccount:" ${IAM_NAME} " --role roles/iam.serviceAccountUser
19
+ gcloud projects add-iam-policy-binding " ${PROJECT} " --member serviceAccount:" ${IAM_NAME} " --role roles/iam.serviceAccountUser
You can’t perform that action at this time.
0 commit comments