2topologySpreadConstraints: []
3# Override the name of the chart
5# Override the full name of the release
8 repository: cgr.dev/chainguard-private/prometheus-adapter
9 # if not set appVersion field from Chart.yaml is used
10 tag: latest@sha256:105f5295fda94de97a2b98143490cc4c0ac6b1db240947a88c5c04255accdeed
11 pullPolicy: IfNotPresent
15metricsRelistInterval: 1m
19## Override the release namespace (for multi-namespace deployments in combined charts)
21## Additional annotations to add to all resources
25## Additional labels to add to all resources
27# monitoring: prometheus-adapter
29# Url to access prometheus
32 url: http://prometheus.default.svc
36# k8s 1.21 needs fsGroup to be set for non root deployments
37# ref: https://github.com/kubernetes/kubernetes/issues/70679
40# SecurityContext of the container
41# ref. https://kubernetes.io/docs/tasks/configure-pod-container/security-context
43 allowPrivilegeEscalation: false
46 readOnlyRootFilesystem: true
52 # Specifies whether RBAC resources should be created
54 # Specifies if a Cluster Role should be used for the Auth Reader
55 useAuthReaderClusterRole: false
60# If false then the user will opt out of automounting API credentials.
61automountServiceAccountToken: true
63 # Specifies whether a service account should be created
65 # The name of the service account to use.
66 # If not set and create is true, a name is generated using the fullname template
68 # ServiceAccount annotations.
69 # Use case: AWS EKS IAM roles for service accounts
70 # ref: https://docs.aws.amazon.com/eks/latest/userguide/specify-service-account-role.html
72 # If false then the user will opt out of automounting API credentials.
73 automountServiceAccountToken: true
74# Custom DNS configuration to be added to prometheus-adapter pods
79# - ns1.svc.cluster-domain.example
80# - my.dns.search.suffix
94# Configure liveness probe
95# https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#Probe
101 initialDelaySeconds: 30
103# Configure readiness probe
109 initialDelaySeconds: 30
111# Configure startup probe
112# Use if prometheus-adapter takes a long time to finish startup e.g. polling a lot of API versions in cluster
117 # - seriesQuery: '{__name__=~"^some_metric_count$"}'
119 # template: <<.Resource>>
122 # as: "my_custom_metric"
123 # metricsQuery: sum(<<.Series>>{<<.LabelMatchers>>}) by (<<.GroupBy>>)
125 # Mounts a configMap with pre-generated rules for use. Overrides the
126 # default, custom, external and resource entries
132 # sum by (<<.GroupBy>>) (
133 # rate(container_cpu_usage_seconds_total{container!="",<<.LabelMatchers>>}[3m])
136 # sum by (<<.GroupBy>>) (
137 # rate(node_cpu_seconds_total{mode!="idle",mode!="iowait",mode!="steal",<<.LabelMatchers>>}[3m])
144 # resource: namespace
147 # containerLabel: container
150 # sum by (<<.GroupBy>>) (
151 # avg_over_time(container_memory_working_set_bytes{container!="",<<.LabelMatchers>>}[3m])
154 # sum by (<<.GroupBy>>) (
155 # avg_over_time(node_memory_MemTotal_bytes{<<.LabelMatchers>>}[3m])
157 # avg_over_time(node_memory_MemAvailable_bytes{<<.LabelMatchers>>}[3m])
164 # resource: namespace
167 # containerLabel: container
176 ipFamilies: ["IPv6", "IPv4"]
177 ipFamilyPolicy: "PreferDualStack"
181 # Public CA file that signed the APIService
183 # Private key of the APIService
185 # Public key of the APIService
186# Set environment variables from secrets, configmaps or by setting them as name/value
199# - --tls-private-key-file=/etc/tls/tls.key
200# - --tls-cert-file=/etc/tls/tls.crt
202# Additional containers to add to the pod
206# - name: example-name
209# type: DirectoryOrCreate
212# path: /etc/ssl/certs/ca-bundle.crt
215# Any extra volume mounts
217# - name: example-name
218# mountPath: /path/in/container
220# mountPath: /etc/ssl/certs/ca-certificates.crt
224# Labels added to the pod
226# Annotations added to the pod
228# Annotations added to the deployment
229deploymentAnnotations: {}
231 # Specifies if prometheus-adapter should be started in hostNetwork mode.
233 # You would require this enabled if you use alternate overlay networking for pods and
234 # API server unable to communicate with metrics-server. As an example, this is required
235 # if you use Weave network on EKS. See also dnsPolicy
237# When hostNetwork is enabled, you probably want to set this to ClusterFirstWithHostNet
238# dnsPolicy: ClusterFirstWithHostNet
240# Deployment strategy type
247 # Specifies if PodDisruptionBudget should be enabled
248 # When enabled, minAvailable or maxUnavailable should also be defined.
252 # See https://kubernetes.io/docs/tasks/run-application/configure-pdb/#unhealthy-pod-eviction-policy for possible values
253 unhealthyPodEvictionPolicy:
256 caCertDuration: 43800h0m0s
257 certDuration: 8760h0m0s
258 # -- Set the revisionHistoryLimit on the Certificates. See
259 # https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.CertificateSpec
261 caCertRevisionHistoryLimit:
262 certRevisionHistoryLimit:
263## Extra manifests to deploy as an array
269# name: prometheus-extra
273# Optional: set revisionHistoryLimit for the Deployment
274revisionHistoryLimit: 10