actionGKE

create_new_nodepool

Create a new node pool in the given cluster/zone of the provided project

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaosgcp.gke.nodepool.actions
Namecreate_new_nodepool
Returnmapping

Usage

JSON

{
  "name": "create-new-nodepool",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosgcp.gke.nodepool.actions",
    "func": "create_new_nodepool",
    "arguments": {
      "body": {}
    }
  }
}

YAML

name: create-new-nodepool
provider:
  arguments:
    body: {}
  func: create_new_nodepool
  module: chaosgcp.gke.nodepool.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
bodymappingYesDefinitionNodepool definition
wait_until_completebooleantrueNoWait Until CompleteWait until operation has completed

The node pool config must be passed a mapping to the body parameter and respect the REST API.

If wait_until_complete is set to True (the default), the function will block until the node pool is ready. Otherwise, will return immediately with the operation information.

See: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools/create

Signature

def create_new_nodepool(
        body: Dict[str, Any],
        wait_until_complete: bool = True,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass