Installing in GKE Cluster

If you are installing Kubeform on a GKE cluster, you will need cluster admin permissions to install Kubeform operator. Run the following command to grant admin permision to the cluster.

$ kubectl create clusterrolebinding "cluster-admin-$(whoami)" \
  --clusterrole=cluster-admin                                 \
  --user="$(gcloud config get-value core/account)"

In addition, if your GKE cluster is a private cluster, you will need to either add an additional firewall rule that allows master nodes access port 8443/tcp on worker nodes, or change the existing rule that allows access to ports 443/tcp and 10250/tcp to also allow access to port 8443/tcp. The procedure to add or modify firewall rules is described in the official GKE documentation for private clusters mentioned before.

Detect Kubeform version

To detect Kubeform version, exec into the operator pod and run provider-***-controller version command.

$ POD_NAMESPACE=kubeform
$ POD_NAME=$(kubectl get pods -n $POD_NAMESPACE -l -o jsonpath={.items[0]})
$ kubectl exec $POD_NAME -c operator -n $POD_NAMESPACE -- /provider-equinixmetal-controller version

Version = v2022.05.11
VersionStrategy = tag
GitTag = v2022.05.11
GitBranch = HEAD
CommitHash = bda0108f77a28ad63c453895529581e96dd9b18a
CommitTimestamp = 2021-07-21T22:52:59
GoVersion = go1.16.6
Compiler = gcc
Platform = linux/amd64