action GKE

resize_nodepool

Resize a node pool

Run it now
View details
Typeaction
Modulechaosgcp.gke.nodepool.actions
Nameresize_nodepool
Returnmapping

Usage

JSON

{
  "name": "resize-nodepool",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosgcp.gke.nodepool.actions",
    "func": "resize_nodepool"
  }
}

YAML

name: resize-nodepool
provider:
  func: resize_nodepool
  module: chaosgcp.gke.nodepool.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
node_pool_idstringYesNode Pool IdentifierName of the nodepool to resize
pool_sizeinteger1YesNew SizeNew nodepool size
wait_until_completebooleantrueNoWait Until CompleteWait until operation has completed

If wait_until_complete is set to True (the default), the function will block until the node pool is deleted. 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 resize_nodepool(
        pool_size: int = 1,
        node_pool_id: str = None,
        parent: str = None,
        wait_until_complete: bool = True,
        project_id: str = None,
        region: str = None,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass