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
// ScaleDownDisabled: disable the cluster autoscaler.
765
+
// ScaleDownDisabled: forbid cluster autoscaler to scale down the cluster, defaults to false.
773
766
ScaleDownDisabledbool`json:"scale_down_disabled"`
774
767
775
768
// ScaleDownDelayAfterAdd: how long after scale up the scale down evaluation resumes.
@@ -779,26 +772,26 @@ type ClusterAutoscalerConfig struct {
779
772
// Default value: unknown_estimator
780
773
EstimatorAutoscalerEstimator`json:"estimator"`
781
774
782
-
// Expander: type of node group expander to be used in scale up.
775
+
// Expander: kubernetes autoscaler strategy to fit pods into nodes, see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders for details.
783
776
// Default value: unknown_expander
784
777
ExpanderAutoscalerExpander`json:"expander"`
785
778
786
-
// IgnoreDaemonsetsUtilization: ignore DaemonSet pods when calculating resource utilization for scaling down.
779
+
// IgnoreDaemonsetsUtilization: ignore DaemonSet pods when calculating resource utilization for scaling down, defaults to false.
// ExpendablePodsPriorityCutoff: pods with priority below cutoff will be expendable. They can be killed without any consideration during scale down and they won't cause scale up. Pods with null priority (PodPriority disabled) are non expendable.
// ScaleDownUtilizationThreshold: node utilization level, defined as a sum of requested resources divided by capacity, below which a node can be considered for scale down.
791
+
// ScaleDownUtilizationThreshold: node utilization level, defined as a sum of requested resources divided by allocatable capacity, below which a node can be considered for scale down.
// MaxGracefulTerminationSec: maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node.
794
+
// MaxGracefulTerminationSec: maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node, defaults to 600 (10 minutes).
@@ -826,88 +819,11 @@ type ClusterOpenIDConnectConfig struct {
826
819
RequiredClaim []string`json:"required_claim"`
827
820
}
828
821
829
-
// Pool: pool.
830
-
typePoolstruct {
831
-
// ID: pool ID.
832
-
IDstring`json:"id"`
833
-
834
-
// ClusterID: cluster ID of the pool.
835
-
ClusterIDstring`json:"cluster_id"`
836
-
837
-
// CreatedAt: date on which the pool was created.
838
-
CreatedAt*time.Time`json:"created_at"`
839
-
840
-
// UpdatedAt: date on which the pool was last updated.
841
-
UpdatedAt*time.Time`json:"updated_at"`
842
-
843
-
// Name: pool name.
844
-
Namestring`json:"name"`
845
-
846
-
// Status: pool status.
847
-
// Default value: unknown
848
-
StatusPoolStatus`json:"status"`
849
-
850
-
// Version: pool version.
851
-
Versionstring`json:"version"`
852
-
853
-
// NodeType: node type is the type of Scaleway Instance wanted for the pool. Nodes with insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST). 'external' is a special node type used to provision instances from other cloud providers in a Kosmos Cluster.
854
-
NodeTypestring`json:"node_type"`
855
-
856
-
// Autoscaling: defines whether the autoscaling feature is enabled for the pool.
857
-
Autoscalingbool`json:"autoscaling"`
858
-
859
-
// Size: size (number of nodes) of the pool.
860
-
Sizeuint32`json:"size"`
861
-
862
-
// MinSize: defines the minimum size of the pool. Note that this field is only used when autoscaling is enabled on the pool.
863
-
MinSizeuint32`json:"min_size"`
864
-
865
-
// MaxSize: defines the maximum size of the pool. Note that this field is only used when autoscaling is enabled on the pool.
866
-
MaxSizeuint32`json:"max_size"`
867
-
868
-
// ContainerRuntime: customization of the container runtime is available for each pool.
869
-
// Default value: unknown_runtime
870
-
ContainerRuntimeRuntime`json:"container_runtime"`
871
-
872
-
// Autohealing: defines whether the autohealing feature is enabled for the pool.
873
-
Autohealingbool`json:"autohealing"`
874
-
875
-
// Tags: tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/kubernetes/api-cli/managing-tags).
876
-
Tags []string`json:"tags"`
877
-
878
-
// PlacementGroupID: placement group ID in which all the nodes of the pool will be created, placement groups are limited to 20 instances.
// Zone: zone in which the pool's nodes will be spawned.
888
-
Zone scw.Zone`json:"zone"`
889
-
890
-
// RootVolumeType: * `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
891
-
// * `sbs-5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits
892
-
// * `sbs-15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits
893
-
// * `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.
// PublicIPDisabled: 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.
901
-
PublicIPDisabledbool`json:"public_ip_disabled"`
902
-
903
-
// Deprecated: NewImagesEnabled: defines whether the pool is migrated to new images.
// SecurityGroupID: security group ID in which all the nodes of the pool will be created. If unset, the pool will use default Kapsule security group in current zone.
907
-
SecurityGroupIDstring`json:"security_group_id"`
822
+
// PoolUpgradePolicy: pool upgrade policy.
823
+
typePoolUpgradePolicystruct {
824
+
MaxUnavailableuint32`json:"max_unavailable"`
908
825
909
-
// Region: cluster region of the pool.
910
-
Region scw.Region`json:"region"`
826
+
MaxSurgeuint32`json:"max_surge"`
911
827
}
912
828
913
829
// ACLRuleRequest: acl rule request.
@@ -952,7 +868,7 @@ type CreateClusterRequestAutoUpgrade struct {
// ScaleDownDelayAfterAdd: how long after scale up the scale down evaluation resumes.
@@ -962,26 +878,26 @@ type CreateClusterRequestAutoscalerConfig struct {
962
878
// Default value: unknown_estimator
963
879
EstimatorAutoscalerEstimator`json:"estimator"`
964
880
965
-
// Expander: type of node group expander to be used in scale up.
881
+
// Expander: kubernetes autoscaler strategy to fit pods into nodes, see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders for details.
966
882
// Default value: unknown_expander
967
883
ExpanderAutoscalerExpander`json:"expander"`
968
884
969
-
// IgnoreDaemonsetsUtilization: ignore DaemonSet pods when calculating resource utilization for scaling down.
885
+
// IgnoreDaemonsetsUtilization: ignore DaemonSet pods when calculating resource utilization for scaling down, defaults to false.
// ExpendablePodsPriorityCutoff: pods with priority below cutoff will be expendable. They can be killed without any consideration during scale down and they won't cause scale up. Pods with null priority (PodPriority disabled) are non expendable.
// ScaleDownUtilizationThreshold: node utilization level, defined as a sum of requested resources divided by capacity, below which a node can be considered for scale down.
897
+
// ScaleDownUtilizationThreshold: node utilization level, defined as a sum of requested resources divided by allocatable capacity, below which a node can be considered for scale down.
// MaxGracefulTerminationSec: maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node.
900
+
// MaxGracefulTerminationSec: maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node, defaults to 600 (10 minutes).
// UpdatedAt: date on which the cluster was last updated.
1205
1121
UpdatedAt*time.Time`json:"updated_at"`
1206
1122
1207
-
// AutoscalerConfig: autoscaler config for the cluster.
1123
+
// AutoscalerConfig: autoscaler configuration for the cluster, see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md for details.
// AutoUpgrade: auto upgrade Kubernetes version of the cluster.
@@ -1293,6 +1209,90 @@ type Node struct {
1293
1209
UpdatedAt*time.Time`json:"updated_at"`
1294
1210
}
1295
1211
1212
+
// Pool: pool.
1213
+
typePoolstruct {
1214
+
// ID: pool ID.
1215
+
IDstring`json:"id"`
1216
+
1217
+
// ClusterID: cluster ID of the pool.
1218
+
ClusterIDstring`json:"cluster_id"`
1219
+
1220
+
// CreatedAt: date on which the pool was created.
1221
+
CreatedAt*time.Time`json:"created_at"`
1222
+
1223
+
// UpdatedAt: date on which the pool was last updated.
1224
+
UpdatedAt*time.Time`json:"updated_at"`
1225
+
1226
+
// Name: pool name.
1227
+
Namestring`json:"name"`
1228
+
1229
+
// Status: pool status.
1230
+
// Default value: unknown
1231
+
StatusPoolStatus`json:"status"`
1232
+
1233
+
// Version: pool version.
1234
+
Versionstring`json:"version"`
1235
+
1236
+
// NodeType: node type is the type of Scaleway Instance wanted for the pool. Nodes with insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST). 'external' is a special node type used to provision instances from other cloud providers in a Kosmos Cluster.
1237
+
NodeTypestring`json:"node_type"`
1238
+
1239
+
// Autoscaling: defines whether the autoscaling feature is enabled for the pool.
1240
+
Autoscalingbool`json:"autoscaling"`
1241
+
1242
+
// Size: size (number of nodes) of the pool.
1243
+
Sizeuint32`json:"size"`
1244
+
1245
+
// MinSize: defines the minimum size of the pool. Note that this field is only used when autoscaling is enabled on the pool.
1246
+
MinSizeuint32`json:"min_size"`
1247
+
1248
+
// MaxSize: defines the maximum size of the pool. Note that this field is only used when autoscaling is enabled on the pool.
1249
+
MaxSizeuint32`json:"max_size"`
1250
+
1251
+
// ContainerRuntime: customization of the container runtime is available for each pool.
1252
+
// Default value: unknown_runtime
1253
+
ContainerRuntimeRuntime`json:"container_runtime"`
1254
+
1255
+
// Autohealing: defines whether the autohealing feature is enabled for the pool.
1256
+
Autohealingbool`json:"autohealing"`
1257
+
1258
+
// Tags: tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/kubernetes/api-cli/managing-tags).
1259
+
Tags []string`json:"tags"`
1260
+
1261
+
// PlacementGroupID: placement group ID in which all the nodes of the pool will be created, placement groups are limited to 20 instances.
// Zone: zone in which the pool's nodes will be spawned.
1271
+
Zone scw.Zone`json:"zone"`
1272
+
1273
+
// RootVolumeType: * `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
1274
+
// * `sbs-5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits
1275
+
// * `sbs-15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits
1276
+
// * `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.
// PublicIPDisabled: 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.
1284
+
PublicIPDisabledbool`json:"public_ip_disabled"`
1285
+
1286
+
// Deprecated: NewImagesEnabled: defines whether the pool is migrated to new images.
// SecurityGroupID: security group ID in which all the nodes of the pool will be created. If unset, the pool will use default Kapsule security group in current zone.
// ScaleDownDelayAfterAdd: how long after scale up the scale down evaluation resumes.
@@ -1323,26 +1323,26 @@ type UpdateClusterRequestAutoscalerConfig struct {
1323
1323
// Default value: unknown_estimator
1324
1324
EstimatorAutoscalerEstimator`json:"estimator"`
1325
1325
1326
-
// Expander: type of node group expander to be used in scale up.
1326
+
// Expander: kubernetes autoscaler strategy to fit pods into nodes, see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders for details.
1327
1327
// Default value: unknown_expander
1328
1328
ExpanderAutoscalerExpander`json:"expander"`
1329
1329
1330
-
// IgnoreDaemonsetsUtilization: ignore DaemonSet pods when calculating resource utilization for scaling down.
1330
+
// IgnoreDaemonsetsUtilization: ignore DaemonSet pods when calculating resource utilization for scaling down, defaults to false.
// ExpendablePodsPriorityCutoff: pods with priority below cutoff will be expendable. They can be killed without any consideration during scale down and they won't cause scale up. Pods with null priority (PodPriority disabled) are non expendable.
// ScaleDownUtilizationThreshold: node utilization level, defined as a sum of requested resources divided by capacity, below which a node can be considered for scale down.
1342
+
// ScaleDownUtilizationThreshold: node utilization level, defined as a sum of requested resources divided by allocatable capacity, below which a node can be considered for scale down.
// MaxGracefulTerminationSec: maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node.
1345
+
// MaxGracefulTerminationSec: maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node, defaults to 600 (10 minutes).
0 commit comments