Skip to content

Commit 1bd12d7

Browse files
Google APIscopybara-github
authored andcommitted
feat: add advanced_datapath_observability_config to monitoring_config
-- 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: 547521835
1 parent 8464e52 commit 1bd12d7

1 file changed

Lines changed: 70 additions & 1 deletion

File tree

google/container/v1/cluster_service.proto

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,9 @@ message NodeKubeletConfig {
615615
// Controls the maximum number of processes allowed to run in a pod. The value
616616
// must be greater than or equal to 1024 and less than 4194304.
617617
int64 pod_pids_limit = 4;
618+
619+
// Enable or disable Kubelet read only port.
620+
optional bool insecure_kubelet_readonly_port_enabled = 7;
618621
}
619622

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

922931
// A set of Shielded Instance options.
@@ -1178,6 +1187,9 @@ message AddonsConfig {
11781187

11791188
// Configuration for the Backup for GKE agent addon.
11801189
GkeBackupAgentConfig gke_backup_agent_config = 16;
1190+
1191+
// Configuration for the Cloud Storage Fuse CSI driver.
1192+
GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17;
11811193
}
11821194

11831195
// Configuration options for the HTTP (L7) load balancing controller addon,
@@ -1308,6 +1320,12 @@ message GcpFilestoreCsiDriverConfig {
13081320
bool enabled = 1;
13091321
}
13101322

1323+
// Configuration for the Cloud Storage Fuse CSI driver.
1324+
message GcsFuseCsiDriverConfig {
1325+
// Whether the Cloud Storage Fuse CSI driver is enabled for this cluster.
1326+
bool enabled = 1;
1327+
}
1328+
13111329
// Configuration for the Backup for GKE Agent.
13121330
message GkeBackupAgentConfig {
13131331
// Whether the Backup for GKE agent is enabled for this cluster.
@@ -1555,6 +1573,12 @@ message IPAllocationPolicy {
15551573
// IPAllocationPolicy.
15561574
AdditionalPodRangesConfig additional_pod_ranges_config = 24
15571575
[(google.api.field_behavior) = OUTPUT_ONLY];
1576+
1577+
// Output only. [Output only] The utilization of the cluster default IPv4
1578+
// range for the pod. The ratio is Usage/[Total number of IPs in the secondary
1579+
// range], Usage=numNodes*numZones*podIPsPerNode.
1580+
double default_pod_ipv4_range_utilization = 25
1581+
[(google.api.field_behavior) = OUTPUT_ONLY];
15581582
}
15591583

15601584
// A Google Kubernetes Engine cluster.
@@ -2204,6 +2228,19 @@ message ClusterUpdate {
22042228
message AdditionalPodRangesConfig {
22052229
// Name for pod secondary ipv4 range which has the actual range defined ahead.
22062230
repeated string pod_range_names = 1;
2231+
2232+
// Output only. [Output only] Information for additional pod range.
2233+
repeated RangeInfo pod_range_info = 2
2234+
[(google.api.field_behavior) = OUTPUT_ONLY];
2235+
}
2236+
2237+
// RangeInfo contains the range name and the range utilization by this cluster.
2238+
message RangeInfo {
2239+
// Output only. [Output only] Name of a range.
2240+
string range_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
2241+
2242+
// Output only. [Output only] The utilization of the range.
2243+
double utilization = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
22072244
}
22082245

22092246
// This operation resource represents operations that may have happened or are
@@ -3815,6 +3852,9 @@ message AutoprovisioningNodePoolDefaults {
38153852
// https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
38163853
// available image types.
38173854
string image_type = 10;
3855+
3856+
// Enable or disable Kubelet read only port.
3857+
optional bool insecure_kubelet_readonly_port_enabled = 13;
38183858
}
38193859

38203860
// Contains information about amount of some resource in the cluster.
@@ -4467,7 +4507,7 @@ message DNSConfig {
44674507
// Use CloudDNS for DNS resolution.
44684508
CLOUD_DNS = 2;
44694509

4470-
// Use KubeDNS for DNS resolution
4510+
// Use KubeDNS for DNS resolution.
44714511
KUBE_DNS = 3;
44724512
}
44734513

@@ -4931,6 +4971,35 @@ message MonitoringConfig {
49314971
// Enable Google Cloud Managed Service for Prometheus
49324972
// in the cluster.
49334973
ManagedPrometheusConfig managed_prometheus_config = 2;
4974+
4975+
// Configuration of Advanced Datapath Observability features.
4976+
AdvancedDatapathObservabilityConfig advanced_datapath_observability_config =
4977+
3;
4978+
}
4979+
4980+
// AdvancedDatapathObservabilityConfig specifies configuration of observability
4981+
// features of advanced datapath.
4982+
message AdvancedDatapathObservabilityConfig {
4983+
// Supported Relay modes
4984+
enum RelayMode {
4985+
// Default value. This shouldn't be used.
4986+
RELAY_MODE_UNSPECIFIED = 0;
4987+
4988+
// disabled
4989+
DISABLED = 1;
4990+
4991+
// exposed via internal load balancer
4992+
INTERNAL_VPC_LB = 3;
4993+
4994+
// exposed via external load balancer
4995+
EXTERNAL_LB = 4;
4996+
}
4997+
4998+
// Expose flow metrics on nodes
4999+
bool enable_metrics = 1;
5000+
5001+
// Method used to make Relay available
5002+
RelayMode relay_mode = 2;
49345003
}
49355004

49365005
// NodePoolLoggingConfig specifies logging configuration for nodepools.

0 commit comments

Comments
 (0)