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.
Copy file name to clipboardExpand all lines: scaleway-async/scaleway_async/k8s/v1/types.py
+27-18Lines changed: 27 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -243,7 +243,7 @@ class ClusterAutoscalerConfig:
243
243
244
244
scale_down_delay_after_add: str
245
245
"""
246
-
How long after scale up that scale down evaluation resumes.
246
+
How long after scale up the scale down evaluation resumes.
247
247
"""
248
248
249
249
estimator: AutoscalerEstimator
@@ -389,7 +389,7 @@ class Pool:
389
389
390
390
container_runtime: Runtime
391
391
"""
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.
392
+
Customization of the container runtime is available for each pool.
393
393
"""
394
394
395
395
autohealing: bool
@@ -399,7 +399,7 @@ class Pool:
399
399
400
400
tags: List[str]
401
401
"""
402
-
Tags associated with the pool.
402
+
Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags).
403
403
"""
404
404
405
405
kubelet_args: Dict[str, str]
@@ -414,7 +414,10 @@ class Pool:
414
414
415
415
root_volume_type: PoolVolumeType
416
416
"""
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.
417
+
* `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
418
+
* `sbs-5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits
419
+
* `sbs-15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits
420
+
* `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
421
"""
419
422
420
423
public_ip_disabled: bool
@@ -429,7 +432,7 @@ class Pool:
429
432
430
433
placement_group_id: Optional[str]
431
434
"""
432
-
Placement group ID in which all the nodes of the pool will be created.
435
+
Placement group ID in which all the nodes of the pool will be created, placement groups are limited to 20 instances.
433
436
"""
434
437
435
438
upgrade_policy: Optional[PoolUpgradePolicy]
@@ -504,7 +507,7 @@ class CreateClusterRequestAutoscalerConfig:
504
507
505
508
scale_down_delay_after_add: Optional[str]
506
509
"""
507
-
How long after scale up that scale down evaluation resumes.
510
+
How long after scale up the scale down evaluation resumes.
508
511
"""
509
512
510
513
ignore_daemonsets_utilization: Optional[bool]
@@ -600,12 +603,12 @@ class CreateClusterRequestPoolConfig:
600
603
601
604
container_runtime: Runtime
602
605
"""
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.
606
+
Customization of the container runtime is available for each pool.
604
607
"""
605
608
606
609
placement_group_id: Optional[str]
607
610
"""
608
-
Placement group ID in which all the nodes of the pool will be created.
611
+
Placement group ID in which all the nodes of the pool will be created, placement groups are limited to 20 instances.
609
612
"""
610
613
611
614
min_size: Optional[int]
@@ -625,7 +628,7 @@ class CreateClusterRequestPoolConfig:
625
628
626
629
tags: List[str]
627
630
"""
628
-
Tags associated with the pool.
631
+
Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags).
629
632
"""
630
633
631
634
kubelet_args: Dict[str, str]
@@ -640,7 +643,10 @@ class CreateClusterRequestPoolConfig:
640
643
641
644
root_volume_type: PoolVolumeType
642
645
"""
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.
646
+
* `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
647
+
* `sbs-5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits
648
+
* `sbs-15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits
649
+
* `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
650
"""
645
651
646
652
public_ip_disabled: bool
@@ -865,7 +871,7 @@ class Cluster:
865
871
866
872
auto_upgrade: Optional[ClusterAutoUpgrade]
867
873
"""
868
-
Auto upgrade configuration of the cluster.
874
+
Auto upgrade Kubernetes version of the cluster.
869
875
"""
870
876
871
877
admission_plugins: List[str]
@@ -1013,7 +1019,7 @@ class UpdateClusterRequestAutoscalerConfig:
1013
1019
1014
1020
scale_down_delay_after_add: Optional[str]
1015
1021
"""
1016
-
How long after scale up that scale down evaluation resumes.
1022
+
How long after scale up the scale down evaluation resumes.
1017
1023
"""
1018
1024
1019
1025
ignore_daemonsets_utilization: Optional[bool]
@@ -1135,7 +1141,7 @@ class AuthExternalNodeRequest:
1135
1141
classCreateClusterRequest:
1136
1142
type_: str
1137
1143
"""
1138
-
Type of the cluster (possible values are kapsule, multicloud, kapsule-dedicated-8, kapsule-dedicated-16).
1144
+
Type of the cluster. See [list available cluster types](#list-available-cluster-types-for-a-cluster) for a list of valid types.
1139
1145
"""
1140
1146
1141
1147
description: str
@@ -1257,7 +1263,7 @@ class CreatePoolRequest:
1257
1263
1258
1264
placement_group_id: Optional[str]
1259
1265
"""
1260
-
Placement group ID in which all the nodes of the pool will be created.
1266
+
Placement group ID in which all the nodes of the pool will be created, placement groups are limited to 20 instances.
1261
1267
"""
1262
1268
1263
1269
min_size: Optional[int]
@@ -1282,12 +1288,12 @@ class CreatePoolRequest:
1282
1288
1283
1289
container_runtime: Optional[Runtime]
1284
1290
"""
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.
1291
+
Customization of the container runtime is available for each pool.
1286
1292
"""
1287
1293
1288
1294
tags: Optional[List[str]]
1289
1295
"""
1290
-
Tags associated with the pool.
1296
+
Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags).
1291
1297
"""
1292
1298
1293
1299
kubelet_args: Optional[Dict[str, str]]
@@ -1307,7 +1313,10 @@ class CreatePoolRequest:
1307
1313
1308
1314
root_volume_type: Optional[PoolVolumeType]
1309
1315
"""
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.
1316
+
* `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
1317
+
* `sbs-5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits
1318
+
* `sbs-15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits
1319
+
* `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