39
39
"NodeConfig" ,
40
40
"AdvancedMachineFeatures" ,
41
41
"NodeNetworkConfig" ,
42
+ "AdditionalNodeNetworkConfig" ,
43
+ "AdditionalPodNetworkConfig" ,
42
44
"ShieldedInstanceConfig" ,
43
45
"SandboxConfig" ,
44
46
"EphemeralStorageConfig" ,
47
49
"GcfsConfig" ,
48
50
"ReservationAffinity" ,
49
51
"SoleTenantConfig" ,
52
+ "HostMaintenancePolicy" ,
50
53
"NodeTaint" ,
51
54
"NodeTaints" ,
52
55
"NodeLabels" ,
@@ -687,6 +690,10 @@ class NodeConfig(proto.Message):
687
690
sole_tenant_config (google.cloud.container_v1beta1.types.SoleTenantConfig):
688
691
Parameters for node pools to be backed by
689
692
shared sole tenant node groups.
693
+ host_maintenance_policy (google.cloud.container_v1beta1.types.HostMaintenancePolicy):
694
+ HostMaintenancePolicy contains the desired
695
+ maintenance policy for the Google Compute Engine
696
+ hosts.
690
697
"""
691
698
692
699
machine_type : str = proto .Field (
@@ -852,6 +859,11 @@ class NodeConfig(proto.Message):
852
859
number = 42 ,
853
860
message = "SoleTenantConfig" ,
854
861
)
862
+ host_maintenance_policy : "HostMaintenancePolicy" = proto .Field (
863
+ proto .MESSAGE ,
864
+ number = 44 ,
865
+ message = "HostMaintenancePolicy" ,
866
+ )
855
867
856
868
857
869
class AdvancedMachineFeatures (proto .Message ):
@@ -953,6 +965,15 @@ class NodeNetworkConfig(proto.Message):
953
965
off to next power of 2) Example: max_pods_per_node of 30
954
966
will result in 32 IPs (/27) when overprovisioning is
955
967
disabled.
968
+ additional_node_network_configs (MutableSequence[google.cloud.container_v1beta1.types.AdditionalNodeNetworkConfig]):
969
+ We specify the additional node networks for
970
+ this node pool using this list. Each node
971
+ network corresponds to an additional interface
972
+ additional_pod_network_configs (MutableSequence[google.cloud.container_v1beta1.types.AdditionalPodNetworkConfig]):
973
+ We specify the additional pod networks for
974
+ this node pool using this list. Each pod network
975
+ corresponds to an additional alias IP range for
976
+ the node
956
977
pod_ipv4_range_utilization (float):
957
978
Output only. [Output only] The utilization of the IPv4 range
958
979
for the pod. The ratio is Usage/[Total number of IPs in the
@@ -1032,12 +1053,86 @@ class Tier(proto.Enum):
1032
1053
number = 13 ,
1033
1054
message = "PodCIDROverprovisionConfig" ,
1034
1055
)
1056
+ additional_node_network_configs : MutableSequence [
1057
+ "AdditionalNodeNetworkConfig"
1058
+ ] = proto .RepeatedField (
1059
+ proto .MESSAGE ,
1060
+ number = 14 ,
1061
+ message = "AdditionalNodeNetworkConfig" ,
1062
+ )
1063
+ additional_pod_network_configs : MutableSequence [
1064
+ "AdditionalPodNetworkConfig"
1065
+ ] = proto .RepeatedField (
1066
+ proto .MESSAGE ,
1067
+ number = 15 ,
1068
+ message = "AdditionalPodNetworkConfig" ,
1069
+ )
1035
1070
pod_ipv4_range_utilization : float = proto .Field (
1036
1071
proto .DOUBLE ,
1037
1072
number = 16 ,
1038
1073
)
1039
1074
1040
1075
1076
+ class AdditionalNodeNetworkConfig (proto .Message ):
1077
+ r"""AdditionalNodeNetworkConfig is the configuration for
1078
+ additional node networks within the NodeNetworkConfig message
1079
+
1080
+ Attributes:
1081
+ network (str):
1082
+ Name of the VPC where the additional
1083
+ interface belongs
1084
+ subnetwork (str):
1085
+ Name of the subnetwork where the additional
1086
+ interface belongs
1087
+ """
1088
+
1089
+ network : str = proto .Field (
1090
+ proto .STRING ,
1091
+ number = 1 ,
1092
+ )
1093
+ subnetwork : str = proto .Field (
1094
+ proto .STRING ,
1095
+ number = 2 ,
1096
+ )
1097
+
1098
+
1099
+ class AdditionalPodNetworkConfig (proto .Message ):
1100
+ r"""AdditionalPodNetworkConfig is the configuration for
1101
+ additional pod networks within the NodeNetworkConfig message
1102
+
1103
+
1104
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
1105
+
1106
+ Attributes:
1107
+ subnetwork (str):
1108
+ Name of the subnetwork where the additional
1109
+ pod network belongs
1110
+ secondary_pod_range (str):
1111
+ The name of the secondary range on the subnet
1112
+ which provides IP address for this pod range
1113
+ max_pods_per_node (google.cloud.container_v1beta1.types.MaxPodsConstraint):
1114
+ The maximum number of pods per node which use
1115
+ this pod network
1116
+
1117
+ This field is a member of `oneof`_ ``_max_pods_per_node``.
1118
+ """
1119
+
1120
+ subnetwork : str = proto .Field (
1121
+ proto .STRING ,
1122
+ number = 1 ,
1123
+ )
1124
+ secondary_pod_range : str = proto .Field (
1125
+ proto .STRING ,
1126
+ number = 2 ,
1127
+ )
1128
+ max_pods_per_node : "MaxPodsConstraint" = proto .Field (
1129
+ proto .MESSAGE ,
1130
+ number = 3 ,
1131
+ optional = True ,
1132
+ message = "MaxPodsConstraint" ,
1133
+ )
1134
+
1135
+
1041
1136
class ShieldedInstanceConfig (proto .Message ):
1042
1137
r"""A set of Shielded Instance options.
1043
1138
@@ -1303,6 +1398,56 @@ class Operator(proto.Enum):
1303
1398
)
1304
1399
1305
1400
1401
+ class HostMaintenancePolicy (proto .Message ):
1402
+ r"""HostMaintenancePolicy contains the maintenance policy for the
1403
+ hosts on which the GKE VMs run on.
1404
+
1405
+
1406
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
1407
+
1408
+ Attributes:
1409
+ maintenance_interval (google.cloud.container_v1beta1.types.HostMaintenancePolicy.MaintenanceInterval):
1410
+ Specifies the frequency of planned
1411
+ maintenance events.
1412
+
1413
+ This field is a member of `oneof`_ ``_maintenance_interval``.
1414
+ """
1415
+
1416
+ class MaintenanceInterval (proto .Enum ):
1417
+ r"""Allows selecting how infrastructure upgrades should be
1418
+ applied to the cluster or node pool.
1419
+
1420
+ Values:
1421
+ MAINTENANCE_INTERVAL_UNSPECIFIED (0):
1422
+ The maintenance interval is not explicitly
1423
+ specified.
1424
+ AS_NEEDED (1):
1425
+ Nodes are eligible to receive infrastructure
1426
+ and hypervisor updates as they become available.
1427
+ This may result in more maintenance operations
1428
+ (live migrations or terminations) for the node
1429
+ than the PERIODIC option.
1430
+ PERIODIC (2):
1431
+ Nodes receive infrastructure and hypervisor updates on a
1432
+ periodic basis, minimizing the number of maintenance
1433
+ operations (live migrations or terminations) on an
1434
+ individual VM. This may mean underlying VMs will take longer
1435
+ to receive an update than if it was configured for
1436
+ AS_NEEDED. Security updates will still be applied as soon as
1437
+ they are available.
1438
+ """
1439
+ MAINTENANCE_INTERVAL_UNSPECIFIED = 0
1440
+ AS_NEEDED = 1
1441
+ PERIODIC = 2
1442
+
1443
+ maintenance_interval : MaintenanceInterval = proto .Field (
1444
+ proto .ENUM ,
1445
+ number = 1 ,
1446
+ optional = True ,
1447
+ enum = MaintenanceInterval ,
1448
+ )
1449
+
1450
+
1306
1451
class NodeTaint (proto .Message ):
1307
1452
r"""Kubernetes taint is composed of three fields: key, value, and
1308
1453
effect. Effect can only be one of three types: NoSchedule,
@@ -3474,6 +3619,10 @@ class NodeConfigDefaults(proto.Message):
3474
3619
known as Riptide) options.
3475
3620
logging_config (google.cloud.container_v1beta1.types.NodePoolLoggingConfig):
3476
3621
Logging configuration for node pools.
3622
+ host_maintenance_policy (google.cloud.container_v1beta1.types.HostMaintenancePolicy):
3623
+ HostMaintenancePolicy contains the desired
3624
+ maintenance policy for the Google Compute Engine
3625
+ hosts.
3477
3626
"""
3478
3627
3479
3628
gcfs_config : "GcfsConfig" = proto .Field (
@@ -3486,6 +3635,11 @@ class NodeConfigDefaults(proto.Message):
3486
3635
number = 3 ,
3487
3636
message = "NodePoolLoggingConfig" ,
3488
3637
)
3638
+ host_maintenance_policy : "HostMaintenancePolicy" = proto .Field (
3639
+ proto .MESSAGE ,
3640
+ number = 5 ,
3641
+ message = "HostMaintenancePolicy" ,
3642
+ )
3489
3643
3490
3644
3491
3645
class NodePoolAutoConfig (proto .Message ):
@@ -3751,6 +3905,10 @@ class ClusterUpdate(proto.Message):
3751
3905
the autopilot cluster.
3752
3906
desired_k8s_beta_apis (google.cloud.container_v1beta1.types.K8sBetaAPIConfig):
3753
3907
Beta APIs enabled for cluster.
3908
+ desired_host_maintenance_policy (google.cloud.container_v1beta1.types.HostMaintenancePolicy):
3909
+ HostMaintenancePolicy contains the desired
3910
+ maintenance policy for the Google Compute Engine
3911
+ hosts.
3754
3912
"""
3755
3913
3756
3914
desired_node_version : str = proto .Field (
@@ -4028,6 +4186,11 @@ class ClusterUpdate(proto.Message):
4028
4186
number = 131 ,
4029
4187
message = "K8sBetaAPIConfig" ,
4030
4188
)
4189
+ desired_host_maintenance_policy : "HostMaintenancePolicy" = proto .Field (
4190
+ proto .MESSAGE ,
4191
+ number = 132 ,
4192
+ message = "HostMaintenancePolicy" ,
4193
+ )
4031
4194
4032
4195
4033
4196
class AdditionalPodRangesConfig (proto .Message ):
@@ -6314,6 +6477,12 @@ class PlacementPolicy(proto.Message):
6314
6477
tpu_topology (str):
6315
6478
TPU placement topology for pod slice node pool.
6316
6479
https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
6480
+ policy_name (str):
6481
+ If set, refers to the name of a custom
6482
+ resource policy supplied by the user. The
6483
+ resource policy must be in the same project and
6484
+ region as the node pool. If not found,
6485
+ InvalidArgument error is returned.
6317
6486
"""
6318
6487
6319
6488
class Type (proto .Enum ):
@@ -6340,6 +6509,10 @@ class Type(proto.Enum):
6340
6509
proto .STRING ,
6341
6510
number = 2 ,
6342
6511
)
6512
+ policy_name : str = proto .Field (
6513
+ proto .STRING ,
6514
+ number = 3 ,
6515
+ )
6343
6516
6344
6517
name : str = proto .Field (
6345
6518
proto .STRING ,
@@ -8008,6 +8181,9 @@ class NetworkConfig(proto.Message):
8008
8181
gateway_api_config (google.cloud.container_v1beta1.types.GatewayAPIConfig):
8009
8182
GatewayAPIConfig contains the desired config
8010
8183
of Gateway API on this cluster.
8184
+ enable_multi_networking (bool):
8185
+ Whether multi-networking is enabled for this
8186
+ cluster.
8011
8187
network_performance_config (google.cloud.container_v1beta1.types.NetworkConfig.ClusterNetworkPerformanceConfig):
8012
8188
Network bandwidth tier configuration.
8013
8189
enable_fqdn_network_policy (bool):
@@ -8096,6 +8272,10 @@ class Tier(proto.Enum):
8096
8272
number = 16 ,
8097
8273
message = "GatewayAPIConfig" ,
8098
8274
)
8275
+ enable_multi_networking : bool = proto .Field (
8276
+ proto .BOOL ,
8277
+ number = 17 ,
8278
+ )
8099
8279
network_performance_config : ClusterNetworkPerformanceConfig = proto .Field (
8100
8280
proto .MESSAGE ,
8101
8281
number = 18 ,
0 commit comments