To get started easier, a script is provided to automate the cluster creation. Alternatively, a cluster can be created manually as well.
To provision a Kubernetes cluster manually, follow the GKE instructions.
Alternatively you can use the below to provision a GKE cluster as needed.
Scripted cluster creation
The script will:
- Create a new GKE cluster.
- Setup , and connect it to the cluster.
Google Cloud SDK is a dependency of this script, so make sure it’s in order for the script to work.
The script reads various parameters from environment variables and an argument up
or down
for bootstrap and clean-up respectively.
Run the script, by passing in your desired parameters. It can work with the default parameters except for PROJECT
which is required:
The script can also be used to clean up the created GKE resources:
Create a cluster with local SSDs
If you are planning to install a Pulsar Helm chart using local persistent volumes, you need to create a GKE cluster with local SSDs. You can do so using the provided script by specifying USE_LOCAL_SSD
to be true
. A sample command is listed as below: