Skip to content

Commit

Permalink
Add cluster-admin binding for GKE
Browse files Browse the repository at this point in the history
  • Loading branch information
msau42 committed Jul 17, 2018
1 parent 2a66fc5 commit f0e2919
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deploy/kubernetes/cluster_setup.sh
Expand Up @@ -8,6 +8,11 @@ mydir="$(dirname $0)"

source "$mydir/../common.sh"

# GKE requires this extra cluster-admin rolebinding in order to create clusterroles
if ! kubectl get clusterrolebinding cluster-admin binding; then
kubectl create clusterrolebinding cluster-admin-binding --clusterrole cluster-admin --user $(gcloud config get-value account)
fi

kubectl apply -f "$mydir/manifests/setup_cluster.yaml"

if ! kubectl get secret gcp-filestore-csi-driver-sa --namespace=$GCFS_NS; then
Expand Down

0 comments on commit f0e2919

Please sign in to comment.