gke plugin

Contents

Usage

This section documents the behavior of the gke plugin when using the CLI.

Before using the gke plugin you must have its prerequisites.

setup

Google will charge you for your use of GKE (more info).

When running microbs setup [-k], the gke plugin runs gcloud container clusters create.

Currently, the gke plugin deploys a fixed-sized cluster in "Standard" mode (i.e. not "Autopilot") with the following configuration:

  • Machine type: e2-highcpu-4
  • Number of nodes: 1 node for each zone in the given region_name (usually 3 nodes total).
  • Disks: 32GB SSD Persistent Disks

rollout

The gke plugin is unaffected by microbs rollout.

destroy

When running microbs destroy [-k], the gke plugin runs gcloud container clusters delete.

Prerequisites

Create GCP resources

You must create the following GCP resources before using the gke plugin:

Install dependencies

The gke plugin requires the following software dependencies on the same machine as microbs:

Software Version
gcloud 372.0.0

Configuration

This section documents the gke plugin configurations for config.yaml.

Required fields

plugins.gke.project_name

Name of the project in which your GKE cluster will be deployed.

Example: acmecorp

plugins.gke.region_name

Name of the region in which your GKE cluster will be deployed. Your VPC network must support your chosen region.

See the available regions for acceptable values. Do NOT include the zone suffix (e.g. -a, -b, -c, -d).

Examples: us-central1, asia-east1

plugins.gke.network_name

Name of the VPC network in which your GKE cluster will be deployed.

Example: microbs

plugins.gke.subnetwork_name

Name of the VPC subnetwork in which your GKE cluster will be deployed.

Example: microbs-us-east1

plugins.gke.service_account_name

Name of the service account that microbs will use to authenticate interactions with GCP.

Example: [email protected]

plugins.gke.service_account_key_path

Path to the service account key JSON file that microbs will use to authenticate interactions with GCP.

Example: /path/to/my/secret/key/acmecorp-999999-49d9ba2b8b6d.json

© 2022 Dave Moore.
Licensed under the Apache License, Version 2.0.
This website uses Google Analytics.

microbs is a project of the open source community. microbs is not officially supported by any vendors named in this documentation or the software (e.g. Cloud Native Computing Foundation, Amazon, Google, Microsoft, Elastic, Grafana), though employees or partners of those vendors may contribute to the project.