Skip to content

Allows setting the hubble.metrics.enabled value in Cilium Helm chart #1354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions kube.tf.example
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,11 @@ module "kube-hetzner" {
# Enables Hubble Observability to collect and visualize network traffic. Default: false
# cilium_hubble_enabled = true

# Configures the list of Hubble metrics to collect.
# cilium_hubble_metrics_enabled = [
# "policy:sourceContext=app|workload-name|pod|reserved-identity;destinationContext=app|workload-name|pod|dns|reserved-identity;labelsContext=source_namespace,destination_namespace"
# ]

# You can choose the version of Calico that you want. By default, the latest is used.
# More info on available versions can be found at https://github.com/projectcalico/calico/releases
# Please note that if you are getting 403s from Github, it's also useful to set the version manually. However there is rarely a need for that!
Expand Down
5 changes: 5 additions & 0 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,11 @@ hubble:
enabled: true
ui:
enabled: true
metrics:
enabled:
%{for metric in var.cilium_hubble_metrics_enabled~}
- "${metric}"
%{endfor~}
%{endif~}

MTU: 1450
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,12 @@ variable "cilium_hubble_enabled" {
description = "Enables Hubble Observability to collect and visualize network traffic."
}

variable "cilium_hubble_metrics_enabled" {
type = list(string)
default = []
description = "Configures the list of Hubble metrics to collect"
}

variable "cilium_ipv4_native_routing_cidr" {
type = string
default = null
Expand Down