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: 0.12.0-r45@sha256:2b3dba0ec7a42f623592c0fb67d2d0c84cfb1108ed49c0339e87054218d2fc7f
11 pullPolicy: IfNotPresent
15metricsRelistInterval: 1m
19## Set the schedulerName for prometheus-adapter pods
21## Set the runtimeClassName for prometheus-adapter pods
23## Override the release namespace (for multi-namespace deployments in combined charts)
25## Additional annotations to add to all resources
29## Additional labels to add to all resources
31# monitoring: prometheus-adapter
33# Url to access prometheus
36 url: http://prometheus.default.svc
40# k8s 1.21 needs fsGroup to be set for non root deployments
41# ref: https://github.com/kubernetes/kubernetes/issues/70679
44# SecurityContext of the container
45# ref. https://kubernetes.io/docs/tasks/configure-pod-container/security-context
47 allowPrivilegeEscalation: false
50 readOnlyRootFilesystem: true
56 # Specifies whether RBAC resources should be created
58 # Specifies if a Cluster Role should be used for the Auth Reader
59 useAuthReaderClusterRole: false
64# If false then the user will opt out of automounting API credentials.
65automountServiceAccountToken: true
67 # Specifies whether a service account should be created
69 # The name of the service account to use.
70 # If not set and create is true, a name is generated using the fullname template
72 # ServiceAccount annotations.
73 # Use case: AWS EKS IAM roles for service accounts
74 # ref: https://docs.aws.amazon.com/eks/latest/userguide/specify-service-account-role.html
76 # If false then the user will opt out of automounting API credentials.
77 automountServiceAccountToken: true
78# Custom DNS configuration to be added to prometheus-adapter pods
83# - ns1.svc.cluster-domain.example
84# - my.dns.search.suffix
98# Configure liveness probe
99# https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#Probe
105 initialDelaySeconds: 30
107# Configure readiness probe
113 initialDelaySeconds: 30
115# Configure startup probe
116# Use if prometheus-adapter takes a long time to finish startup e.g. polling a lot of API versions in cluster
121 # - seriesQuery: '{__name__=~"^some_metric_count$"}'
123 # template: <<.Resource>>
126 # as: "my_custom_metric"
127 # metricsQuery: sum(<<.Series>>{<<.LabelMatchers>>}) by (<<.GroupBy>>)
129 # Mounts a configMap with pre-generated rules for use. Overrides the
130 # default, custom, external and resource entries
136 # sum by (<<.GroupBy>>) (
137 # rate(container_cpu_usage_seconds_total{container!="",<<.LabelMatchers>>}[3m])
140 # sum by (<<.GroupBy>>) (
141 # rate(node_cpu_seconds_total{mode!="idle",mode!="iowait",mode!="steal",<<.LabelMatchers>>}[3m])
148 # resource: namespace
151 # containerLabel: container
154 # sum by (<<.GroupBy>>) (
155 # avg_over_time(container_memory_working_set_bytes{container!="",<<.LabelMatchers>>}[3m])
158 # sum by (<<.GroupBy>>) (
159 # avg_over_time(node_memory_MemTotal_bytes{<<.LabelMatchers>>}[3m])
161 # avg_over_time(node_memory_MemAvailable_bytes{<<.LabelMatchers>>}[3m])
168 # resource: namespace
171 # containerLabel: container
180 ipFamilies: ["IPv6", "IPv4"]
181 ipFamilyPolicy: "PreferDualStack"
185 # Public CA file that signed the APIService
187 # Private key of the APIService
189 # Public key of the APIService
190# Set environment variables from secrets, configmaps or by setting them as name/value
203# - --tls-private-key-file=/etc/tls/tls.key
204# - --tls-cert-file=/etc/tls/tls.crt
206# Additional containers to add to the pod
210# - name: example-name
213# type: DirectoryOrCreate
216# path: /etc/ssl/certs/ca-bundle.crt
219# Any extra volume mounts
221# - name: example-name
222# mountPath: /path/in/container
224# mountPath: /etc/ssl/certs/ca-certificates.crt
228# Labels added to the pod
230# Annotations added to the pod
232# Annotations added to the deployment
233deploymentAnnotations: {}
235 # Specifies if prometheus-adapter should be started in hostNetwork mode.
237 # You would require this enabled if you use alternate overlay networking for pods and
238 # API server unable to communicate with metrics-server. As an example, this is required
239 # if you use Weave network on EKS. See also dnsPolicy
241# When hostNetwork is enabled, you probably want to set this to ClusterFirstWithHostNet
242# dnsPolicy: ClusterFirstWithHostNet
244# Deployment strategy type
251 # Specifies if PodDisruptionBudget should be enabled
252 # When enabled, minAvailable or maxUnavailable should also be defined.
256 # See https://kubernetes.io/docs/tasks/run-application/configure-pdb/#unhealthy-pod-eviction-policy for possible values
257 unhealthyPodEvictionPolicy:
260 caCertDuration: 43800h0m0s
261 certDuration: 8760h0m0s
262 # -- Set the revisionHistoryLimit on the Certificates. See
263 # https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.CertificateSpec
265 caCertRevisionHistoryLimit:
266 certRevisionHistoryLimit:
267## Extra manifests to deploy as an array
273# name: prometheus-extra
277# Optional: set revisionHistoryLimit for the Deployment
278revisionHistoryLimit: 10