1# Default values for kube-state-metrics.
5 repository: scratch-images/test-tmp/kube-state-metrics
6 # If unset use v + .Charts.appVersion
8 sha: sha256:132f755f22a96d13b2e7f8f0d7747e4423d8ef77dbb6d9e23a5c5e2ba0cf5af9
9 pullPolicy: IfNotPresent
11# - name: "image-pull-secret"
14 # To help compatibility with other charts which use global.imagePullSecrets.
15 # Allow either an array of {name: pullSecret} maps (k8s-style), or an array of strings (more common helm-style).
27 # Allow parent charts to override registry hostname
29# Provide a name in place of kube-state-metrics for `app.kubernetes.io/name` labels.
31# Provide a name to substitute for the full names of resources.
33# If set to true, this will deploy kube-state-metrics as a StatefulSet and the data
34# will be automatically sharded across <.Values.replicas> pods using the built-in
35# autodiscovery feature: https://github.com/kubernetes/kube-state-metrics#automated-sharding
36# This is an experimental feature and there are no stability guarantees.
40# Change the deployment strategy when autosharding is disabled.
41# ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
42# The default is "RollingUpdate" as per Kubernetes defaults.
43# During a release, 'RollingUpdate' can lead to two running instances for a short period of time while 'Recreate' can create a small gap in data.
44# updateStrategy: Recreate
46# Number of old history to retain to allow rollback
47# Default Kubernetes value is set to 10
48revisionHistoryLimit: 10
49# List of additional cli arguments to configure kube-state-metrics
50# for example: --enable-gzip-encoding, --log-file, etc.
51# all the possible args can be found here: https://github.com/kubernetes/kube-state-metrics/blob/main/docs/developer/cli-arguments.md
53# If false then the user will opt out of automounting API credentials.
54automountServiceAccountToken: true
57 # Default to clusterIP for backward compatibility
61 ipFamilies: ["IPv6", "IPv4"]
62 ipFamilyPolicy: "PreferDualStack"
65 # Only allow access to the loadBalancerIP from these IPs
66 loadBalancerSourceRanges: []
69## Additional labels to add to all resources
71# app: kube-state-metrics
73## Override selector labels
75## set to true to add the release label so scraping of the servicemonitor with kube-prometheus-stack works out of the box
78## Use the host's user namespace for deployment.
79## ref: https://kubernetes.io/docs/tasks/configure-pod-container/user-namespaces/
82 # If true, create & use RBAC resources
84 # Set to false only when the customresourcedefinitions list/watch permission is
85 # granted to the ServiceAccount by other means (e.g. a cluster-scoped ClusterRole
86 # managed outside this chart). kube-state-metrics always needs it for
87 # customResourceState; this only controls whether the chart creates the rule.
89 createClusterRoleRules: true
90 # Set to a rolename to use existing role - skipping role creating - but still doing serviceaccount and rolebinding to it, rolename set here.
91 # useExistingRole: your-existing-role
93 # If set to false - Run without Cluteradmin privs needed - ONLY works if namespace is also set (if useExistingRole is set this name is used as ClusterRole or Role to bind to)
95 # Add permissions for CustomResources' apiGroups in Role/ClusterRole. Should be used in conjunction with Custom Resource State Metrics configuration
97 # - apiGroups: ["monitoring.coreos.com"]
98 # resources: ["prometheuses"]
99 # verbs: ["list", "watch"]
101 # Aggregate ClusterRoles using label selectors (only applies when useClusterRole: true).
102 # When set, this ClusterRole aggregates matching ClusterRoles instead of defining rules
103 # directly, so the built-in collector rules above are NOT included. Make sure the
104 # aggregated ClusterRoles grant the permissions kube-state-metrics needs.
105 # ref: https://kubernetes.io/docs/reference/access-authn-authz/rbac/#aggregated-clusterroles
107 # clusterRoleSelectors:
109 # rbac.example.com/aggregate-to-monitoring: "true"
110 clusterRoleSelectors: []
111# Enable kube-state-metrics native request authn/authz on the metrics endpoints
112# via the `--auth-filter` flag, as an alternative to running kube-rbac-proxy.
113# When enabled, the `create` permissions on `tokenreviews` and
114# `subjectaccessreviews` required by the filter are added to the (Cluster)Role
115# automatically. Scrapers must authenticate; see the chart README and the
116# kube-state-metrics docs on protecting metrics endpoints.
119# Configure kube-rbac-proxy. When enabled, creates one kube-rbac-proxy container per exposed HTTP endpoint (metrics and telemetry if enabled).
120# The requests are served through the same service but requests are then HTTPS.
125 repository: scratch-images/test-tmp/kube-rbac-proxy
127 sha: sha256:95092d3f845583b6570c29f37c4b08d207a24ab89171e54e885494d79bf05b3b
128 pullPolicy: IfNotPresent
129 # This set --ignore-paths=/livez,/readyz to kubeRBACProxy container args
130 # to allow the pod probes working properly with kubeRBACProxy enabled.
131 ignoreProbePaths: true
132 # List of additional cli arguments to configure kube-rbac-prxy
133 # for example: --tls-cipher-suites, --log-file, etc.
134 # all the possible args can be found here: https://github.com/brancz/kube-rbac-proxy#usage
136 ## Specify security settings for a Container
137 ## Allows overrides and additional options compared to (Pod) securityContext
138 ## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
139 containerSecurityContext:
140 readOnlyRootFilesystem: true
141 allowPrivilegeEscalation: false
145 # Configure specific upstream port for kube-state-metrics container
147 # Configure specific proxy endpoints port
148 # This port is for healthz on readinessProbe kube-rbac-proxy-http container
149 proxyEndpointsPort: 8888
151 # We usually recommend not to specify default resources and to leave this as a conscious
152 # choice for the user. This also increases chances charts run on environments with little
153 # resources, such as Minikube. If you do want to specify resources, uncomment the following
154 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
162 ## volumeMounts enables mounting custom volumes in rbac-proxy containers
163 ## Useful for TLS certificates and keys
165 # - mountPath: /etc/tls
166 # name: kube-rbac-proxy-tls
169 # Specifies whether a ServiceAccount should be created, require rbac true
171 # The name of the ServiceAccount to use.
172 # If not set and create is true, a name is generated using the fullname template
174 # Reference to one or more secrets to be used when pulling images
175 # ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
177 # ServiceAccount annotations.
178 # Use case: AWS EKS IAM roles for service accounts
179 # ref: https://docs.aws.amazon.com/eks/latest/userguide/specify-service-account-role.html
181 # If false then the user will opt out of automounting API credentials.
182 automountServiceAccountToken: true
183# Additional Environment variables
188# resource: limits.cpu
196 namespaceSelector: []
200 ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
203 ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
206 ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
209 ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
211 labelNameLengthLimit: 0
212 ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
214 labelValueLengthLimit: 0
216 ## kube-state-metrics endpoint
221 ## Whether to enable HTTP2 for servicemonitor
224 metricRelabelings: []
227 ## File to read bearer token for scraping targets
229 ## Secret to mount to read bearer token for scraping targets. The secret needs
230 ## to be in the same namespace as the service monitor and accessible by the
231 ## Prometheus Operator
232 bearerTokenSecret: {}
236 ## selfMonitor endpoint
241 ## Whether to enable HTTP2 for servicemonitor
244 metricRelabelings: []
247 ## File to read bearer token for scraping targets
249 ## Secret to mount to read bearer token for scraping targets. The secret needs
250 ## to be in the same namespace as the service monitor and accessible by the
251 ## Prometheus Operator
252 bearerTokenSecret: {}
256 ## Create a scrapeConfig resource for scraping the kube-state-metrics service. Use this instead of serviceMonitor
257 ## to have more instances of kube-state-metrics safety.
259 ## To avoid duplicate metrics, first disable the serviceMonitor creation via prometheus.monitor.enabled=false
263 jobName: kube-state-metrics
264 ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
267 ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
270 ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
273 ## Per-scrape limit on length of labels name that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
275 labelNameLengthLimit: 0
276 ## Per-scrape limit on length of labels value that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
278 labelValueLengthLimit: 0
279 ## StaticConfigLabels defines the labels to be used in the Prometheus static configuration for scraping.
280 staticConfigLabels: {}
284 ## Whether to enable HTTP2 for scrapeconfig
287 metricRelabelings: []
291## Configure network policy for kube-state-metrics
300 # app.kubernetes.io/name: kube-state-metrics
309## Specify security settings for a Container
310## Allows overrides and additional options compared to (Pod) securityContext
311## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
312containerSecurityContext:
313 readOnlyRootFilesystem: true
314 allowPrivilegeEscalation: false
318## Node labels for pod assignment
319## Ref: https://kubernetes.io/docs/user-guide/node-selection/
321## Affinity settings for pod assignment
322## Can be defined as either a dict or string. String is useful for `tpl` templating.
323## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
327# requiredDuringSchedulingIgnoredDuringExecution:
330# {{- include "kube-state-metrics.selectorLabels" . | indent 10 }}
331# topologyKey: kubernetes.io/hostname
333## Tolerations for pod assignment
334## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
336## Topology spread constraints for pod assignment
337## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
338topologySpreadConstraints: []
339# Annotations to be added to the deployment/statefulset
341# Labels to be added to the deployment/statefulset
343# Annotations to be added to the pod
345# Labels to be added to the pod
347## Assign a PriorityClassName to pods if set
348# priorityClassName: ""
350# Ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
351podDisruptionBudget: {}
352# Comma-separated list of metrics to be exposed.
353# This list comprises of exact metric names and/or regex patterns.
354# The allowlist and denylist are mutually exclusive.
356# Comma-separated list of metrics not to be enabled.
357# This list comprises of exact metric names and/or regex patterns.
358# The allowlist and denylist are mutually exclusive.
360# Comma-separated list of additional Kubernetes label keys that will be used in the resource's
361# labels metric. By default the metric contains only name and namespace labels.
362# To include additional labels, provide a list of resource names in their plural form and Kubernetes
363# label keys you would like to allow for them (Example: '=namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...)'.
364# A single '*' can be provided per resource instead to allow any labels, but that has
365# severe performance implications (Example: '=pods=[*]').
366metricLabelsAllowlist: []
367# - namespaces=[k8s-label-1,k8s-label-n]
369# Comma-separated list of Kubernetes annotations keys that will be used in the resource'
370# labels metric. By default the metric contains only name and namespace labels.
371# To include additional annotations provide a list of resource names in their plural form and Kubernetes
372# annotation keys you would like to allow for them (Example: '=namespaces=[kubernetes.io/team,...],pods=[kubernetes.io/team],...)'.
373# A single '*' can be provided per resource instead to allow any annotations, but that has
374# severe performance implications (Example: '=pods=[*]').
375metricAnnotationsAllowList: []
376# - pods=[k8s-annotation-1,k8s-annotation-n]
378# Collectors enabled by default. Comment out entries to disable them.
379# Additional opt-in collectors are listed below.
381 - certificatesigningrequests
387 - horizontalpodautoscalers
392 - mutatingwebhookconfigurations
396 - persistentvolumeclaims
398 - poddisruptionbudgets
401 - replicationcontrollers
407 - validatingwebhookconfigurations
410 # - clusterrolebindings
415 # Admission policy collectors require kube-state-metrics v2.20.0 or later.
416 # These validating admission policy collectors require Kubernetes v1.30+.
417 # - validatingadmissionpolicies
418 # - validatingadmissionpolicybindings
419 # These mutating admission policy collectors require Kubernetes v1.36+.
420 # - mutatingadmissionpolicies
421 # - mutatingadmissionpolicybindings
422# collectorsExclude / collectorsExtra tweak the default `collectors` list above
423# without redefining it. Both operate on `.Values.collectors` (not on KSM's
424# built-in defaults): with `collectors: []` there is nothing to layer onto and
425# `collectorsExtra` becomes the entire --resources list.
426# collectorsExclude removes entries from the list:
429# collectorsExtra appends entries after exclusion (deduplicated):
433# Enabling kubeconfig will pass the --kubeconfig argument to the container
436 # base64 encoded kube-config file
438# Enabling support for customResourceState, will create a configMap including your config that will be read from kube-state-metrics
440 # Whether to enable support for CustomResourceStateMetrics.
442 # Whether to create the ConfigMap that holds the config.
444 # Name of the ConfigMap that holds the config. If empty, name will be generated based on the release name.
446 # ConfigMap key that holds the config.
448 # Definition of the CustomResourceStateMetrics. Add (Cluster)Role permissions to list/watch the resources defined in the config to rbac.extraRules.
450# Enable only the release namespace for collecting resources. By default all namespaces are collected.
451# If releaseNamespace and namespaces are both set a merged list will be collected.
452releaseNamespace: false
453# Comma-separated list(string) or yaml list of namespaces to be enabled for collecting resources. By default all namespaces are collected.
455# Comma-separated list of namespaces not to be enabled. If namespaces and namespaces-denylist are both set,
456# only namespaces that are excluded in namespaces-denylist will be used.
457namespacesDenylist: ""
458## Override the deployment namespace
462# We usually recommend not to specify default resources and to leave this as a conscious
463# choice for the user. This also increases chances charts run on environments with little
464# resources, such as Minikube. If you do want to specify resources, uncomment the following
465# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
473# Enable self metrics configuration for service and Service Monitor
474# Default values for telemetry configuration can be overridden
475# If you set telemetryNodePort, you must also set service.type to NodePort
478 # telemetryHost: 0.0.0.0
479 # telemetryPort: 8081
480 # telemetryNodePort: 0
481# Enable vertical pod autoscaler support for kube-state-metrics
482verticalPodAutoscaler:
484 # Recommender responsible for generating recommendation for the object.
485 # List should be empty (then the default recommender will generate the recommendation)
486 # or contain exactly one recommender.
488 # - name: custom-recommender-performance
490 # List of resources that the vertical pod autoscaler can control. Defaults to cpu and memory
491 controlledResources: []
492 # Specifies which resource values should be controlled: RequestsOnly or RequestsAndLimits.
493 # controlledValues: RequestsAndLimits
495 # Define the max allowed resources for the pod
499 # Define the min allowed resources for the pod
504# Specifies minimal number of replicas which need to be alive for VPA Updater to attempt pod eviction
506# Specifies whether recommended updates are applied when a Pod is started and whether recommended updates
507# are applied during the life of a Pod. Possible values are "Off", "Initial", "Recreate", and "Auto".
510# volumeMounts are used to add custom volume mounts to deployment.
513# - mountPath: /etc/config
516# volumes are used to add custom volumes to deployment
523# Extra manifests to deploy as an array
529# name: prometheus-extra
533## Containers allows injecting additional containers.
536# image: kiwigrid/k8s-sidecar:latest
538## InitContainers allows injecting additional initContainers.
541# image: kiwigrid/k8s-sidecar:latest
543## dnsPolicy allows to change the default DNS configuration for the pod
544## Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
545dnsPolicy: ClusterFirst
546## dnsConfig allows setting up specific DNS configuration for the pod
547## Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config
549## Settings for startup, liveness and readiness probes
550## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
553## Startup probe can optionally be enabled.
561 initialDelaySeconds: 0
572 initialDelaySeconds: 5
583 initialDelaySeconds: 5