Skip to content
Open
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
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 77.11.0
version: 77.11.1
# renovate: github=prometheus-operator/prometheus-operator
appVersion: v0.85.0
kubeVersion: ">=1.25.0-0"
Expand Down
4 changes: 4 additions & 0 deletions charts/kube-prometheus-stack/hack/sync_prometheus_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ def new_representer(dumper, data):
'$.Values.defaultRules.node.fsSelector': {
'replacement': '{{ $.Values.defaultRules.node.fsSelector }}',
'init': ''},
# 601200 seconds = 6 days 22 hour. Used as the default threshold for kubeClientCertificateExpira
'601200': {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment here

'replacement': '{{ .Values.defaultRules.kubeClientCertificateExpiration | default "601200" }}',
'init': ''},
}

# standard header
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,4 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
5 changes: 5 additions & 0 deletions charts/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ defaultRules:
prometheusOperator: true
windows: true

# kubeClientCertificateExpiration specifies the lifetime of client certificates.
# The value is specified in seconds. 601200 seconds ≈ 6 days 22 hour.
# This value is chosen to align with the certificate rotation policy.
kubeClientCertificateExpiration: "601200"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add more context/comments here.


# Defines the operator for namespace selection in rules
# Use "=~" to include namespaces matching the pattern (default)
# Use "!~" to exclude namespaces matching the pattern
Expand Down