a-blender / gke-operator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gke-operator

Operator for managing GKE clusters in Rancher.

Building

go build -o gke-operator main.go

Running

With a kubeconfig set in your shell, run the binary:

./gke-operator

Apply the CRD:

kubectl apply -f crds/gkeclusterconfig.yaml

Create a file named googlecredentialConfig-authEncodedJson with the contents of your JSON service account credential. Then create a cloud credential secret:

kubectl --namespace cattle-global-data create secret generic --from-file=googlecredentialConfig-authEncodedJson cc-abcde

Edit at a minimum the projectID and create a cluster:

kubectl apply -f examples/cluster-basic.yaml

About

License:Apache License 2.0


Languages

Language:Go 94.3%Language:Shell 3.9%Language:Mustache 0.8%Language:Dockerfile 0.6%Language:Makefile 0.4%