Skip to content

Commit cb92854

Browse files
feat: [container] add advanced_datapath_observability_config to monitoring_config (#4414)
* feat: add advanced_datapath_observability_config to monitoring_config PiperOrigin-RevId: 547520012 Source-Link: googleapis/googleapis@8464e52 Source-Link: googleapis/googleapis-gen@ddd3271 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiZGRkMzI3MTQ5MTM1NTU5NTE2NmMyZDE4NWJjMjRiYzBiNGFhZTQxZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 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 Source-Link: googleapis/googleapis@1bd12d7 Source-Link: googleapis/googleapis-gen@cbb5fcc Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiY2JiNWZjYzFhYWQ5ZDMwZDlmNTFmNWJhZjA1Y2RkMmRhN2I2ZGE5YyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: sofisl <[email protected]>
1 parent 58a5209 commit cb92854

5 files changed

Lines changed: 1954 additions & 5 deletions

File tree

packages/google-container/protos/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.

packages/google-container/protos/google/container/v1beta1/cluster_service.proto

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ message NodeNetworkConfig {
922922
// overprovisioning is disabled.
923923
PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;
924924

925-
// Output only. [Output only] The utilization of the IPv4 range for pod.
925+
// Output only. [Output only] The utilization of the IPv4 range for the pod.
926926
// The ratio is Usage/[Total number of IPs in the secondary range],
927927
// Usage=numNodes*numZones*podIPsPerNode.
928928
double pod_ipv4_range_utilization = 16
@@ -1647,7 +1647,7 @@ message IPAllocationPolicy {
16471647
[(google.api.field_behavior) = OUTPUT_ONLY];
16481648

16491649
// 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
1650+
// range for the pod. The ratio is Usage/[Total number of IPs in the secondary
16511651
// range], Usage=numNodes*numZones*podIPsPerNode.
16521652
double default_pod_ipv4_range_utilization = 25
16531653
[(google.api.field_behavior) = OUTPUT_ONLY];
@@ -4895,7 +4895,7 @@ message DNSConfig {
48954895
// Use CloudDNS for DNS resolution.
48964896
CLOUD_DNS = 2;
48974897

4898-
// Use KubeDNS for DNS resolution
4898+
// Use KubeDNS for DNS resolution.
48994899
KUBE_DNS = 3;
49004900
}
49014901

@@ -5488,6 +5488,35 @@ message MonitoringConfig {
54885488
// Enable Google Cloud Managed Service for Prometheus
54895489
// in the cluster.
54905490
ManagedPrometheusConfig managed_prometheus_config = 2;
5491+
5492+
// Configuration of Advanced Datapath Observability features.
5493+
AdvancedDatapathObservabilityConfig advanced_datapath_observability_config =
5494+
3;
5495+
}
5496+
5497+
// AdvancedDatapathObservabilityConfig specifies configuration of observability
5498+
// features of advanced datapath.
5499+
message AdvancedDatapathObservabilityConfig {
5500+
// Supported Relay modes
5501+
enum RelayMode {
5502+
// Default value. This shouldn't be used.
5503+
RELAY_MODE_UNSPECIFIED = 0;
5504+
5505+
// disabled
5506+
DISABLED = 1;
5507+
5508+
// exposed via internal load balancer
5509+
INTERNAL_VPC_LB = 3;
5510+
5511+
// exposed via external load balancer
5512+
EXTERNAL_LB = 4;
5513+
}
5514+
5515+
// Expose flow metrics on nodes
5516+
bool enable_metrics = 1;
5517+
5518+
// Method used to make Relay available
5519+
RelayMode relay_mode = 2;
54915520
}
54925521

54935522
// NodePoolLoggingConfig specifies logging configuration for nodepools.

0 commit comments

Comments
 (0)