1# This file has been modified by Chainguard, Inc.
3# Copyright Chainguard, Inc. All Rights Reserved.
4# Chainguard, Inc. modifications are subject to the license
5# available at: https://www.chainguard.dev/legal/software-license-agreement
7# Copyright Broadcom, Inc. All Rights Reserved.
8# SPDX-License-Identifier: APACHE-2.0
10## @section Global parameters
11## Global Docker image parameters
12## Please, note that this will override the image parameters, including dependencies, configured to use the global value
13## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
15## @param global.imageRegistry Global Docker image registry
16## @param global.useImageTags Pull every image by tag and ignore all image digests, including digests set in values. Use this when your registry mirror does not have the chart's default image digests.
17## @param global.imagePullSecrets Global Docker registry secret names as an array
18## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
19## @param global.storageClass DEPRECATED: use global.defaultStorageClass instead
26 ## - myRegistryKeySecretName
29 defaultStorageClass: ""
31 ## Security parameters
34 ## @param global.security.allowInsecureImages Allows skipping image verification
35 allowInsecureImages: false
36 ## Compatibility adaptations for Kubernetes platforms
39 ## Compatibility adaptations for Openshift
42 ## @param global.compatibility.openshift.adaptSecurityContext Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation)
44 adaptSecurityContext: auto
46## @section Common parameters
48## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
51## @param nameOverride String to partially override common.names.fullname template (will maintain the release name)
54## @param fullnameOverride String to fully override `common.names.fullname` template with a string
57## @param namespaceOverride String to fully override common.names.namespace
60## @param commonAnnotations Annotations to add to all deployed objects
63## @param commonLabels Labels to add to all deployed objects
66## @param extraDeploy Array of extra objects to deploy with the release
69## @param clusterDomain Kubernetes cluster domain name
71clusterDomain: cluster.local
72## Enable diagnostic mode in the deployment(s)/statefulset(s)
75 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
78 ## @param diagnosticMode.command Command to override all containers in the the deployment(s)/statefulset(s)
82 ## @param diagnosticMode.args Args to override all containers in the the deployment(s)/statefulset(s)
86## @section Node Exporter parameters
88## @param resourceType Specify how to deploy Node Exporter (allowed values: `daemonset` and `deployment`)
90resourceType: daemonset
91## @param replicaCount Number of replicas to deploy (when `resourceType` is `deployment`)
94## @param isolatedDeployment Specify whether to deploy the Node Exporter in an isolated deployment without access to host network, host PID and /proc and /sys of the host. (when `resourceType` is `deployment`)
96isolatedDeployment: true
97## @param automountServiceAccountToken Mount Service Account token in pod
99automountServiceAccountToken: false
100## @param hostAliases Deployment pod host aliases
101## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
105## Ref: https://kubernetes.io/docs/admin/authorization/rbac/
108 ## @param rbac.create Whether to create and use RBAC resources or not
111 ## @param rbac.pspEnabled Whether to create a PodSecurityPolicy and bound it with RBAC. WARNING: PodSecurityPolicy is deprecated in Kubernetes v1.21 or later, unavailable in v1.25 or later
114## Service account for Node Exporter to use.
115## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
116## @param serviceAccount.create Specifies whether a ServiceAccount should be created
117## @param serviceAccount.name Name of the service account to use. If not set and create is true, a name is generated using the fullname template.
118## @param serviceAccount.automountServiceAccountToken Automount service account token for the server service account
119## @param serviceAccount.annotations Annotations for service account. Evaluated as a template. Only used if `create` is `true`.
124 automountServiceAccountToken: false
126## Iamguarded Node Exporter image version
127## ref: https://hub.docker.com/r/iamguarded/node-exporter/tags/
128## @param image.registry [default: REGISTRY_NAME] Node Exporter image registry
129## @param image.repository [default: REPOSITORY_NAME/node-exporter] Node Exporter image repository
130## @skip image.tag Node Exporter image tag (immutable tags are recommended)
131## @param image.digest Node Exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
132## @param image.pullPolicy Node Exporter image pull policy
133## @param image.pullSecrets Specify docker-registry secret names as an array
137 repository: chainguard-private/prometheus-node-exporter-iamguarded
139 digest: sha256:6c1ad7ba302ec099ab1504d32fbb406497dd44bab1efdf19c73b70a705de9868
140 ## Specify a imagePullPolicy
141 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
143 pullPolicy: IfNotPresent
144 ## Optionally specify an array of imagePullSecrets.
145 ## Secrets must be manually created in the namespace.
146 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
149 ## - myRegistryKeySecretName
152## @param containerPorts.metrics Node Exporter container port
156## @param sidecars Add additional sidecar containers to the Node exporter pod(s)
159## - name: your-image-name
161## imagePullPolicy: Always
164## containerPort: 1234
167## @param initContainers Add additional init containers to the Node exporter pod(s)
168## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
171## - name: your-image-name
173## imagePullPolicy: Always
174## command: ['sh', '-c', 'echo "hello world"']
177## Pod Disruption Budget configuration
178## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
179## @param pdb.create Enable/disable a Pod Disruption Budget creation
180## @param pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
181## @param pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `pdb.minAvailable` and `pdb.maxUnavailable` are empty.
187## @param extraArgs Additional command line arguments to pass to node-exporter
189## collector.filesystem.ignored-mount-points: "^/(dev|proc|sys|var/lib/docker/.+)($|/)"
190## collector.filesystem.ignored-fs-types: "^(autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs)$"
193## @param command Override default container command (useful when using custom images)
196## @param args Override default container args (useful when using custom images)
199## @param lifecycleHooks for the Node exporter container(s) to automate configuration before or after startup
202## @param extraEnvVars Array with extra environment variables to add to Node exporter container
209## @param extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Node exporter container
212## @param extraEnvVarsSecret Name of existing Secret containing extra env vars for Node exporter container
214extraEnvVarsSecret: ""
215## @param extraVolumes Additional volumes to the node-exporter pods
217## - name: copy-portal-skins
221## @param extraVolumeMounts Additional volumeMounts to the node-exporter container
223## - name: copy-portal-skins
224## mountPath: /var/lib/lemonldap-ng/portal/skins
227## Configure Pods Security Context
228## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
229## @param podSecurityContext.enabled Enabled Node exporter pods' Security Context
230## @param podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
231## @param podSecurityContext.sysctls Set kernel settings using the sysctl interface
232## @param podSecurityContext.supplementalGroups Set filesystem extra groups
233## @param podSecurityContext.fsGroup Set Node exporter pod's Security Context fsGroup
237 fsGroupChangePolicy: Always
239 supplementalGroups: []
241## Configure Container Security Context
242## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
243## @param containerSecurityContext.enabled Enabled containers' Security Context
244## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
245## @param containerSecurityContext.runAsUser Set containers' Security Context runAsUser
246## @param containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
247## @param containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
248## @param containerSecurityContext.privileged Set container's Security Context privileged
249## @param containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
250## @param containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
251## @param containerSecurityContext.capabilities.drop List of capabilities to be dropped
252## @param containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
254containerSecurityContext:
261 readOnlyRootFilesystem: true
262 allowPrivilegeEscalation: false
266 type: "RuntimeDefault"
267## Node Exporter Service
270 ## @param service.type Kubernetes service type
273 ## @param service.ports.metrics Node Exporter metrics service port
277 ## @param service.nodePorts.metrics Specify the nodePort value for the LoadBalancer and NodePort service types
278 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
284 ## @param service.clusterIP Specific cluster IP when service type is cluster IP. Use `None` for headless service
287 ## @param service.loadBalancerIP `loadBalancerIP` if service type is `LoadBalancer`
288 ## Set the LoadBalancer service type to internal only
289 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
292 ## @param service.loadBalancerSourceRanges Address that are allowed when service is `LoadBalancer`
293 ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
295 ## loadBalancerSourceRanges:
298 loadBalancerSourceRanges: []
299 ## @param service.externalTrafficPolicy Node exporter service external traffic policy
300 ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
302 externalTrafficPolicy: Cluster
303 ## @param service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
306 ## @param service.addPrometheusScrapeAnnotation Add the `prometheus.io/scrape: "true"` annotation to the service
308 addPrometheusScrapeAnnotation: true
309 ## @param service.annotations Additional annotations for Node Exporter service
312 ## @param service.labels Additional labels for Node Exporter service
315 ## @param service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
316 ## If "ClientIP", consecutive client requests will be directed to the same Pod
317 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
319 sessionAffinity: None
320 ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
321 ## sessionAffinityConfig:
323 ## timeoutSeconds: 300
325 sessionAffinityConfig: {}
327## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
330 ## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created
333 ## @param networkPolicy.allowExternal Don't require server label for connections
334 ## The Policy model to apply. When set to false, only pods with the correct
335 ## server label will have network access to the ports server is listening
336 ## on. When true, server will accept connections from any source
337 ## (with the correct destination port).
340 ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
342 allowExternalEgress: true
343 ## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
353 ## - matchExpressions:
359 ## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
369 ## - matchExpressions:
376 ## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
377 ## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
379 ingressNSMatchLabels: {}
380 ingressNSPodMatchLabels: {}
381## @param updateStrategy.type The update strategy type to apply to the DaemonSet
382## @param updateStrategy.rollingUpdate.maxUnavailable Maximum number of pods that may be made unavailable
388## @param hostNetwork Expose the service to the host network
390## @param hostPID Allows visibility of processes on the host, potentially leaking information such as environment variables and configuration
392## @param minReadySeconds `minReadySeconds` to avoid killing pods before we are ready
395## @param priorityClassName Priority class assigned to the Pods
398## @param terminationGracePeriodSeconds In seconds, time the given to the Node exporter pod needs to terminate gracefully
399## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
401terminationGracePeriodSeconds: ""
402## Resource requests and limits
403## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
404## We usually recommend not to specify default resources and to leave this as a conscious
405## choice for the user. This also increases chances charts run on environments with little
406## resources, such as Minikube. If you do want to specify resources, uncomment the following
407## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
408## @param resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if resources is set (resources is recommended for production).
409## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
411resourcesPreset: "nano"
412## @param resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
423## @param podLabels Pod labels
424## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
427## @param podAnnotations Pod annotations
428## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
431## @param podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
432## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
435## @param podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
436## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
438podAntiAffinityPreset: soft
439## Node affinity preset
440## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
443 ## @param nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
446 ## @param nodeAffinityPreset.key Node label key to match Ignored if `affinity` is set.
448 ## key: "kubernetes.io/e2e-az-name"
451 ## @param nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set.
458## @param affinity Affinity for pod assignment. Evaluated as a template.
459## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
460## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
463## @param nodeSelector Node labels for pod assignment. Evaluated as a template.
464## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
467## @param tolerations Tolerations for pod assignment. Evaluated as a template.
468## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
471## Configure extra options for liveness probe
472## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
473## @param livenessProbe.enabled Enable livenessProbe
474## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
475## @param livenessProbe.periodSeconds Period seconds for livenessProbe
476## @param livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
477## @param livenessProbe.failureThreshold Failure threshold for livenessProbe
478## @param livenessProbe.successThreshold Success threshold for livenessProbe
482 initialDelaySeconds: 120
487## Configure extra options for readiness probe
488## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
489## @param readinessProbe.enabled Enable readinessProbe
490## @param readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
491## @param readinessProbe.periodSeconds Period seconds for readinessProbe
492## @param readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
493## @param readinessProbe.failureThreshold Failure threshold for readinessProbe
494## @param readinessProbe.successThreshold Success threshold for readinessProbe
498 initialDelaySeconds: 30
503## Configure extra options for startup probe
504## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
505## @param startupProbe.enabled Enable startupProbe
506## @param startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
507## @param startupProbe.periodSeconds Period seconds for startupProbe
508## @param startupProbe.timeoutSeconds Timeout seconds for startupProbe
509## @param startupProbe.failureThreshold Failure threshold for startupProbe
510## @param startupProbe.successThreshold Success threshold for startupProbe
514 initialDelaySeconds: 30
519## @param customStartupProbe Custom liveness probe for the Node exporter container
521customStartupProbe: {}
522## @param customLivenessProbe Custom liveness probe for the Node exporter container
524customLivenessProbe: {}
525## @param customReadinessProbe Custom readiness probe for the Node exporter container
527customReadinessProbe: {}
528## ServiceMonitor configuration
531 ## @param serviceMonitor.enabled Creates a ServiceMonitor to monitor Node Exporter
534 ## @param serviceMonitor.namespace Namespace in which Prometheus is running
537 ## @param serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
540 ## @param serviceMonitor.interval Scrape interval (use by default, falling back to Prometheus' default)
541 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
546 ## @param serviceMonitor.scrapeTimeout Timeout after which the scrape is ended
547 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
549 ## scrapeTimeout: 10s
552 ## @param serviceMonitor.basicAuth Use basic auth for scraping
553 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#BasicAuth
564 ## @param serviceMonitor.selector ServiceMonitor selector labels
565 ## ref: https://github.com/iamguarded/charts/tree/main/iamguarded/prometheus-operator#prometheus-configuration
568 ## prometheus: my-prometheus
571 ## @param serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping
572 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
575 ## @param serviceMonitor.metricRelabelings MetricRelabelConfigs to apply to samples before ingestion
576 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
578 metricRelabelings: []
579 ## @param serviceMonitor.labels Extra labels for the ServiceMonitor
582 ## @param serviceMonitor.honorLabels honorLabels chooses the metric's labels on collisions with target labels
585 ## @param serviceMonitor.attachMetadata Attaches node metadata to discovered targets
586 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#attachmetadata
592 ## @param serviceMonitor.sampleLimit Per-scrape limit on number of scraped samples that will be accepted.
595## Pod Security Policy for Node Exporter to use.
596## WARNING: PodSecurityPolicy is deprecated in Kubernetes v1.21 or later, unavailable in v1.25 or later
597## @param podSecurityPolicy.annotations Annotations for Pod Security Policy. Evaluated as a template.
600## seccomp.security.alpha.kubernetes.io/defaultProfileName: runtime/default
601## seccomp.security.alpha.kubernetes.io/allowedProfileNames: runtime/default