Last active
June 20, 2018 03:33
-
-
Save ericstoekl/4221cf5605c6f7fb1370f0c52fce6b31 to your computer and use it in GitHub Desktop.
OpenFaaS Helm deployment from Repository on GKE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure you have your ~/.kube/config set up to point to the cluster you want. | |
kubectl create clusterrolebinding "cluster-admin-$(whoami)" \ | |
--clusterrole=cluster-admin \ | |
--user="$(gcloud config get-value core/account)" | |
helm repo add openfaas https://s3-us-west-2.amazonaws.com/openfaas-repo | |
helm search openfaas # Confirm that openfaas/openfaas exists | |
helm init | |
kubectl get all -n kube-system # Make sure that Tiller is at 1/1 status | |
# RBAC is enabled on the cluster, so we need to give tiller the cluster-admin clusterrole | |
kubectl create clusterrolebinding tiller-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default | |
helm install openfaas/openfaas | |
# Upgrade the deployment to create a loadbalancer: | |
helm upgrade `helm list | sed "2q;d" | awk -n '{print $1}'` openfaas/openfaas --set serviceType=LoadBalancer | |
# You can now go to <gateway-external>:8080 to get to the web UI |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment