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 byasdf
ininitium-platform
as explained below
- you can install the
- 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
- Clone the platform repository
git clone https://github.com/nearform/initium-platform.git
- Install the required tooling
cd initium-platform
make asdf_install
Steps 3 and 4 are not needed if you already have a GKE cluster.
- Install the
gke-gcloud-auth-plugin
and login
gcloud components install gke-gcloud-auth-plugin
gcloud auth login
- Create the GKE cluster
- 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>