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:2bb32d86e7cd32c33cda3f6e661f97abb95b52d0dbc9c6278aa57d4789c822b8
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# If set to true, this will deploy kube-state-metrics as a StatefulSet and the data
30# will be automatically sharded across <.Values.replicas> pods using the built-in
31# autodiscovery feature: https://github.com/kubernetes/kube-state-metrics#automated-sharding
32# This is an experimental feature and there are no stability guarantees.
36# Change the deployment strategy when autosharding is disabled.
37# ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
38# The default is "RollingUpdate" as per Kubernetes defaults.
39# 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.
40# updateStrategy: Recreate
42# Number of old history to retain to allow rollback
43# Default Kubernetes value is set to 10
44revisionHistoryLimit: 10
45# List of additional cli arguments to configure kube-state-metrics
46# for example: --enable-gzip-encoding, --log-file, etc.
47# all the possible args can be found here: https://github.com/kubernetes/kube-state-metrics/blob/main/docs/developer/cli-arguments.md
49# If false then the user will opt out of automounting API credentials.
50automountServiceAccountToken: true
53 # Default to clusterIP for backward compatibility
57 ipFamilies: ["IPv6", "IPv4"]
58 ipFamilyPolicy: "PreferDualStack"
61 # Only allow access to the loadBalancerIP from these IPs
62 loadBalancerSourceRanges: []
65## Additional labels to add to all resources
67# app: kube-state-metrics
69## Override selector labels
71## set to true to add the release label so scraping of the servicemonitor with kube-prometheus-stack works out of the box
74## Use the host's user namespace for deployment.
75## ref: https://kubernetes.io/docs/tasks/configure-pod-container/user-namespaces/
78 # If true, create & use RBAC resources
80 # Set to a rolename to use existing role - skipping role creating - but still doing serviceaccount and rolebinding to it, rolename set here.
81 # useExistingRole: your-existing-role
83 # 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)
85 # Add permissions for CustomResources' apiGroups in Role/ClusterRole. Should be used in conjunction with Custom Resource State Metrics configuration
87 # - apiGroups: ["monitoring.coreos.com"]
88 # resources: ["prometheuses"]
89 # verbs: ["list", "watch"]
91# Enable kube-state-metrics native request authn/authz on the metrics endpoints
92# via the `--auth-filter` flag, as an alternative to running kube-rbac-proxy.
93# When enabled, the `create` permissions on `tokenreviews` and
94# `subjectaccessreviews` required by the filter are added to the (Cluster)Role
95# automatically. Scrapers must authenticate; see the chart README and the
96# kube-state-metrics docs on protecting metrics endpoints.
99# Configure kube-rbac-proxy. When enabled, creates one kube-rbac-proxy container per exposed HTTP endpoint (metrics and telemetry if enabled).
100# The requests are served through the same service but requests are then HTTPS.
105 repository: scratch-images/test-tmp/kube-rbac-proxy
107 sha: sha256:fcfadb3b20b8846f7dd405c269506dd97da20c9a0c23a103191f10fc7d9bb42c
108 pullPolicy: IfNotPresent
109 # This set --ignore-paths=/livez,/readyz to kubeRBACProxy container args
110 # to allow the pod probes working properly with kubeRBACProxy enabled.
111 ignoreProbePaths: true
112 # List of additional cli arguments to configure kube-rbac-prxy
113 # for example: --tls-cipher-suites, --log-file, etc.
114 # all the possible args can be found here: https://github.com/brancz/kube-rbac-proxy#usage
116 ## Specify security settings for a Container
117 ## Allows overrides and additional options compared to (Pod) securityContext
118 ## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
119 containerSecurityContext:
120 readOnlyRootFilesystem: true
121 allowPrivilegeEscalation: false
125 # Configure specific upstream port for kube-state-metrics container
127 # Configure specific proxy endpoints port
128 # This port is for healthz on readinessProbe kube-rbac-proxy-http container
129 proxyEndpointsPort: 8888
131 # We usually recommend not to specify default resources and to leave this as a conscious
132 # choice for the user. This also increases chances charts run on environments with little
133 # resources, such as Minikube. If you do want to specify resources, uncomment the following
134 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
142 ## volumeMounts enables mounting custom volumes in rbac-proxy containers
143 ## Useful for TLS certificates and keys
145 # - mountPath: /etc/tls
146 # name: kube-rbac-proxy-tls
149 # Specifies whether a ServiceAccount should be created, require rbac true
151 # The name of the ServiceAccount to use.
152 # If not set and create is true, a name is generated using the fullname template
154 # Reference to one or more secrets to be used when pulling images
155 # ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
157 # ServiceAccount annotations.
158 # Use case: AWS EKS IAM roles for service accounts
159 # ref: https://docs.aws.amazon.com/eks/latest/userguide/specify-service-account-role.html
161 # If false then the user will opt out of automounting API credentials.
162 automountServiceAccountToken: true
163# Additional Environment variables
168# resource: limits.cpu
176 namespaceSelector: []
180 ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
183 ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
186 ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
189 ## 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.
191 labelNameLengthLimit: 0
192 ## 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.
194 labelValueLengthLimit: 0
196 ## kube-state-metrics endpoint
201 ## Whether to enable HTTP2 for servicemonitor
204 metricRelabelings: []
207 ## File to read bearer token for scraping targets
209 ## Secret to mount to read bearer token for scraping targets. The secret needs
210 ## to be in the same namespace as the service monitor and accessible by the
211 ## Prometheus Operator
212 bearerTokenSecret: {}
216 ## selfMonitor 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 ## Create a scrapeConfig resource for scraping the kube-state-metrics service. Use this instead of serviceMonitor
237 ## to have more instances of kube-state-metrics safety.
239 ## To avoid duplicate metrics, first disable the serviceMonitor creation via prometheus.monitor.enabled=false
243 jobName: kube-state-metrics
244 ## SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
247 ## TargetLimit defines a limit on the number of scraped targets that will be accepted.
250 ## Per-scrape limit on number of labels that will be accepted for a sample. Only valid in Prometheus versions 2.27.0 and newer.
253 ## 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.
255 labelNameLengthLimit: 0
256 ## 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.
258 labelValueLengthLimit: 0
259 ## StaticConfigLabels defines the labels to be used in the Prometheus static configuration for scraping.
260 staticConfigLabels: {}
264 ## Whether to enable HTTP2 for scrapeconfig
267 metricRelabelings: []
271## Configure network policy for kube-state-metrics
280 # app.kubernetes.io/name: kube-state-metrics
289## Specify security settings for a Container
290## Allows overrides and additional options compared to (Pod) securityContext
291## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
292containerSecurityContext:
293 readOnlyRootFilesystem: true
294 allowPrivilegeEscalation: false
298## Node labels for pod assignment
299## Ref: https://kubernetes.io/docs/user-guide/node-selection/
301## Affinity settings for pod assignment
302## Can be defined as either a dict or string. String is useful for `tpl` templating.
303## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
307# requiredDuringSchedulingIgnoredDuringExecution:
310# {{- include "kube-state-metrics.selectorLabels" . | indent 10 }}
311# topologyKey: kubernetes.io/hostname
313## Tolerations for pod assignment
314## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
316## Topology spread constraints for pod assignment
317## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
318topologySpreadConstraints: []
319# Annotations to be added to the deployment/statefulset
321# Labels to be added to the deployment/statefulset
323# Annotations to be added to the pod
325# Labels to be added to the pod
327## Assign a PriorityClassName to pods if set
328# priorityClassName: ""
330# Ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
331podDisruptionBudget: {}
332# Comma-separated list of metrics to be exposed.
333# This list comprises of exact metric names and/or regex patterns.
334# The allowlist and denylist are mutually exclusive.
336# Comma-separated list of metrics not to be enabled.
337# This list comprises of exact metric names and/or regex patterns.
338# The allowlist and denylist are mutually exclusive.
340# Comma-separated list of additional Kubernetes label keys that will be used in the resource's
341# labels metric. By default the metric contains only name and namespace labels.
342# To include additional labels, provide a list of resource names in their plural form and Kubernetes
343# label keys you would like to allow for them (Example: '=namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...)'.
344# A single '*' can be provided per resource instead to allow any labels, but that has
345# severe performance implications (Example: '=pods=[*]').
346metricLabelsAllowlist: []
347# - namespaces=[k8s-label-1,k8s-label-n]
349# Comma-separated list of Kubernetes annotations keys that will be used in the resource'
350# labels metric. By default the metric contains only name and namespace labels.
351# To include additional annotations provide a list of resource names in their plural form and Kubernetes
352# annotation keys you would like to allow for them (Example: '=namespaces=[kubernetes.io/team,...],pods=[kubernetes.io/team],...)'.
353# A single '*' can be provided per resource instead to allow any annotations, but that has
354# severe performance implications (Example: '=pods=[*]').
355metricAnnotationsAllowList: []
356# - pods=[k8s-annotation-1,k8s-annotation-n]
358# Available collectors for kube-state-metrics.
359# By default, all available resources are enabled, comment out to disable.
361 - certificatesigningrequests
367 - horizontalpodautoscalers
372 - mutatingwebhookconfigurations
376 - persistentvolumeclaims
378 - poddisruptionbudgets
381 - replicationcontrollers
387 - validatingwebhookconfigurations
390 # - clusterrolebindings
395# Enabling kubeconfig will pass the --kubeconfig argument to the container
398 # base64 encoded kube-config file
400# Enabling support for customResourceState, will create a configMap including your config that will be read from kube-state-metrics
402 # Whether to enable support for CustomResourceStateMetrics.
404 # Whether to create the ConfigMap that holds the config.
406 # Name of the ConfigMap that holds the config. If empty, name will be generated based on the release name.
408 # ConfigMap key that holds the config.
410 # Definition of the CustomResourceStateMetrics. Add (Cluster)Role permissions to list/watch the resources defined in the config to rbac.extraRules.
412# Enable only the release namespace for collecting resources. By default all namespaces are collected.
413# If releaseNamespace and namespaces are both set a merged list will be collected.
414releaseNamespace: false
415# Comma-separated list(string) or yaml list of namespaces to be enabled for collecting resources. By default all namespaces are collected.
417# Comma-separated list of namespaces not to be enabled. If namespaces and namespaces-denylist are both set,
418# only namespaces that are excluded in namespaces-denylist will be used.
419namespacesDenylist: ""
420## Override the deployment namespace
424# We usually recommend not to specify default resources and to leave this as a conscious
425# choice for the user. This also increases chances charts run on environments with little
426# resources, such as Minikube. If you do want to specify resources, uncomment the following
427# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
435# Enable self metrics configuration for service and Service Monitor
436# Default values for telemetry configuration can be overridden
437# If you set telemetryNodePort, you must also set service.type to NodePort
440 # telemetryHost: 0.0.0.0
441 # telemetryPort: 8081
442 # telemetryNodePort: 0
443# Enable vertical pod autoscaler support for kube-state-metrics
444verticalPodAutoscaler:
446 # Recommender responsible for generating recommendation for the object.
447 # List should be empty (then the default recommender will generate the recommendation)
448 # or contain exactly one recommender.
450 # - name: custom-recommender-performance
452 # List of resources that the vertical pod autoscaler can control. Defaults to cpu and memory
453 controlledResources: []
454 # Specifies which resource values should be controlled: RequestsOnly or RequestsAndLimits.
455 # controlledValues: RequestsAndLimits
457 # Define the max allowed resources for the pod
461 # Define the min allowed resources for the pod
466# Specifies minimal number of replicas which need to be alive for VPA Updater to attempt pod eviction
468# Specifies whether recommended updates are applied when a Pod is started and whether recommended updates
469# are applied during the life of a Pod. Possible values are "Off", "Initial", "Recreate", and "Auto".
472# volumeMounts are used to add custom volume mounts to deployment.
475# - mountPath: /etc/config
478# volumes are used to add custom volumes to deployment
485# Extra manifests to deploy as an array
491# name: prometheus-extra
495## Containers allows injecting additional containers.
498# image: kiwigrid/k8s-sidecar:latest
500## InitContainers allows injecting additional initContainers.
503# image: kiwigrid/k8s-sidecar:latest
505## dnsPolicy allows to change the default DNS configuration for the pod
506## Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
507dnsPolicy: ClusterFirst
508## dnsConfig allows setting up specific DNS configuration for the pod
509## Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config
511## Settings for startup, liveness and readiness probes
512## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
515## Startup probe can optionally be enabled.
523 initialDelaySeconds: 0
534 initialDelaySeconds: 5
545 initialDelaySeconds: 5