Skip to main content
Version: v0.13.0

Google Kubernetes Engine

Follow these instructions to prepare a GKE cluster for NiFiKop

  1. Setup environment variables.
export GCP_PROJECT=<project_id>
export GCP_ZONE=<zone>
export CLUSTER_NAME=<cluster-name>
  1. Create a new cluster.
gcloud container clusters create $CLUSTER_NAME \
--cluster-version latest \
--machine-type=n1-standard-1 \
--num-nodes 4 \
--zone $GCP_ZONE \
--project $GCP_PROJECT
  1. Retrieve your credentials for kubectl.
cloud container clusters get-credentials $CLUSTER_NAME \
--zone $GCP_ZONE \
--project $GCP_PROJECT
  1. Grant cluster administrator (admin) permissions to the current user. To create the necessary RBAC rules for NiFiKop, the current user requires admin permissions.
kubectl create clusterrolebinding cluster-admin-binding \
--clusterrole=cluster-admin \
--user=$(gcloud config get-value core/account)