diff --git a/scaleway-async/scaleway_async/k8s/v1/api.py b/scaleway-async/scaleway_async/k8s/v1/api.py index ef7e135d9..b96a0abba 100644 --- a/scaleway-async/scaleway_async/k8s/v1/api.py +++ b/scaleway-async/scaleway_async/k8s/v1/api.py @@ -244,7 +244,7 @@ async def create_cluster( """ Create a new Cluster. Create a new Kubernetes cluster in a Scaleway region. - :param type_: Type of the cluster (possible values are kapsule, multicloud, kapsule-dedicated-8, kapsule-dedicated-16). + :param type_: Type of the cluster. See [list available cluster types](#list-available-cluster-types-for-a-cluster) for a list of valid types. :param description: Cluster description. :param version: Kubernetes version of the cluster. :param region: Region to target. If none is passed will use default region from the config. @@ -407,7 +407,7 @@ async def update_cluster( :param description: New description for the cluster. :param tags: New tags associated with the cluster. :param autoscaler_config: New autoscaler config for the cluster. - :param auto_upgrade: New auto upgrade configuration for the cluster. Note that all fields need to be set. + :param auto_upgrade: New auto upgrade configuration for the cluster. Note that all fields needs to be set. :param feature_gates: List of feature gates to enable. :param admission_plugins: List of admission plugins to enable. :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( ) -> Cluster: """ Delete a Cluster. - 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. + Delete a specific Kubernetes cluster and all its associated pools and nodes, and possibly its associated Load Balancers or Block Volumes. :param cluster_id: ID of the cluster to delete. :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. :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( ) -> Cluster: """ Change the Cluster type. - 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). + 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). :param cluster_id: ID of the cluster to migrate from one type to another. :param type_: Type of the cluster. Note that some migrations are not possible (please refer to product documentation). :param region: Region to target. If none is passed will use default region from the config. @@ -701,7 +701,7 @@ async def reset_cluster_admin_token( ) -> None: """ Reset the admin token of a Cluster. - 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. + 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. :param cluster_id: Cluster ID on which the admin token will be renewed. :param region: Region to target. If none is passed will use default region from the config. @@ -735,6 +735,7 @@ async def migrate_cluster_to_sbscsi( """ Migrate a cluster to SBS CSI. Enable the latest CSI compatible with Scaleway Block Storage (SBS) and migrate all existing PersistentVolumes/VolumeSnapshotContents to SBS. + Make sure to have the necessary Quota before running this command. :param cluster_id: Cluster ID for which the latest CSI compatible with Scaleway Block Storage will be enabled. :param region: Region to target. If none is passed will use default region from the config. :return: :class:`Cluster ` @@ -1087,17 +1088,20 @@ async def create_pool( :param autoscaling: Defines whether the autoscaling feature is enabled for the pool. :param size: Size (number of nodes) of the pool. :param name: Pool name. - :param placement_group_id: Placement group ID in which all the nodes of the pool will be created. + :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. :param min_size: Defines the minimum size of the pool. Note that this field is only used when autoscaling is enabled on the pool. :param autohealing: Defines whether the autohealing feature is enabled for the pool. :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. :param max_size: Defines the maximum size of the pool. Note that this field is only used when autoscaling is enabled on the pool. - :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. - :param tags: Tags associated with the pool. + :param container_runtime: Customization of the container runtime is available for each pool. + :param tags: Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags). :param kubelet_args: Kubelet arguments to be used by this pool. Note that this feature is experimental. :param upgrade_policy: Pool upgrade policy. :param zone: Zone in which the pool's nodes will be spawned. - :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. + :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 + * `sbs-5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits + * `sbs-15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits + * `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. :param root_volume_size: System volume disk size. :return: :class:`Pool ` @@ -1231,6 +1235,7 @@ async def upgrade_pool( """ Upgrade a Pool in a Cluster. Upgrade the Kubernetes version of a specific pool. Note that it only works if the targeted version matches the cluster's version. + This will drain and replace the nodes in that pool. :param pool_id: ID of the pool to upgrade. :param version: New Kubernetes version for the pool. :param region: Region to target. If none is passed will use default region from the config. @@ -1282,7 +1287,7 @@ async def update_pool( ) -> Pool: """ Update a Pool in a Cluster. - Update the attributes of a specific pool, such as its desired size, autoscaling settings, and tags. + 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. :param pool_id: ID of the pool to update. :param region: Region to target. If none is passed will use default region from the config. :param autoscaling: New value for the pool autoscaling enablement. @@ -1646,7 +1651,7 @@ async def replace_node( ) -> Node: """ Replace a Node in a Cluster. - 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. + 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. :param node_id: ID of the node to replace. :param region: Region to target. If none is passed will use default region from the config. :return: :class:`Node ` @@ -1682,7 +1687,7 @@ async def reboot_node( ) -> Node: """ Reboot a Node in a Cluster. - 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. + 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. :param node_id: ID of the node to reboot. :param region: Region to target. If none is passed will use default region from the config. :return: :class:`Node ` @@ -1719,7 +1724,7 @@ async def delete_node( ) -> Node: """ Delete a Node in a Cluster. - 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. + 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. :param node_id: ID of the node to replace. :param skip_drain: Skip draining node from its workload (Note: this parameter is currently inactive). :param replace: Add a new node after the deletion of this node. diff --git a/scaleway-async/scaleway_async/k8s/v1/types.py b/scaleway-async/scaleway_async/k8s/v1/types.py index 6aab864ce..1f5c8d6c2 100644 --- a/scaleway-async/scaleway_async/k8s/v1/types.py +++ b/scaleway-async/scaleway_async/k8s/v1/types.py @@ -100,6 +100,14 @@ def __str__(self) -> str: class ListNodesRequestOrderBy(str, Enum, metaclass=StrEnumMeta): CREATED_AT_ASC = "created_at_asc" CREATED_AT_DESC = "created_at_desc" + UPDATED_AT_ASC = "updated_at_asc" + UPDATED_AT_DESC = "updated_at_desc" + NAME_ASC = "name_asc" + NAME_DESC = "name_desc" + STATUS_ASC = "status_asc" + STATUS_DESC = "status_desc" + VERSION_ASC = "version_asc" + VERSION_DESC = "version_desc" def __str__(self) -> str: return str(self.value) @@ -243,7 +251,7 @@ class ClusterAutoscalerConfig: scale_down_delay_after_add: str """ - How long after scale up that scale down evaluation resumes. + How long after scale up the scale down evaluation resumes. """ estimator: AutoscalerEstimator @@ -389,7 +397,7 @@ class Pool: container_runtime: 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. + Customization of the container runtime is available for each pool. """ autohealing: bool @@ -399,7 +407,7 @@ class Pool: tags: List[str] """ - Tags associated with the pool. + Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags). """ kubelet_args: Dict[str, str] @@ -414,7 +422,10 @@ class Pool: root_volume_type: PoolVolumeType """ - 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. + * `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 +* `sbs-5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits +* `sbs-15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits +* `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. """ public_ip_disabled: bool @@ -429,7 +440,7 @@ class Pool: placement_group_id: Optional[str] """ - Placement group ID in which all the nodes of the pool will be created. + Placement group ID in which all the nodes of the pool will be created, placement groups are limited to 20 instances. """ upgrade_policy: Optional[PoolUpgradePolicy] @@ -504,7 +515,7 @@ class CreateClusterRequestAutoscalerConfig: scale_down_delay_after_add: Optional[str] """ - How long after scale up that scale down evaluation resumes. + How long after scale up the scale down evaluation resumes. """ ignore_daemonsets_utilization: Optional[bool] @@ -600,12 +611,12 @@ class CreateClusterRequestPoolConfig: container_runtime: 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. + Customization of the container runtime is available for each pool. """ placement_group_id: Optional[str] """ - Placement group ID in which all the nodes of the pool will be created. + Placement group ID in which all the nodes of the pool will be created, placement groups are limited to 20 instances. """ min_size: Optional[int] @@ -625,7 +636,7 @@ class CreateClusterRequestPoolConfig: tags: List[str] """ - Tags associated with the pool. + Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags). """ kubelet_args: Dict[str, str] @@ -640,7 +651,10 @@ class CreateClusterRequestPoolConfig: root_volume_type: PoolVolumeType """ - 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. + * `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 +* `sbs-5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits +* `sbs-15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits +* `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. """ public_ip_disabled: bool @@ -865,7 +879,7 @@ class Cluster: auto_upgrade: Optional[ClusterAutoUpgrade] """ - Auto upgrade configuration of the cluster. + Auto upgrade Kubernetes version of the cluster. """ admission_plugins: List[str] @@ -1013,7 +1027,7 @@ class UpdateClusterRequestAutoscalerConfig: scale_down_delay_after_add: Optional[str] """ - How long after scale up that scale down evaluation resumes. + How long after scale up the scale down evaluation resumes. """ ignore_daemonsets_utilization: Optional[bool] @@ -1135,7 +1149,7 @@ class AuthExternalNodeRequest: class CreateClusterRequest: type_: str """ - Type of the cluster (possible values are kapsule, multicloud, kapsule-dedicated-8, kapsule-dedicated-16). + Type of the cluster. See [list available cluster types](#list-available-cluster-types-for-a-cluster) for a list of valid types. """ description: str @@ -1257,7 +1271,7 @@ class CreatePoolRequest: placement_group_id: Optional[str] """ - Placement group ID in which all the nodes of the pool will be created. + Placement group ID in which all the nodes of the pool will be created, placement groups are limited to 20 instances. """ min_size: Optional[int] @@ -1282,12 +1296,12 @@ class CreatePoolRequest: container_runtime: Optional[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. + Customization of the container runtime is available for each pool. """ tags: Optional[List[str]] """ - Tags associated with the pool. + Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags). """ kubelet_args: Optional[Dict[str, str]] @@ -1307,7 +1321,10 @@ class CreatePoolRequest: root_volume_type: Optional[PoolVolumeType] """ - 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. + * `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 +* `sbs-5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits +* `sbs-15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits +* `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. """ root_volume_size: Optional[int] @@ -1957,7 +1974,7 @@ class UpdateClusterRequest: auto_upgrade: Optional[UpdateClusterRequestAutoUpgrade] """ - New auto upgrade configuration for the cluster. Note that all fields need to be set. + New auto upgrade configuration for the cluster. Note that all fields needs to be set. """ feature_gates: Optional[List[str]] diff --git a/scaleway/scaleway/k8s/v1/api.py b/scaleway/scaleway/k8s/v1/api.py index b6dc69b9c..b944b6a3a 100644 --- a/scaleway/scaleway/k8s/v1/api.py +++ b/scaleway/scaleway/k8s/v1/api.py @@ -244,7 +244,7 @@ def create_cluster( """ Create a new Cluster. Create a new Kubernetes cluster in a Scaleway region. - :param type_: Type of the cluster (possible values are kapsule, multicloud, kapsule-dedicated-8, kapsule-dedicated-16). + :param type_: Type of the cluster. See [list available cluster types](#list-available-cluster-types-for-a-cluster) for a list of valid types. :param description: Cluster description. :param version: Kubernetes version of the cluster. :param region: Region to target. If none is passed will use default region from the config. @@ -407,7 +407,7 @@ def update_cluster( :param description: New description for the cluster. :param tags: New tags associated with the cluster. :param autoscaler_config: New autoscaler config for the cluster. - :param auto_upgrade: New auto upgrade configuration for the cluster. Note that all fields need to be set. + :param auto_upgrade: New auto upgrade configuration for the cluster. Note that all fields needs to be set. :param feature_gates: List of feature gates to enable. :param admission_plugins: List of admission plugins to enable. :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 @@ def delete_cluster( ) -> Cluster: """ Delete a Cluster. - 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. + Delete a specific Kubernetes cluster and all its associated pools and nodes, and possibly its associated Load Balancers or Block Volumes. :param cluster_id: ID of the cluster to delete. :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. :param region: Region to target. If none is passed will use default region from the config. @@ -549,7 +549,7 @@ def set_cluster_type( ) -> Cluster: """ Change the Cluster type. - 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). + 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). :param cluster_id: ID of the cluster to migrate from one type to another. :param type_: Type of the cluster. Note that some migrations are not possible (please refer to product documentation). :param region: Region to target. If none is passed will use default region from the config. @@ -701,7 +701,7 @@ def reset_cluster_admin_token( ) -> None: """ Reset the admin token of a Cluster. - 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. + 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. :param cluster_id: Cluster ID on which the admin token will be renewed. :param region: Region to target. If none is passed will use default region from the config. @@ -735,6 +735,7 @@ def migrate_cluster_to_sbscsi( """ Migrate a cluster to SBS CSI. Enable the latest CSI compatible with Scaleway Block Storage (SBS) and migrate all existing PersistentVolumes/VolumeSnapshotContents to SBS. + Make sure to have the necessary Quota before running this command. :param cluster_id: Cluster ID for which the latest CSI compatible with Scaleway Block Storage will be enabled. :param region: Region to target. If none is passed will use default region from the config. :return: :class:`Cluster ` @@ -1087,17 +1088,20 @@ def create_pool( :param autoscaling: Defines whether the autoscaling feature is enabled for the pool. :param size: Size (number of nodes) of the pool. :param name: Pool name. - :param placement_group_id: Placement group ID in which all the nodes of the pool will be created. + :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. :param min_size: Defines the minimum size of the pool. Note that this field is only used when autoscaling is enabled on the pool. :param autohealing: Defines whether the autohealing feature is enabled for the pool. :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. :param max_size: Defines the maximum size of the pool. Note that this field is only used when autoscaling is enabled on the pool. - :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. - :param tags: Tags associated with the pool. + :param container_runtime: Customization of the container runtime is available for each pool. + :param tags: Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags). :param kubelet_args: Kubelet arguments to be used by this pool. Note that this feature is experimental. :param upgrade_policy: Pool upgrade policy. :param zone: Zone in which the pool's nodes will be spawned. - :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. + :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 + * `sbs-5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits + * `sbs-15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits + * `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. :param root_volume_size: System volume disk size. :return: :class:`Pool ` @@ -1231,6 +1235,7 @@ def upgrade_pool( """ Upgrade a Pool in a Cluster. Upgrade the Kubernetes version of a specific pool. Note that it only works if the targeted version matches the cluster's version. + This will drain and replace the nodes in that pool. :param pool_id: ID of the pool to upgrade. :param version: New Kubernetes version for the pool. :param region: Region to target. If none is passed will use default region from the config. @@ -1282,7 +1287,7 @@ def update_pool( ) -> Pool: """ Update a Pool in a Cluster. - Update the attributes of a specific pool, such as its desired size, autoscaling settings, and tags. + 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. :param pool_id: ID of the pool to update. :param region: Region to target. If none is passed will use default region from the config. :param autoscaling: New value for the pool autoscaling enablement. @@ -1646,7 +1651,7 @@ def replace_node( ) -> Node: """ Replace a Node in a Cluster. - 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. + 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. :param node_id: ID of the node to replace. :param region: Region to target. If none is passed will use default region from the config. :return: :class:`Node ` @@ -1682,7 +1687,7 @@ def reboot_node( ) -> Node: """ Reboot a Node in a Cluster. - 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. + 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. :param node_id: ID of the node to reboot. :param region: Region to target. If none is passed will use default region from the config. :return: :class:`Node ` @@ -1719,7 +1724,7 @@ def delete_node( ) -> Node: """ Delete a Node in a Cluster. - 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. + 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. :param node_id: ID of the node to replace. :param skip_drain: Skip draining node from its workload (Note: this parameter is currently inactive). :param replace: Add a new node after the deletion of this node. diff --git a/scaleway/scaleway/k8s/v1/types.py b/scaleway/scaleway/k8s/v1/types.py index 6aab864ce..1f5c8d6c2 100644 --- a/scaleway/scaleway/k8s/v1/types.py +++ b/scaleway/scaleway/k8s/v1/types.py @@ -100,6 +100,14 @@ def __str__(self) -> str: class ListNodesRequestOrderBy(str, Enum, metaclass=StrEnumMeta): CREATED_AT_ASC = "created_at_asc" CREATED_AT_DESC = "created_at_desc" + UPDATED_AT_ASC = "updated_at_asc" + UPDATED_AT_DESC = "updated_at_desc" + NAME_ASC = "name_asc" + NAME_DESC = "name_desc" + STATUS_ASC = "status_asc" + STATUS_DESC = "status_desc" + VERSION_ASC = "version_asc" + VERSION_DESC = "version_desc" def __str__(self) -> str: return str(self.value) @@ -243,7 +251,7 @@ class ClusterAutoscalerConfig: scale_down_delay_after_add: str """ - How long after scale up that scale down evaluation resumes. + How long after scale up the scale down evaluation resumes. """ estimator: AutoscalerEstimator @@ -389,7 +397,7 @@ class Pool: container_runtime: 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. + Customization of the container runtime is available for each pool. """ autohealing: bool @@ -399,7 +407,7 @@ class Pool: tags: List[str] """ - Tags associated with the pool. + Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags). """ kubelet_args: Dict[str, str] @@ -414,7 +422,10 @@ class Pool: root_volume_type: PoolVolumeType """ - 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. + * `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 +* `sbs-5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits +* `sbs-15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits +* `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. """ public_ip_disabled: bool @@ -429,7 +440,7 @@ class Pool: placement_group_id: Optional[str] """ - Placement group ID in which all the nodes of the pool will be created. + Placement group ID in which all the nodes of the pool will be created, placement groups are limited to 20 instances. """ upgrade_policy: Optional[PoolUpgradePolicy] @@ -504,7 +515,7 @@ class CreateClusterRequestAutoscalerConfig: scale_down_delay_after_add: Optional[str] """ - How long after scale up that scale down evaluation resumes. + How long after scale up the scale down evaluation resumes. """ ignore_daemonsets_utilization: Optional[bool] @@ -600,12 +611,12 @@ class CreateClusterRequestPoolConfig: container_runtime: 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. + Customization of the container runtime is available for each pool. """ placement_group_id: Optional[str] """ - Placement group ID in which all the nodes of the pool will be created. + Placement group ID in which all the nodes of the pool will be created, placement groups are limited to 20 instances. """ min_size: Optional[int] @@ -625,7 +636,7 @@ class CreateClusterRequestPoolConfig: tags: List[str] """ - Tags associated with the pool. + Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags). """ kubelet_args: Dict[str, str] @@ -640,7 +651,10 @@ class CreateClusterRequestPoolConfig: root_volume_type: PoolVolumeType """ - 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. + * `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 +* `sbs-5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits +* `sbs-15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits +* `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. """ public_ip_disabled: bool @@ -865,7 +879,7 @@ class Cluster: auto_upgrade: Optional[ClusterAutoUpgrade] """ - Auto upgrade configuration of the cluster. + Auto upgrade Kubernetes version of the cluster. """ admission_plugins: List[str] @@ -1013,7 +1027,7 @@ class UpdateClusterRequestAutoscalerConfig: scale_down_delay_after_add: Optional[str] """ - How long after scale up that scale down evaluation resumes. + How long after scale up the scale down evaluation resumes. """ ignore_daemonsets_utilization: Optional[bool] @@ -1135,7 +1149,7 @@ class AuthExternalNodeRequest: class CreateClusterRequest: type_: str """ - Type of the cluster (possible values are kapsule, multicloud, kapsule-dedicated-8, kapsule-dedicated-16). + Type of the cluster. See [list available cluster types](#list-available-cluster-types-for-a-cluster) for a list of valid types. """ description: str @@ -1257,7 +1271,7 @@ class CreatePoolRequest: placement_group_id: Optional[str] """ - Placement group ID in which all the nodes of the pool will be created. + Placement group ID in which all the nodes of the pool will be created, placement groups are limited to 20 instances. """ min_size: Optional[int] @@ -1282,12 +1296,12 @@ class CreatePoolRequest: container_runtime: Optional[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. + Customization of the container runtime is available for each pool. """ tags: Optional[List[str]] """ - Tags associated with the pool. + Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags). """ kubelet_args: Optional[Dict[str, str]] @@ -1307,7 +1321,10 @@ class CreatePoolRequest: root_volume_type: Optional[PoolVolumeType] """ - 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. + * `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 +* `sbs-5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits +* `sbs-15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits +* `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. """ root_volume_size: Optional[int] @@ -1957,7 +1974,7 @@ class UpdateClusterRequest: auto_upgrade: Optional[UpdateClusterRequestAutoUpgrade] """ - New auto upgrade configuration for the cluster. Note that all fields need to be set. + New auto upgrade configuration for the cluster. Note that all fields needs to be set. """ feature_gates: Optional[List[str]]