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".
  • Access to a GNU/Linux system/shell/terminal.

Looking to dive deeper? Check out the full Imported GKE Clusters for more extensive, provider-specific information.

Installing and Configuring Local Tools

  1. Install the Google Cloud CLI.
Bash
Copy
  1. Configure the CLI to use your Google Cloud credentials.
Bash
Copy
  1. Select the default project for the CLI.
Bash
Copy
  1. Select the first option (which matches the project we created for the demo).
  2. To make it easier to provision new compute resources, set the default zone.
Bash
Copy

Creating Virtual Machine (VM) Instance

  1. List the public images available on the Google Compute Engine.
Bash
Copy
  1. 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 name demo-cluster-1.
Bash
Copy

Note: record the EXTERNAL_IP as we'll need it in a few steps.

  1. Establish an SSH connection to the VM instance.
Bash
Copy

This command creates the necessary SSH keys, and logs you into the instance. The username is the same name you used to log into the terminal from which you’re working.

Bash
Copy

Attach VM Instance to Platform9

  1. From your PMK Dashboard, select "My Infrastructure".
  1. 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.

Note: when running the pf9ctl config set command, you will be prompted to provide your account credentials which were established earlier.

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.

Prepare Node - Pre-Requisite Check(s) Failed
Copy

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.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated