Skip to content

Commit 5b2d46f

Browse files
Google APIscopybara-github
authored andcommitted
feat: add a flag to toggle the Kubelet read only port
A new optional field `InsecureKubeletReadonlyPortEnabled` is available in `NodeKubeletConfig` and `AutoProvisioningNodePoolDefaults`. Setting the field to `false` turns off the read-only port. If un-set, the default for the GKE version is used. --- feat: publicize tpu topology in beta API --- feat: add a Pod IP Utilization API Users can use `cluster describe` command to check the Pod IP ranges utilizations consumed by all the node pools within the same cluster. This percentage can be seen at cluster default Pod range, additional Pod ranges, and node pool level Pod ranges. PiperOrigin-RevId: 545172252
1 parent 511319c commit 5b2d46f

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

google/container/v1beta1/cluster_service.proto

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,9 @@ message NodeKubeletConfig {
606606
// Controls the maximum number of processes allowed to run in a pod. The value
607607
// must be greater than or equal to 1024 and less than 4194304.
608608
int64 pod_pids_limit = 4;
609+
610+
// Enable or disable Kubelet read only port.
611+
optional bool insecure_kubelet_readonly_port_enabled = 7;
609612
}
610613

611614
// Parameters that describe the nodes in a cluster.
@@ -918,6 +921,12 @@ message NodeNetworkConfig {
918921
// Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
919922
// overprovisioning is disabled.
920923
PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;
924+
925+
// Output only. [Output only] The utilization of the IPv4 range for pod.
926+
// The ratio is Usage/[Total number of IPs in the secondary range],
927+
// Usage=numNodes*numZones*podIPsPerNode.
928+
double pod_ipv4_range_utilization = 16
929+
[(google.api.field_behavior) = OUTPUT_ONLY];
921930
}
922931

923932
// A set of Shielded Instance options.
@@ -1636,6 +1645,12 @@ message IPAllocationPolicy {
16361645
// IPAllocationPolicy.
16371646
AdditionalPodRangesConfig additional_pod_ranges_config = 24
16381647
[(google.api.field_behavior) = OUTPUT_ONLY];
1648+
1649+
// Output only. [Output only] The utilization of the cluster default IPv4
1650+
// range for pod. The ratio is Usage/[Total number of IPs in the secondary
1651+
// range], Usage=numNodes*numZones*podIPsPerNode.
1652+
double default_pod_ipv4_range_utilization = 25
1653+
[(google.api.field_behavior) = OUTPUT_ONLY];
16391654
}
16401655

16411656
// Configuration for Binary Authorization.
@@ -2464,6 +2479,19 @@ message ClusterUpdate {
24642479
message AdditionalPodRangesConfig {
24652480
// Name for pod secondary ipv4 range which has the actual range defined ahead.
24662481
repeated string pod_range_names = 1;
2482+
2483+
// Output only. [Output only] Information for additional pod range.
2484+
repeated RangeInfo pod_range_info = 2
2485+
[(google.api.field_behavior) = OUTPUT_ONLY];
2486+
}
2487+
2488+
// RangeInfo contains the range name and the range utilization by this cluster.
2489+
message RangeInfo {
2490+
// Output only. [Output only] Name of a range.
2491+
string range_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
2492+
2493+
// Output only. [Output only] The utilization of the range.
2494+
double utilization = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
24672495
}
24682496

24692497
// This operation resource represents operations that may have happened or are
@@ -3709,6 +3737,10 @@ message NodePool {
37093737

37103738
// The type of placement.
37113739
Type type = 1;
3740+
3741+
// TPU placement topology for pod slice node pool.
3742+
// https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
3743+
string tpu_topology = 2;
37123744
}
37133745

37143746
// The name of the node pool.
@@ -4174,6 +4206,9 @@ message AutoprovisioningNodePoolDefaults {
41744206
// https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
41754207
// available image types.
41764208
string image_type = 10;
4209+
4210+
// Enable or disable Kubelet read only port.
4211+
optional bool insecure_kubelet_readonly_port_enabled = 13;
41774212
}
41784213

41794214
// Contains information about amount of some resource in the cluster.

0 commit comments

Comments
 (0)