Skip to content

Instantly share code, notes, and snippets.

@KazChe
Created August 29, 2018 19:24
Show Gist options
  • Save KazChe/3ad0bb45ec9e37d085719dfb47941c32 to your computer and use it in GitHub Desktop.
Save KazChe/3ad0bb45ec9e37d085719dfb47941c32 to your computer and use it in GitHub Desktop.
Kubeless Installation - GKE
$ gcloud container clusters create --cluster-version=1.9.7-gke.6 my-cluster --num-nodes 3 --zone us-central1-a
Creating cluster my-cluster...done.
kubeconfig entry generated for my-cluster.
NAME LOCATION MASTER_VERSION MASTER_IP MACHINE_TYPE NODE_VERSION NUM_NODES STATUS
my-cluster us-central1-a 1.9.7-gke.6 35.232.228.130 n1-standard-1 1.9.7-gke.6 3 RUNNING
$ kubectl create clusterrolebinding kubeless-cluster-admin --clusterrole=cluster-admin --user=<your gcp user-id>
clusterrolebinding.rbac.authorization.k8s.io "kubeless-cluster-admin" created
$ export RELEASE=$(curl -s https://api.github.com/repos/kubeless/kubeless/releases/latest | grep tag_name | cut -d '"' -f 4)
$kubectl create ns kubeless
namespace "kubeless" created
## use kubeless-$RELEASE as GKE is RBAC based.
$ kubectl create -f https://github.com/kubeless/kubeless/releases/download/$RELEASE/kubeless-$RELEASE.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment