pulumi-kubernetes 4.23.0a1746129859__py3-none-any.whl → 4.23.0a1746138483__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-kubernetes might be problematic. Click here for more details.
- pulumi_kubernetes/__init__.py +36 -2
- pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py +30 -30
- pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py +20 -20
- pulumi_kubernetes/apps/v1/ReplicaSetList.py +4 -4
- pulumi_kubernetes/apps/v1/_inputs.py +109 -56
- pulumi_kubernetes/apps/v1/outputs.py +129 -56
- pulumi_kubernetes/autoscaling/v2/_inputs.py +92 -12
- pulumi_kubernetes/autoscaling/v2/outputs.py +66 -10
- pulumi_kubernetes/batch/v1/_inputs.py +12 -42
- pulumi_kubernetes/batch/v1/outputs.py +8 -32
- pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundle.py +2 -0
- pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundlePatch.py +2 -0
- pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundle.py +229 -0
- pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundleList.py +219 -0
- pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundlePatch.py +240 -0
- pulumi_kubernetes/certificates/v1beta1/__init__.py +3 -0
- pulumi_kubernetes/certificates/v1beta1/_inputs.py +292 -0
- pulumi_kubernetes/certificates/v1beta1/outputs.py +241 -0
- pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +1 -1
- pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +1 -1
- pulumi_kubernetes/coordination/v1alpha2/LeaseCandidate.py +1 -1
- pulumi_kubernetes/coordination/v1alpha2/LeaseCandidatePatch.py +1 -1
- pulumi_kubernetes/coordination/v1alpha2/_inputs.py +6 -6
- pulumi_kubernetes/coordination/v1alpha2/outputs.py +4 -4
- pulumi_kubernetes/coordination/v1beta1/LeaseCandidate.py +220 -0
- pulumi_kubernetes/coordination/v1beta1/LeaseCandidateList.py +219 -0
- pulumi_kubernetes/coordination/v1beta1/LeaseCandidatePatch.py +232 -0
- pulumi_kubernetes/coordination/v1beta1/__init__.py +3 -0
- pulumi_kubernetes/coordination/v1beta1/_inputs.py +371 -0
- pulumi_kubernetes/coordination/v1beta1/outputs.py +292 -0
- pulumi_kubernetes/core/v1/Endpoints.py +8 -0
- pulumi_kubernetes/core/v1/EndpointsList.py +2 -2
- pulumi_kubernetes/core/v1/EndpointsPatch.py +8 -0
- pulumi_kubernetes/core/v1/_inputs.py +240 -66
- pulumi_kubernetes/core/v1/outputs.py +251 -51
- pulumi_kubernetes/discovery/v1/EndpointSlice.py +10 -10
- pulumi_kubernetes/discovery/v1/EndpointSlicePatch.py +10 -10
- pulumi_kubernetes/discovery/v1/_inputs.py +159 -44
- pulumi_kubernetes/discovery/v1/outputs.py +107 -32
- pulumi_kubernetes/networking/v1/IPAddress.py +220 -0
- pulumi_kubernetes/networking/v1/IPAddressList.py +219 -0
- pulumi_kubernetes/networking/v1/IPAddressPatch.py +232 -0
- pulumi_kubernetes/networking/v1/ServiceCIDR.py +230 -0
- pulumi_kubernetes/networking/v1/ServiceCIDRList.py +219 -0
- pulumi_kubernetes/networking/v1/ServiceCIDRPatch.py +242 -0
- pulumi_kubernetes/networking/v1/__init__.py +6 -0
- pulumi_kubernetes/networking/v1/_inputs.py +599 -0
- pulumi_kubernetes/networking/v1/outputs.py +461 -0
- pulumi_kubernetes/networking/v1alpha1/IPAddress.py +1 -1
- pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py +1 -1
- pulumi_kubernetes/networking/v1alpha1/ServiceCIDR.py +1 -1
- pulumi_kubernetes/networking/v1alpha1/ServiceCIDRPatch.py +1 -1
- pulumi_kubernetes/networking/v1beta1/IPAddress.py +1 -1
- pulumi_kubernetes/networking/v1beta1/IPAddressPatch.py +1 -1
- pulumi_kubernetes/networking/v1beta1/ServiceCIDR.py +1 -1
- pulumi_kubernetes/networking/v1beta1/ServiceCIDRPatch.py +1 -1
- pulumi_kubernetes/policy/v1/_inputs.py +0 -12
- pulumi_kubernetes/policy/v1/outputs.py +0 -8
- pulumi_kubernetes/pulumi-plugin.json +1 -1
- pulumi_kubernetes/resource/__init__.py +3 -0
- pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +1 -1
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +1 -1
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +1 -1
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +1 -1
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +1 -1
- pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/DeviceTaintRule.py +227 -0
- pulumi_kubernetes/resource/v1alpha3/DeviceTaintRuleList.py +219 -0
- pulumi_kubernetes/resource/v1alpha3/DeviceTaintRulePatch.py +238 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/__init__.py +3 -0
- pulumi_kubernetes/resource/v1alpha3/_inputs.py +2559 -213
- pulumi_kubernetes/resource/v1alpha3/outputs.py +2037 -256
- pulumi_kubernetes/resource/v1beta1/DeviceClass.py +1 -1
- pulumi_kubernetes/resource/v1beta1/DeviceClassPatch.py +1 -1
- pulumi_kubernetes/resource/v1beta1/ResourceClaim.py +1 -1
- pulumi_kubernetes/resource/v1beta1/ResourceClaimPatch.py +1 -1
- pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplate.py +1 -1
- pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplatePatch.py +1 -1
- pulumi_kubernetes/resource/v1beta1/ResourceSlice.py +1 -1
- pulumi_kubernetes/resource/v1beta1/ResourceSlicePatch.py +1 -1
- pulumi_kubernetes/resource/v1beta1/_inputs.py +2044 -176
- pulumi_kubernetes/resource/v1beta1/outputs.py +1536 -134
- pulumi_kubernetes/resource/v1beta2/DeviceClass.py +241 -0
- pulumi_kubernetes/resource/v1beta2/DeviceClassList.py +219 -0
- pulumi_kubernetes/resource/v1beta2/DeviceClassPatch.py +252 -0
- pulumi_kubernetes/resource/v1beta2/ResourceClaim.py +236 -0
- pulumi_kubernetes/resource/v1beta2/ResourceClaimList.py +220 -0
- pulumi_kubernetes/resource/v1beta2/ResourceClaimPatch.py +247 -0
- pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplate.py +233 -0
- pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplateList.py +219 -0
- pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplatePatch.py +244 -0
- pulumi_kubernetes/resource/v1beta2/ResourceSlice.py +250 -0
- pulumi_kubernetes/resource/v1beta2/ResourceSliceList.py +220 -0
- pulumi_kubernetes/resource/v1beta2/ResourceSlicePatch.py +261 -0
- pulumi_kubernetes/resource/v1beta2/__init__.py +22 -0
- pulumi_kubernetes/resource/v1beta2/_inputs.py +5681 -0
- pulumi_kubernetes/resource/v1beta2/outputs.py +4726 -0
- pulumi_kubernetes/storage/v1/_inputs.py +90 -0
- pulumi_kubernetes/storage/v1/outputs.py +110 -0
- pulumi_kubernetes/yaml/yaml.py +108 -0
- {pulumi_kubernetes-4.23.0a1746129859.dist-info → pulumi_kubernetes-4.23.0a1746138483.dist-info}/METADATA +1 -1
- {pulumi_kubernetes-4.23.0a1746129859.dist-info → pulumi_kubernetes-4.23.0a1746138483.dist-info}/RECORD +116 -86
- {pulumi_kubernetes-4.23.0a1746129859.dist-info → pulumi_kubernetes-4.23.0a1746138483.dist-info}/WHEEL +0 -0
- {pulumi_kubernetes-4.23.0a1746129859.dist-info → pulumi_kubernetes-4.23.0a1746138483.dist-info}/top_level.txt +0 -0
|
@@ -781,11 +781,15 @@ class HPAScalingPolicyArgs:
|
|
|
781
781
|
if not MYPY:
|
|
782
782
|
class HPAScalingRulesPatchArgsDict(TypedDict):
|
|
783
783
|
"""
|
|
784
|
-
HPAScalingRules configures the scaling behavior for one direction
|
|
784
|
+
HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance.
|
|
785
|
+
|
|
786
|
+
Scaling Policy Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.
|
|
787
|
+
|
|
788
|
+
The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. (Note that setting a tolerance requires enabling the alpha HPAConfigurableTolerance feature gate.)
|
|
785
789
|
"""
|
|
786
790
|
policies: NotRequired[pulumi.Input[Sequence[pulumi.Input['HPAScalingPolicyPatchArgsDict']]]]
|
|
787
791
|
"""
|
|
788
|
-
policies is a list of potential scaling polices which can be used during scaling.
|
|
792
|
+
policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window.
|
|
789
793
|
"""
|
|
790
794
|
select_policy: NotRequired[pulumi.Input[builtins.str]]
|
|
791
795
|
"""
|
|
@@ -795,6 +799,14 @@ if not MYPY:
|
|
|
795
799
|
"""
|
|
796
800
|
stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
|
|
797
801
|
"""
|
|
802
|
+
tolerance: NotRequired[pulumi.Input[builtins.str]]
|
|
803
|
+
"""
|
|
804
|
+
tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%).
|
|
805
|
+
|
|
806
|
+
For example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi.
|
|
807
|
+
|
|
808
|
+
This is an alpha field and requires enabling the HPAConfigurableTolerance feature gate.
|
|
809
|
+
"""
|
|
798
810
|
elif False:
|
|
799
811
|
HPAScalingRulesPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
800
812
|
|
|
@@ -803,12 +815,22 @@ class HPAScalingRulesPatchArgs:
|
|
|
803
815
|
def __init__(__self__, *,
|
|
804
816
|
policies: Optional[pulumi.Input[Sequence[pulumi.Input['HPAScalingPolicyPatchArgs']]]] = None,
|
|
805
817
|
select_policy: Optional[pulumi.Input[builtins.str]] = None,
|
|
806
|
-
stabilization_window_seconds: Optional[pulumi.Input[builtins.int]] = None
|
|
818
|
+
stabilization_window_seconds: Optional[pulumi.Input[builtins.int]] = None,
|
|
819
|
+
tolerance: Optional[pulumi.Input[builtins.str]] = None):
|
|
807
820
|
"""
|
|
808
|
-
HPAScalingRules configures the scaling behavior for one direction
|
|
809
|
-
|
|
821
|
+
HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance.
|
|
822
|
+
|
|
823
|
+
Scaling Policy Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.
|
|
824
|
+
|
|
825
|
+
The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. (Note that setting a tolerance requires enabling the alpha HPAConfigurableTolerance feature gate.)
|
|
826
|
+
:param pulumi.Input[Sequence[pulumi.Input['HPAScalingPolicyPatchArgs']]] policies: policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window.
|
|
810
827
|
:param pulumi.Input[builtins.str] select_policy: selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.
|
|
811
828
|
:param pulumi.Input[builtins.int] stabilization_window_seconds: stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
|
|
829
|
+
:param pulumi.Input[builtins.str] tolerance: tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%).
|
|
830
|
+
|
|
831
|
+
For example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi.
|
|
832
|
+
|
|
833
|
+
This is an alpha field and requires enabling the HPAConfigurableTolerance feature gate.
|
|
812
834
|
"""
|
|
813
835
|
if policies is not None:
|
|
814
836
|
pulumi.set(__self__, "policies", policies)
|
|
@@ -816,12 +838,14 @@ class HPAScalingRulesPatchArgs:
|
|
|
816
838
|
pulumi.set(__self__, "select_policy", select_policy)
|
|
817
839
|
if stabilization_window_seconds is not None:
|
|
818
840
|
pulumi.set(__self__, "stabilization_window_seconds", stabilization_window_seconds)
|
|
841
|
+
if tolerance is not None:
|
|
842
|
+
pulumi.set(__self__, "tolerance", tolerance)
|
|
819
843
|
|
|
820
844
|
@property
|
|
821
845
|
@pulumi.getter
|
|
822
846
|
def policies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['HPAScalingPolicyPatchArgs']]]]:
|
|
823
847
|
"""
|
|
824
|
-
policies is a list of potential scaling polices which can be used during scaling.
|
|
848
|
+
policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window.
|
|
825
849
|
"""
|
|
826
850
|
return pulumi.get(self, "policies")
|
|
827
851
|
|
|
@@ -853,15 +877,35 @@ class HPAScalingRulesPatchArgs:
|
|
|
853
877
|
def stabilization_window_seconds(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
854
878
|
pulumi.set(self, "stabilization_window_seconds", value)
|
|
855
879
|
|
|
880
|
+
@property
|
|
881
|
+
@pulumi.getter
|
|
882
|
+
def tolerance(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
883
|
+
"""
|
|
884
|
+
tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%).
|
|
885
|
+
|
|
886
|
+
For example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi.
|
|
887
|
+
|
|
888
|
+
This is an alpha field and requires enabling the HPAConfigurableTolerance feature gate.
|
|
889
|
+
"""
|
|
890
|
+
return pulumi.get(self, "tolerance")
|
|
891
|
+
|
|
892
|
+
@tolerance.setter
|
|
893
|
+
def tolerance(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
894
|
+
pulumi.set(self, "tolerance", value)
|
|
895
|
+
|
|
856
896
|
|
|
857
897
|
if not MYPY:
|
|
858
898
|
class HPAScalingRulesArgsDict(TypedDict):
|
|
859
899
|
"""
|
|
860
|
-
HPAScalingRules configures the scaling behavior for one direction
|
|
900
|
+
HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance.
|
|
901
|
+
|
|
902
|
+
Scaling Policy Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.
|
|
903
|
+
|
|
904
|
+
The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. (Note that setting a tolerance requires enabling the alpha HPAConfigurableTolerance feature gate.)
|
|
861
905
|
"""
|
|
862
906
|
policies: NotRequired[pulumi.Input[Sequence[pulumi.Input['HPAScalingPolicyArgsDict']]]]
|
|
863
907
|
"""
|
|
864
|
-
policies is a list of potential scaling polices which can be used during scaling.
|
|
908
|
+
policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window.
|
|
865
909
|
"""
|
|
866
910
|
select_policy: NotRequired[pulumi.Input[builtins.str]]
|
|
867
911
|
"""
|
|
@@ -871,6 +915,14 @@ if not MYPY:
|
|
|
871
915
|
"""
|
|
872
916
|
stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
|
|
873
917
|
"""
|
|
918
|
+
tolerance: NotRequired[pulumi.Input[builtins.str]]
|
|
919
|
+
"""
|
|
920
|
+
tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%).
|
|
921
|
+
|
|
922
|
+
For example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi.
|
|
923
|
+
|
|
924
|
+
This is an alpha field and requires enabling the HPAConfigurableTolerance feature gate.
|
|
925
|
+
"""
|
|
874
926
|
elif False:
|
|
875
927
|
HPAScalingRulesArgsDict: TypeAlias = Mapping[str, Any]
|
|
876
928
|
|
|
@@ -879,12 +931,22 @@ class HPAScalingRulesArgs:
|
|
|
879
931
|
def __init__(__self__, *,
|
|
880
932
|
policies: Optional[pulumi.Input[Sequence[pulumi.Input['HPAScalingPolicyArgs']]]] = None,
|
|
881
933
|
select_policy: Optional[pulumi.Input[builtins.str]] = None,
|
|
882
|
-
stabilization_window_seconds: Optional[pulumi.Input[builtins.int]] = None
|
|
934
|
+
stabilization_window_seconds: Optional[pulumi.Input[builtins.int]] = None,
|
|
935
|
+
tolerance: Optional[pulumi.Input[builtins.str]] = None):
|
|
883
936
|
"""
|
|
884
|
-
HPAScalingRules configures the scaling behavior for one direction
|
|
885
|
-
|
|
937
|
+
HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance.
|
|
938
|
+
|
|
939
|
+
Scaling Policy Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.
|
|
940
|
+
|
|
941
|
+
The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. (Note that setting a tolerance requires enabling the alpha HPAConfigurableTolerance feature gate.)
|
|
942
|
+
:param pulumi.Input[Sequence[pulumi.Input['HPAScalingPolicyArgs']]] policies: policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window.
|
|
886
943
|
:param pulumi.Input[builtins.str] select_policy: selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.
|
|
887
944
|
:param pulumi.Input[builtins.int] stabilization_window_seconds: stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
|
|
945
|
+
:param pulumi.Input[builtins.str] tolerance: tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%).
|
|
946
|
+
|
|
947
|
+
For example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi.
|
|
948
|
+
|
|
949
|
+
This is an alpha field and requires enabling the HPAConfigurableTolerance feature gate.
|
|
888
950
|
"""
|
|
889
951
|
if policies is not None:
|
|
890
952
|
pulumi.set(__self__, "policies", policies)
|
|
@@ -892,12 +954,14 @@ class HPAScalingRulesArgs:
|
|
|
892
954
|
pulumi.set(__self__, "select_policy", select_policy)
|
|
893
955
|
if stabilization_window_seconds is not None:
|
|
894
956
|
pulumi.set(__self__, "stabilization_window_seconds", stabilization_window_seconds)
|
|
957
|
+
if tolerance is not None:
|
|
958
|
+
pulumi.set(__self__, "tolerance", tolerance)
|
|
895
959
|
|
|
896
960
|
@property
|
|
897
961
|
@pulumi.getter
|
|
898
962
|
def policies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['HPAScalingPolicyArgs']]]]:
|
|
899
963
|
"""
|
|
900
|
-
policies is a list of potential scaling polices which can be used during scaling.
|
|
964
|
+
policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window.
|
|
901
965
|
"""
|
|
902
966
|
return pulumi.get(self, "policies")
|
|
903
967
|
|
|
@@ -929,6 +993,22 @@ class HPAScalingRulesArgs:
|
|
|
929
993
|
def stabilization_window_seconds(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
930
994
|
pulumi.set(self, "stabilization_window_seconds", value)
|
|
931
995
|
|
|
996
|
+
@property
|
|
997
|
+
@pulumi.getter
|
|
998
|
+
def tolerance(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
999
|
+
"""
|
|
1000
|
+
tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%).
|
|
1001
|
+
|
|
1002
|
+
For example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi.
|
|
1003
|
+
|
|
1004
|
+
This is an alpha field and requires enabling the HPAConfigurableTolerance feature gate.
|
|
1005
|
+
"""
|
|
1006
|
+
return pulumi.get(self, "tolerance")
|
|
1007
|
+
|
|
1008
|
+
@tolerance.setter
|
|
1009
|
+
def tolerance(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
1010
|
+
pulumi.set(self, "tolerance", value)
|
|
1011
|
+
|
|
932
1012
|
|
|
933
1013
|
if not MYPY:
|
|
934
1014
|
class HorizontalPodAutoscalerBehaviorPatchArgsDict(TypedDict):
|
|
@@ -637,7 +637,11 @@ class HPAScalingPolicyPatch(dict):
|
|
|
637
637
|
@pulumi.output_type
|
|
638
638
|
class HPAScalingRules(dict):
|
|
639
639
|
"""
|
|
640
|
-
HPAScalingRules configures the scaling behavior for one direction
|
|
640
|
+
HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance.
|
|
641
|
+
|
|
642
|
+
Scaling Policy Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.
|
|
643
|
+
|
|
644
|
+
The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. (Note that setting a tolerance requires enabling the alpha HPAConfigurableTolerance feature gate.)
|
|
641
645
|
"""
|
|
642
646
|
@staticmethod
|
|
643
647
|
def __key_warning(key: str):
|
|
@@ -661,12 +665,22 @@ class HPAScalingRules(dict):
|
|
|
661
665
|
def __init__(__self__, *,
|
|
662
666
|
policies: Optional[Sequence['outputs.HPAScalingPolicy']] = None,
|
|
663
667
|
select_policy: Optional[builtins.str] = None,
|
|
664
|
-
stabilization_window_seconds: Optional[builtins.int] = None
|
|
668
|
+
stabilization_window_seconds: Optional[builtins.int] = None,
|
|
669
|
+
tolerance: Optional[builtins.str] = None):
|
|
665
670
|
"""
|
|
666
|
-
HPAScalingRules configures the scaling behavior for one direction
|
|
667
|
-
|
|
671
|
+
HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance.
|
|
672
|
+
|
|
673
|
+
Scaling Policy Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.
|
|
674
|
+
|
|
675
|
+
The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. (Note that setting a tolerance requires enabling the alpha HPAConfigurableTolerance feature gate.)
|
|
676
|
+
:param Sequence['HPAScalingPolicyArgs'] policies: policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window.
|
|
668
677
|
:param builtins.str select_policy: selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.
|
|
669
678
|
:param builtins.int stabilization_window_seconds: stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
|
|
679
|
+
:param builtins.str tolerance: tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%).
|
|
680
|
+
|
|
681
|
+
For example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi.
|
|
682
|
+
|
|
683
|
+
This is an alpha field and requires enabling the HPAConfigurableTolerance feature gate.
|
|
670
684
|
"""
|
|
671
685
|
if policies is not None:
|
|
672
686
|
pulumi.set(__self__, "policies", policies)
|
|
@@ -674,12 +688,14 @@ class HPAScalingRules(dict):
|
|
|
674
688
|
pulumi.set(__self__, "select_policy", select_policy)
|
|
675
689
|
if stabilization_window_seconds is not None:
|
|
676
690
|
pulumi.set(__self__, "stabilization_window_seconds", stabilization_window_seconds)
|
|
691
|
+
if tolerance is not None:
|
|
692
|
+
pulumi.set(__self__, "tolerance", tolerance)
|
|
677
693
|
|
|
678
694
|
@property
|
|
679
695
|
@pulumi.getter
|
|
680
696
|
def policies(self) -> Optional[Sequence['outputs.HPAScalingPolicy']]:
|
|
681
697
|
"""
|
|
682
|
-
policies is a list of potential scaling polices which can be used during scaling.
|
|
698
|
+
policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window.
|
|
683
699
|
"""
|
|
684
700
|
return pulumi.get(self, "policies")
|
|
685
701
|
|
|
@@ -699,11 +715,27 @@ class HPAScalingRules(dict):
|
|
|
699
715
|
"""
|
|
700
716
|
return pulumi.get(self, "stabilization_window_seconds")
|
|
701
717
|
|
|
718
|
+
@property
|
|
719
|
+
@pulumi.getter
|
|
720
|
+
def tolerance(self) -> Optional[builtins.str]:
|
|
721
|
+
"""
|
|
722
|
+
tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%).
|
|
723
|
+
|
|
724
|
+
For example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi.
|
|
725
|
+
|
|
726
|
+
This is an alpha field and requires enabling the HPAConfigurableTolerance feature gate.
|
|
727
|
+
"""
|
|
728
|
+
return pulumi.get(self, "tolerance")
|
|
729
|
+
|
|
702
730
|
|
|
703
731
|
@pulumi.output_type
|
|
704
732
|
class HPAScalingRulesPatch(dict):
|
|
705
733
|
"""
|
|
706
|
-
HPAScalingRules configures the scaling behavior for one direction
|
|
734
|
+
HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance.
|
|
735
|
+
|
|
736
|
+
Scaling Policy Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.
|
|
737
|
+
|
|
738
|
+
The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. (Note that setting a tolerance requires enabling the alpha HPAConfigurableTolerance feature gate.)
|
|
707
739
|
"""
|
|
708
740
|
@staticmethod
|
|
709
741
|
def __key_warning(key: str):
|
|
@@ -727,12 +759,22 @@ class HPAScalingRulesPatch(dict):
|
|
|
727
759
|
def __init__(__self__, *,
|
|
728
760
|
policies: Optional[Sequence['outputs.HPAScalingPolicyPatch']] = None,
|
|
729
761
|
select_policy: Optional[builtins.str] = None,
|
|
730
|
-
stabilization_window_seconds: Optional[builtins.int] = None
|
|
762
|
+
stabilization_window_seconds: Optional[builtins.int] = None,
|
|
763
|
+
tolerance: Optional[builtins.str] = None):
|
|
731
764
|
"""
|
|
732
|
-
HPAScalingRules configures the scaling behavior for one direction
|
|
733
|
-
|
|
765
|
+
HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance.
|
|
766
|
+
|
|
767
|
+
Scaling Policy Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.
|
|
768
|
+
|
|
769
|
+
The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. (Note that setting a tolerance requires enabling the alpha HPAConfigurableTolerance feature gate.)
|
|
770
|
+
:param Sequence['HPAScalingPolicyPatchArgs'] policies: policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window.
|
|
734
771
|
:param builtins.str select_policy: selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.
|
|
735
772
|
:param builtins.int stabilization_window_seconds: stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
|
|
773
|
+
:param builtins.str tolerance: tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%).
|
|
774
|
+
|
|
775
|
+
For example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi.
|
|
776
|
+
|
|
777
|
+
This is an alpha field and requires enabling the HPAConfigurableTolerance feature gate.
|
|
736
778
|
"""
|
|
737
779
|
if policies is not None:
|
|
738
780
|
pulumi.set(__self__, "policies", policies)
|
|
@@ -740,12 +782,14 @@ class HPAScalingRulesPatch(dict):
|
|
|
740
782
|
pulumi.set(__self__, "select_policy", select_policy)
|
|
741
783
|
if stabilization_window_seconds is not None:
|
|
742
784
|
pulumi.set(__self__, "stabilization_window_seconds", stabilization_window_seconds)
|
|
785
|
+
if tolerance is not None:
|
|
786
|
+
pulumi.set(__self__, "tolerance", tolerance)
|
|
743
787
|
|
|
744
788
|
@property
|
|
745
789
|
@pulumi.getter
|
|
746
790
|
def policies(self) -> Optional[Sequence['outputs.HPAScalingPolicyPatch']]:
|
|
747
791
|
"""
|
|
748
|
-
policies is a list of potential scaling polices which can be used during scaling.
|
|
792
|
+
policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window.
|
|
749
793
|
"""
|
|
750
794
|
return pulumi.get(self, "policies")
|
|
751
795
|
|
|
@@ -765,6 +809,18 @@ class HPAScalingRulesPatch(dict):
|
|
|
765
809
|
"""
|
|
766
810
|
return pulumi.get(self, "stabilization_window_seconds")
|
|
767
811
|
|
|
812
|
+
@property
|
|
813
|
+
@pulumi.getter
|
|
814
|
+
def tolerance(self) -> Optional[builtins.str]:
|
|
815
|
+
"""
|
|
816
|
+
tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%).
|
|
817
|
+
|
|
818
|
+
For example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi.
|
|
819
|
+
|
|
820
|
+
This is an alpha field and requires enabling the HPAConfigurableTolerance feature gate.
|
|
821
|
+
"""
|
|
822
|
+
return pulumi.get(self, "tolerance")
|
|
823
|
+
|
|
768
824
|
|
|
769
825
|
@pulumi.output_type
|
|
770
826
|
class HorizontalPodAutoscaler(dict):
|