Get Started Google Cloud
This article describes the steps to create a Kubernetes cluster that is managed by Platform9 Managed Kubernetes (PMK) on Google Cloud.
What you’ll need
Access to the inbox of a valid email address.
Google Cloud account with at least 1 active project.
For this tutorial, we will be using a project named "Platform9 Demo".
The project will need access to the Google Compute Engine API.
Access to a GNU/Linux system/shell/terminal.
Installing and Configuring Local Tools
Install the Google Cloud CLI.
# Add the Cloud CLI distribution URI as a package source
$ echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-cli main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
# Import the Google Cloud Platform public key
$ curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
# Update the package list and install the Cloud SDK
$ sudo apt-get update && sudo apt-get install google-cloud-cliConfigure the CLI to use your Google Cloud credentials.
Select the default project for the CLI.
Select the first option (which matches the project we created for the demo).
To make it easier to provision new compute resources, set the default zone.
Creating Virtual Machine (VM) Instance
List the public images available on the Google Compute Engine.
Based on the previous output, identify the image for
Ubuntu 18.04 LTS(which we'll use in this example), and create a VM instance with the namedemo-cluster-1.
Establish an SSH connection to the VM instance.
Attach VM Instance to Platform9
From your PMK Dashboard, select "My Infrastructure".

Select "Existing Virtual or Physical Infrastructure".

This area will give you direction about how to load our CLI on the VM instance you are SSH'd in to. You then configure the CLI to talk back to your PMK instance.
The pf9ctl prep-node command will install your customized PF9 agent and begin promoting the VM as a PMK node. The node will show up in the UI shortly after completion.
Debugging
If you encounter the message: Failure to prepare node, please review the pf9ctl log file for additional context.
Enterprise – Please submit a Support Request with the log attached and our team will review and work with you to onboard the node.
Last updated
Was this helpful?
