{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"To update the name of a node pool, edit the tags applied to it, or adjust its\nnumber of nodes, send a PUT request to\n`/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID` with the\nfollowing attributes.\n","properties":{"path":{"type":"object","properties":{"cluster_id":{"type":"string","format":"uuid","minimum":1,"examples":["bd5f5959-5e1e-4205-a714-a914373942af"],"description":"A unique ID that can be used to reference a Kubernetes cluster."},"node_pool_id":{"type":"string","format":"uuid","minimum":1,"examples":["cdda885e-7663-40c8-bc74-3a036c66545d"],"description":"A unique ID that can be used to reference a Kubernetes node pool."}},"required":["cluster_id","node_pool_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/kubernetes_node_pool_update"}},"required":["path","body"],"additionalProperties":false,"definitions":{"kubernetes_node_pool_update":{"type":"object","allOf":[{"$ref":"#/definitions/kubernetes_node_pool_base"}],"required":["name","count"]},"kubernetes_node_pool_base":{"type":"object","properties":{"name":{"type":"string","description":"A human-readable name for the node pool.","examples":["frontend-pool"]},"count":{"type":"integer","description":"The number of Droplet instances in the node pool.","examples":[3]},"tags":{"type":"array","items":{"type":"string"},"description":"An array containing the tags applied to the node pool. All node pools are automatically tagged `k8s`, `k8s-worker`, and `k8s:$K8S_CLUSTER_ID`. <br><br>Requires `tag:read` scope.","examples":[["k8s","k8s:bd5f5959-5e1e-4205-a714-a914373942af","k8s-worker","production","web-team"]]},"labels":{"type":["object","null"],"description":"An object of key/value mappings specifying labels to apply to all nodes in a pool. Labels will automatically be applied to all existing nodes and any subsequent nodes added to the pool. Note that when a label is removed, it is not deleted from the nodes in the pool.","examples":[null]},"taints":{"type":"array","items":{"$ref":"#/definitions/kubernetes_node_pool_taint"},"description":"An array of taints to apply to all nodes in a pool. Taints will automatically be applied to all existing nodes and any subsequent nodes added to the pool. When a taint is removed, it is deleted from all nodes in the pool."},"auto_scale":{"type":"boolean","description":"A boolean value indicating whether auto-scaling is enabled for this node pool.","examples":[true]},"min_nodes":{"type":"integer","description":"The minimum number of nodes that this node pool can be auto-scaled to. The value will be `0` if `auto_scale` is set to `false`.","examples":[3]},"max_nodes":{"type":"integer","description":"The maximum number of nodes that this node pool can be auto-scaled to. The value will be `0` if `auto_scale` is set to `false`.","examples":[6]}}},"kubernetes_node_pool_taint":{"type":"object","properties":{"key":{"type":"string","description":"An arbitrary string. The `key` and `value` fields of the `taint` object form a key-value pair. For example, if the value of the `key` field is \"special\" and the value of the `value` field is \"gpu\", the key value pair would be `special=gpu`.","examples":["priority"]},"value":{"type":"string","description":"An arbitrary string. The `key` and `value` fields of the `taint` object form a key-value pair. For example, if the value of the `key` field is \"special\" and the value of the `value` field is \"gpu\", the key value pair would be `special=gpu`.","examples":["high"]},"effect":{"type":"string","enum":["NoSchedule","PreferNoSchedule","NoExecute"],"description":"How the node reacts to pods that it won't tolerate. Available effect values are `NoSchedule`, `PreferNoSchedule`, and `NoExecute`.","examples":["NoSchedule"]}}}}},"name":"Update a Node Pool in a Kubernetes Cluster","id":"digitalocean.kubernetes_update_nodepool","example":{"path":{"cluster_id":"bd5f5959-5e1e-4205-a714-a914373942af","node_pool_id":"cdda885e-7663-40c8-bc74-3a036c66545d"},"body":{"name":"frontend-pool","count":3}},"maxRequests":1,"summary":false}}