From 3eccd55963ffd3bde10aaeaf1c05786bb250798a Mon Sep 17 00:00:00 2001 From: Alex Ellis Date: Sat, 10 Mar 2018 10:37:52 +0100 Subject: [PATCH] Update for GKE RBAC instruction --- guide/deployment_k8s.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/guide/deployment_k8s.md b/guide/deployment_k8s.md index 4dc8435d..6b953ca1 100644 --- a/guide/deployment_k8s.md +++ b/guide/deployment_k8s.md @@ -26,6 +26,14 @@ We have a special guide for minikube here: * [Getting started with OpenFaaS on minikube](https://medium.com/devopslinks/getting-started-with-openfaas-on-minikube-634502c7acdf) +Are you using Google Kubernetes Engine (GKE)? You'll need to create an RBAC role with the following command: + +``` +# kubectl create clusterrolebinding "cluster-admin-$(whoami)" \ + --clusterrole=cluster-admin \ + --user="$(gcloud config get-value core/account)" +``` + ### 1.1 Pick helm or YAML files for deployment If you'd like to use helm follow the instructions in 2.0a and then come back here, otherwise follow 2.0b to use plain `kubectl`.