command
Version:
v0.0.0-...-62801f1
Opens a new window with list of versions in this module.
Published: Jan 22, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
prow-cluster-operation
prow-cluster-operation is a tool for creating, deleting, getting a GKE cluster
Prerequisite
GOOGLE_APPLICATION_CREDENTIALS
set
Usage
This tool can be invoked from command line with following parameters:
--min-nodes
: minumum number of nodes, default 1
--max-nodes
: maximum number of nodes, default 3
--node-type
: GCE node type, default "n1-standard-4"
--region
: GKE region, default "us-central1"
--zone
: GKE zone, default empty
--project
: GCP project, default empty
--name
: cluster name, default empty
--backup-regions
: backup regions to be used if cluster creation in primary
region failed, comma separated list, default "us-west1,us-east1"
--addons
: GKE addons, comma separated list, default empty
Flow
Create
-
Acquiring cluster if kubeconfig already points to it
-
Get GCP project name if not provided as a parameter:
- [In Prow] Acquire from Boskos
- [Not in Prow] Read from gcloud config
Failed obtaining project name will fail the tool
-
Get default cluster name if not provided as a parameter
-
Delete cluster if cluster with same name and location already exists in GKE
-
Create cluster
-
Write cluster metadata to ${ARTIFACT}/metadata.json
Delete
- Acquiring cluster if kubeconfig already points to it
- If cluster name is defined then getting cluster by its name
- If no cluster is found from previous step then it fails
- Delete:
- [In Prow] Release Boskos project
- [Not in Prow] Delete cluster
Get
- Acquiring cluster if kubeconfig already points to it
- If cluster name is defined then getting cluster by its name
- If no cluster is found from previous step then it fails
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.