Skip to content

Commit 4611f91

Browse files
add worker_subnet_uuid to kubernetes docs (#1175)
* add worker_subnet_uuid to kubernetes docs * implement feedback --------- Co-authored-by: Harsh Maru <38807407+harshmaru7@users.noreply.github.com>
1 parent 4a39e3a commit 4611f91

4 files changed

Lines changed: 23 additions & 2 deletions

File tree

specification/resources/kubernetes/examples/curl/kubernetes_create_cluster.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ source: |-
33
curl -X POST \
44
-H "Content-Type: application/json" \
55
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
6-
-d '{"name": "prod-cluster-01","region": "nyc1","version": "1.14.1\
7-
-do.4","tags": ["production","web-team"],"node_pools": [{"size": "s-1vcpu-2gb","count": 3,"name": "frontend-pool","tags": ["frontend"],"labels": {"service": "frontend", "priority": "high"}},{"size": "c-4","count": 2,"name": "backend-pool"}]}' \
6+
-d '{"name": "prod-cluster-01","region": "nyc1","version": "1.14.1-do.4","vpc_uuid": "c33931f2-a26a-4e61-b85c-4e95a2ec431b","worker_subnet_uuid": "cbd79771-23eb-49be-b5ea-59cc56222622","tags": ["production","web-team"],"node_pools": [{"size": "s-1vcpu-2gb","count": 3,"name": "frontend-pool","tags": ["frontend"],"labels": {"service": "frontend", "priority": "high"}},{"size": "c-4","count": 2,"name": "backend-pool"}]}' \
87
"https://api.digitalocean.com/v2/kubernetes/clusters"

specification/resources/kubernetes/models/cluster.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,18 @@ properties:
5050
description: A string specifying the UUID of the VPC to which the
5151
Kubernetes cluster is assigned.<br><br>Requires `vpc:read` scope.
5252

53+
worker_subnet_uuid:
54+
type: string
55+
format: uuid
56+
example: cbd79771-23eb-49be-b5ea-59cc56222622
57+
description: |
58+
The UUID of the VPC subnet to attach worker nodes to. When omitted on
59+
create, the default subnet for the VPC is used. This value cannot be changed
60+
after the cluster is created.
61+
62+
`vpc_uuid` must also be set.
63+
<br><br>Requires `vpc:read` scope.
64+
5365
ipv4:
5466
type: string
5567
readOnly: true

specification/resources/kubernetes/models/cluster_read.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ properties:
5050
description: A string specifying the UUID of the VPC to which the
5151
Kubernetes cluster is assigned.<br><br>Requires `vpc:read` scope.
5252

53+
worker_subnet_uuid:
54+
type: string
55+
format: uuid
56+
example: cbd79771-23eb-49be-b5ea-59cc56222622
57+
description: |
58+
The UUID of the VPC subnet worker nodes are attached to. When unset, the
59+
default subnet for the VPC is used.<br><br>Requires `vpc:read` scope.
60+
5361
ipv4:
5462
type: string
5563
readOnly: true

specification/resources/kubernetes/responses/examples.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ kubernetes_single:
140140
cluster_subnet: 10.244.0.0/16
141141
service_subnet: 10.245.0.0/16
142142
vpc_uuid: c33931f2-a26a-4e61-b85c-4e95a2ec431b
143+
worker_subnet_uuid: cbd79771-23eb-49be-b5ea-59cc56222622
143144
ipv4: 68.183.121.157
144145
endpoint: https://bd5f5959-5e1e-4205-a714-a914373942af.k8s.ondigitalocean.com
145146
tags:
@@ -492,6 +493,7 @@ kubernetes_clusters_multi_pool_response:
492493
cluster_subnet: 10.244.0.0/16
493494
service_subnet: 10.245.0.0/16
494495
vpc_uuid: c33931f2-a26a-4e61-b85c-4e95a2ec431b
496+
worker_subnet_uuid: cbd79771-23eb-49be-b5ea-59cc56222622
495497
ipv4: ''
496498
endpoint: ''
497499
tags:

0 commit comments

Comments
 (0)