Skip to main content

Getting Started in GKE

Prerequisites

  • A standard (non-autopilot) working GKE cluster
    • you can install the gcloud binary and create a cluster with it using the tools provided by asdf in initium-platform as explained below
  • The Kubernetes Engine API (container.googleapis.com) enabled in GCP
  • The cluster's control plane should be network accessible so the CLI can reach it (through a VPN or public networks)
    • remember to check the cluster's networking options

Install Platform

  1. Clone the platform repository
git clone https://github.com/nearform/initium-platform.git
  1. Install the required tooling
cd initium-platform
make asdf_install

Steps 3 and 4 are not needed if you already have a GKE cluster.

  1. Install the gke-gcloud-auth-plugin and login
gcloud components install gke-gcloud-auth-plugin
gcloud auth login
  1. Create the GKE cluster
    1. Replace "YOUR DEFAULT ZONE" and "COMMA-SEPARATED LIST OF NODE ZONES" with your default GCP region
gcloud container clusters create initium-cluster \
--zone <YOUR DEFAULT ZONE> \
--node-locations <COMMA-SEPARATED LIST OF NODE ZONES>