Skip to content
This repository has been archived by the owner on Feb 14, 2022. It is now read-only.

Latest commit

 

History

History
34 lines (21 loc) · 1.37 KB

install-on-gke.md

File metadata and controls

34 lines (21 loc) · 1.37 KB

Install on GKE

Pre-requisites

Important: You will need a custom build of Docker CLI to deploy stacks onto GKE. The build must include this PR which has been merged onto the master branch.

Create compose namespace

Just run kubectl create namespace compose.

Deploy etcd

Compose on Kubernetes requires an etcd instance (in addition to the kube-system etcd instance). Please follow How to deploy etcd.

Admin rights

You must grant your current Google identity the cluster-admin Role:

$ gcloud info | grep Account
Account: [ACCOUNT]

$ kubectl create clusterrolebinding <ACCOUNT>-cluster-admin-binding --clusterrole=cluster-admin --user=<ACOUNT>
clusterrolebinding.rbac.authorization.k8s.io "<ACCOUNT>-cluster-admin-binding" created

Deploy Compose on Kubernetes

Run installer-[darwin|linux|windows.exe] -namespace=compose -etcd-servers=http://compose-etcd-client:2379.

Note: To setup Mutual TLS with the etcd instance, you can use etcd-ca-file, etcd-key-file and etcd-cert-file flags.