You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scaleway-async/scaleway_async/k8s/v1/api.py
+18-13Lines changed: 18 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -244,7 +244,7 @@ async def create_cluster(
244
244
"""
245
245
Create a new Cluster.
246
246
Create a new Kubernetes cluster in a Scaleway region.
247
-
:param type_: Type of the cluster (possible values are kapsule, multicloud, kapsule-dedicated-8, kapsule-dedicated-16).
247
+
:param type_: Type of the cluster. See [list available cluster types](#list-available-cluster-types-for-a-cluster) for a list of valid types.
248
248
:param description: Cluster description.
249
249
:param version: Kubernetes version of the cluster.
250
250
:param region: Region to target. If none is passed will use default region from the config.
@@ -407,7 +407,7 @@ async def update_cluster(
407
407
:param description: New description for the cluster.
408
408
:param tags: New tags associated with the cluster.
409
409
:param autoscaler_config: New autoscaler config for the cluster.
410
-
:param auto_upgrade: New auto upgrade configuration for the cluster. Note that all fields need to be set.
410
+
:param auto_upgrade: New auto upgrade configuration for the cluster. Note that all fields needs to be set.
411
411
:param feature_gates: List of feature gates to enable.
412
412
:param admission_plugins: List of admission plugins to enable.
413
413
:param open_id_connect_config: OpenID Connect configuration of the cluster. This configuration enables to update the OpenID Connect configuration of the Kubernetes API server.
@@ -460,7 +460,7 @@ async def delete_cluster(
460
460
) ->Cluster:
461
461
"""
462
462
Delete a Cluster.
463
-
Delete a specific Kubernetes cluster and all its associated pools and nodes. Note that this method will not delete any Load Balancer or Block Volume that are associated with the cluster.
463
+
Delete a specific Kubernetes cluster and all its associated pools and nodes, and possibly its associated Load Balancers or Block Volumes.
464
464
:param cluster_id: ID of the cluster to delete.
465
465
:param with_additional_resources: Defines whether all volumes (including retain volume type), empty Private Networks and Load Balancers with a name starting with the cluster ID will also be deleted.
466
466
:param region: Region to target. If none is passed will use default region from the config.
@@ -549,7 +549,7 @@ async def set_cluster_type(
549
549
) ->Cluster:
550
550
"""
551
551
Change the Cluster type.
552
-
Change the type of a specific Kubernetes cluster. To see the possible values you can enter for the `type` field, [list available cluster types](#path-clusters-list-available-cluster-types-for-a-cluster).
552
+
Change the type of a specific Kubernetes cluster. To see the possible values you can enter for the `type` field, [list available cluster types](#list-available-cluster-types-for-a-cluster).
553
553
:param cluster_id: ID of the cluster to migrate from one type to another.
554
554
:param type_: Type of the cluster. Note that some migrations are not possible (please refer to product documentation).
555
555
:param region: Region to target. If none is passed will use default region from the config.
Reset the admin token for a specific Kubernetes cluster. This will revoke the old admin token (which will not be usable afterwards) and create a new one. Note that you will need to download kubeconfig again to keep interacting with the cluster.
704
+
Reset the admin token for a specific Kubernetes cluster. This will revoke the old admin token (which will not be usable afterwards) and create a new one. Note that you will need to download the kubeconfig again to keep interacting with the cluster.
705
705
:param cluster_id: Cluster ID on which the admin token will be renewed.
706
706
:param region: Region to target. If none is passed will use default region from the config.
Enable the latest CSI compatible with Scaleway Block Storage (SBS) and migrate all existing PersistentVolumes/VolumeSnapshotContents to SBS.
738
+
Make sure to have the necessary Quota before running this command.
738
739
:param cluster_id: Cluster ID for which the latest CSI compatible with Scaleway Block Storage will be enabled.
739
740
:param region: Region to target. If none is passed will use default region from the config.
740
741
:return: :class:`Cluster <Cluster>`
@@ -1087,17 +1088,20 @@ async def create_pool(
1087
1088
:param autoscaling: Defines whether the autoscaling feature is enabled for the pool.
1088
1089
:param size: Size (number of nodes) of the pool.
1089
1090
:param name: Pool name.
1090
-
:param placement_group_id: Placement group ID in which all the nodes of the pool will be created.
1091
+
:param placement_group_id: Placement group ID in which all the nodes of the pool will be created, placement groups are limited to 20 instances.
1091
1092
:param min_size: Defines the minimum size of the pool. Note that this field is only used when autoscaling is enabled on the pool.
1092
1093
:param autohealing: Defines whether the autohealing feature is enabled for the pool.
1093
1094
:param public_ip_disabled: Defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway.
1094
1095
:param max_size: Defines the maximum size of the pool. Note that this field is only used when autoscaling is enabled on the pool.
1095
-
:param container_runtime: Customization of the container runtime is available for each pool. Note that `docker` has been deprecated since version 1.20 and will be removed by version 1.24.
1096
-
:param tags: Tags associated with the pool.
1096
+
:param container_runtime: Customization of the container runtime is available for each pool.
1097
+
:param tags: Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags).
1097
1098
:param kubelet_args: Kubelet arguments to be used by this pool. Note that this feature is experimental.
1098
1099
:param upgrade_policy: Pool upgrade policy.
1099
1100
:param zone: Zone in which the pool's nodes will be spawned.
1100
-
:param root_volume_type: Defines the system volume disk type. Two different types of volume (`volume_type`) are provided: `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. `b_ssd` is a remote block storage which means your system is stored on a centralized and resilient cluster.
1101
+
:param root_volume_type: * `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. This type is not available for all node types
1102
+
* `sbs-5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits
1103
+
* `sbs-15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits
1104
+
* `b_ssd` is the legacy remote block storage which means your system is stored on a centralized and resilient cluster. Consider using `sbs-5k` or `sbs-15k` instead.
1101
1105
:param root_volume_size: System volume disk size.
1102
1106
:return: :class:`Pool <Pool>`
1103
1107
@@ -1231,6 +1235,7 @@ async def upgrade_pool(
1231
1235
"""
1232
1236
Upgrade a Pool in a Cluster.
1233
1237
Upgrade the Kubernetes version of a specific pool. Note that it only works if the targeted version matches the cluster's version.
1238
+
This will drain and replace the nodes in that pool.
1234
1239
:param pool_id: ID of the pool to upgrade.
1235
1240
:param version: New Kubernetes version for the pool.
1236
1241
:param region: Region to target. If none is passed will use default region from the config.
@@ -1282,7 +1287,7 @@ async def update_pool(
1282
1287
) ->Pool:
1283
1288
"""
1284
1289
Update a Pool in a Cluster.
1285
-
Update the attributes of a specific pool, such as its desired size, autoscaling settings, and tags.
1290
+
Update the attributes of a specific pool, such as its desired size, autoscaling settings, and tags. To upgrade a pool, you will need to use the dedicated endpoint.
1286
1291
:param pool_id: ID of the pool to update.
1287
1292
:param region: Region to target. If none is passed will use default region from the config.
1288
1293
:param autoscaling: New value for the pool autoscaling enablement.
@@ -1646,7 +1651,7 @@ async def replace_node(
1646
1651
) ->Node:
1647
1652
"""
1648
1653
Replace a Node in a Cluster.
1649
-
Replace a specific Node. The node will first be cordoned (scheduling will be disabled on it). The existing pods on the node will then be drained and rescheduled onto another schedulable node. Note that when there is not enough space to reschedule all the pods (such as in a one-node cluster), disruption of your applications can be expected.
1654
+
Replace a specific Node. The node will first be drained and pods will be rescheduled onto another node. Note that when there is not enough space to reschedule all the pods (such as in a one-node cluster, or with specific constraints), disruption of your applications may occur.
1650
1655
:param node_id: ID of the node to replace.
1651
1656
:param region: Region to target. If none is passed will use default region from the config.
1652
1657
:return: :class:`Node <Node>`
@@ -1682,7 +1687,7 @@ async def reboot_node(
1682
1687
) ->Node:
1683
1688
"""
1684
1689
Reboot a Node in a Cluster.
1685
-
Reboot a specific Node. The node will first be cordoned (scheduling will be disabled on it). The existing pods on the node will then be drained and rescheduled onto another schedulable node. Note that when there is not enough space to reschedule all the pods (such as in a one-node cluster), disruption of your applications can be expected.
1690
+
Reboot a specific Node. The node will first be drained and pods will be rescheduled onto another node. Note that when there is not enough space to reschedule all the pods (such as in a one-node cluster, or with specific constraints), disruption of your applications may occur.
1686
1691
:param node_id: ID of the node to reboot.
1687
1692
:param region: Region to target. If none is passed will use default region from the config.
1688
1693
:return: :class:`Node <Node>`
@@ -1719,7 +1724,7 @@ async def delete_node(
1719
1724
) ->Node:
1720
1725
"""
1721
1726
Delete a Node in a Cluster.
1722
-
Delete a specific Node. Note that when there is not enough space to reschedule all the pods (such as in a one-node cluster), disruption of your applications can be expected.
1727
+
Delete a specific Node. The node will first be drained and pods will be rescheduled onto another node. Note that when there is not enough space to reschedule all the pods (such as in a one-node cluster, or with specific constraints), disruption of your applications may occur.
1723
1728
:param node_id: ID of the node to replace.
1724
1729
:param skip_drain: Skip draining node from its workload (Note: this parameter is currently inactive).
1725
1730
:param replace: Add a new node after the deletion of this node.
@@ -243,7 +251,7 @@ class ClusterAutoscalerConfig:
243
251
244
252
scale_down_delay_after_add: str
245
253
"""
246
-
How long after scale up that scale down evaluation resumes.
254
+
How long after scale up the scale down evaluation resumes.
247
255
"""
248
256
249
257
estimator: AutoscalerEstimator
@@ -389,7 +397,7 @@ class Pool:
389
397
390
398
container_runtime: Runtime
391
399
"""
392
-
Customization of the container runtime is available for each pool. Note that `docker` has been deprecated since version 1.20 and will be removed by version 1.24.
400
+
Customization of the container runtime is available for each pool.
393
401
"""
394
402
395
403
autohealing: bool
@@ -399,7 +407,7 @@ class Pool:
399
407
400
408
tags: List[str]
401
409
"""
402
-
Tags associated with the pool.
410
+
Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags).
403
411
"""
404
412
405
413
kubelet_args: Dict[str, str]
@@ -414,7 +422,10 @@ class Pool:
414
422
415
423
root_volume_type: PoolVolumeType
416
424
"""
417
-
Defines the system volume disk type. Two different types of volume (`volume_type`) are provided: `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. `b_ssd` is a remote block storage which means your system is stored on a centralized and resilient cluster.
425
+
* `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. This type is not available for all node types
426
+
* `sbs-5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits
427
+
* `sbs-15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits
428
+
* `b_ssd` is the legacy remote block storage which means your system is stored on a centralized and resilient cluster. Consider using `sbs-5k` or `sbs-15k` instead.
418
429
"""
419
430
420
431
public_ip_disabled: bool
@@ -429,7 +440,7 @@ class Pool:
429
440
430
441
placement_group_id: Optional[str]
431
442
"""
432
-
Placement group ID in which all the nodes of the pool will be created.
443
+
Placement group ID in which all the nodes of the pool will be created, placement groups are limited to 20 instances.
433
444
"""
434
445
435
446
upgrade_policy: Optional[PoolUpgradePolicy]
@@ -504,7 +515,7 @@ class CreateClusterRequestAutoscalerConfig:
504
515
505
516
scale_down_delay_after_add: Optional[str]
506
517
"""
507
-
How long after scale up that scale down evaluation resumes.
518
+
How long after scale up the scale down evaluation resumes.
508
519
"""
509
520
510
521
ignore_daemonsets_utilization: Optional[bool]
@@ -600,12 +611,12 @@ class CreateClusterRequestPoolConfig:
600
611
601
612
container_runtime: Runtime
602
613
"""
603
-
Customization of the container runtime is available for each pool. Note that `docker` has been deprecated since version 1.20 and will be removed by version 1.24.
614
+
Customization of the container runtime is available for each pool.
604
615
"""
605
616
606
617
placement_group_id: Optional[str]
607
618
"""
608
-
Placement group ID in which all the nodes of the pool will be created.
619
+
Placement group ID in which all the nodes of the pool will be created, placement groups are limited to 20 instances.
609
620
"""
610
621
611
622
min_size: Optional[int]
@@ -625,7 +636,7 @@ class CreateClusterRequestPoolConfig:
625
636
626
637
tags: List[str]
627
638
"""
628
-
Tags associated with the pool.
639
+
Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags).
629
640
"""
630
641
631
642
kubelet_args: Dict[str, str]
@@ -640,7 +651,10 @@ class CreateClusterRequestPoolConfig:
640
651
641
652
root_volume_type: PoolVolumeType
642
653
"""
643
-
Defines the system volume disk type. Two different types of volume (`volume_type`) are provided: `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. `b_ssd` is a remote block storage which means your system is stored on a centralized and resilient cluster.
654
+
* `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. This type is not available for all node types
655
+
* `sbs-5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits
656
+
* `sbs-15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits
657
+
* `b_ssd` is the legacy remote block storage which means your system is stored on a centralized and resilient cluster. Consider using `sbs-5k` or `sbs-15k` instead.
644
658
"""
645
659
646
660
public_ip_disabled: bool
@@ -865,7 +879,7 @@ class Cluster:
865
879
866
880
auto_upgrade: Optional[ClusterAutoUpgrade]
867
881
"""
868
-
Auto upgrade configuration of the cluster.
882
+
Auto upgrade Kubernetes version of the cluster.
869
883
"""
870
884
871
885
admission_plugins: List[str]
@@ -1013,7 +1027,7 @@ class UpdateClusterRequestAutoscalerConfig:
1013
1027
1014
1028
scale_down_delay_after_add: Optional[str]
1015
1029
"""
1016
-
How long after scale up that scale down evaluation resumes.
1030
+
How long after scale up the scale down evaluation resumes.
1017
1031
"""
1018
1032
1019
1033
ignore_daemonsets_utilization: Optional[bool]
@@ -1135,7 +1149,7 @@ class AuthExternalNodeRequest:
1135
1149
classCreateClusterRequest:
1136
1150
type_: str
1137
1151
"""
1138
-
Type of the cluster (possible values are kapsule, multicloud, kapsule-dedicated-8, kapsule-dedicated-16).
1152
+
Type of the cluster. See [list available cluster types](#list-available-cluster-types-for-a-cluster) for a list of valid types.
1139
1153
"""
1140
1154
1141
1155
description: str
@@ -1257,7 +1271,7 @@ class CreatePoolRequest:
1257
1271
1258
1272
placement_group_id: Optional[str]
1259
1273
"""
1260
-
Placement group ID in which all the nodes of the pool will be created.
1274
+
Placement group ID in which all the nodes of the pool will be created, placement groups are limited to 20 instances.
1261
1275
"""
1262
1276
1263
1277
min_size: Optional[int]
@@ -1282,12 +1296,12 @@ class CreatePoolRequest:
1282
1296
1283
1297
container_runtime: Optional[Runtime]
1284
1298
"""
1285
-
Customization of the container runtime is available for each pool. Note that `docker` has been deprecated since version 1.20 and will be removed by version 1.24.
1299
+
Customization of the container runtime is available for each pool.
1286
1300
"""
1287
1301
1288
1302
tags: Optional[List[str]]
1289
1303
"""
1290
-
Tags associated with the pool.
1304
+
Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags).
1291
1305
"""
1292
1306
1293
1307
kubelet_args: Optional[Dict[str, str]]
@@ -1307,7 +1321,10 @@ class CreatePoolRequest:
1307
1321
1308
1322
root_volume_type: Optional[PoolVolumeType]
1309
1323
"""
1310
-
Defines the system volume disk type. Two different types of volume (`volume_type`) are provided: `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. `b_ssd` is a remote block storage which means your system is stored on a centralized and resilient cluster.
1324
+
* `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. This type is not available for all node types
1325
+
* `sbs-5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits
1326
+
* `sbs-15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits
1327
+
* `b_ssd` is the legacy remote block storage which means your system is stored on a centralized and resilient cluster. Consider using `sbs-5k` or `sbs-15k` instead.
0 commit comments