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
24 ## - myRegistryKeySecretName
27 ## Security parameters
30 ## @param global.security.allowInsecureImages Allows skipping image verification
31 allowInsecureImages: false
32 ## Compatibility adaptations for Kubernetes platforms
35 ## Compatibility adaptations for Openshift
38 ## @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)
40 adaptSecurityContext: auto
42## @section Common parameters
44## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
47## @param apiVersions Override Kubernetes API versions reported by .Capabilities
50## @param nameOverride String to partially override common.names.fullname template (will maintain the release name)
53## @param fullnameOverride String to fully override common.names.fullname template
56## @param namespaceOverride String to fully override common.names.namespace
59## @param commonLabels Add labels to all the deployed resources
62## @param commonAnnotations Add annotations to all the deployed resources
65## @param extraDeploy Array of extra objects to deploy with the release
68## Enable diagnostic mode in the deployment(s)/statefulset(s)
71 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
74 ## @param diagnosticMode.command Command to override all containers in the the deployment(s)/statefulset(s)
78 ## @param diagnosticMode.args Args to override all containers in the the deployment(s)/statefulset(s)
82## @section Metrics Server parameters
84## Iamguarded Metrics Server image version
85## @param image.registry [default: REGISTRY_NAME] Metrics Server image registry
86## @param image.repository [default: REPOSITORY_NAME/metrics-server] Metrics Server image repository
87## @skip image.tag Metrics Server image tag (immutable tags are recommended)
88## @param image.digest Metrics Server image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
89## @param image.pullPolicy Metrics Server image pull policy
90## @param image.pullSecrets Metrics Server image pull secrets
94 repository: chainguard-private/metrics-server-iamguarded
96 digest: sha256:6e39b24435dbb636641dfc0324dce83f7509e78cccc4225a8aff8bc15b33cc4d
97 ## Specify a imagePullPolicy
98 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
100 pullPolicy: IfNotPresent
101 ## Optionally specify an array of imagePullSecrets.
102 ## Secrets must be manually created in the namespace.
103 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
106 ## - myRegistryKeySecretName
109## @param automountServiceAccountToken Mount Service Account token in pod
111automountServiceAccountToken: true
112## @param hostAliases Add deployment host aliases
113## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
116## @param replicas Number of metrics-server nodes to deploy
119## @param updateStrategy.type Set up update strategy for metrics-server installation.
120## Set to Recreate if you use persistent volume that cannot be mounted by more than one pods to make sure the pods is destroyed first.
121## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
124## type: RollingUpdate
127## maxUnavailable: 25%
132## ref: https://kubernetes.io/docs/admin/authorization/rbac/
135 ## @param rbac.create Enable RBAC authentication
138## Pods Service Account
139## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
142 ## @param serviceAccount.create Specifies whether a ServiceAccount should be created
145 ## @param serviceAccount.name The name of the ServiceAccount to create
146 ## If not set and create is true, a name is generated using the common.names.fullname template
148 ## @param serviceAccount.automountServiceAccountToken Automount API credentials for a service account
149 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server
151 automountServiceAccountToken: false
152 ## @param serviceAccount.annotations Annotations for service account. Evaluated as a template. Only used if `create` is `true`.
155## API service parameters
158 ## @param apiService.create Specifies whether the v1beta1.metrics.k8s.io API service should be created. You can check if it is needed with `kubectl get --raw "/apis/metrics.k8s.io/v1beta1/nodes"`.
159 ## This is still necessary up to at least k8s version >= 1.21, but depends on vendors and cloud providers.
162 ## @param apiService.insecureSkipTLSVerify Specifies whether to skip self-verifying self-signed TLS certificates. Set to "false" if you are providing your own certificates.
163 ## Note that "false" MUST be in quotation marks (cf. https://github.com/helm/helm/issues/3308), since false without quotation marks will render to true
164 insecureSkipTLSVerify: true
165 ## @param apiService.caBundle A base64-encoded string of concatenated certificates for the CA chain for the APIService.
167## @param containerPorts.https Port where metrics-server will be running
171## @param hostNetwork Enable hostNetwork mode
172## You would require this enabled if you use alternate overlay networking for pods and
173## API server unable to communicate with metrics-server. As an example, this is required
174## if you use Weave network on EKS
177## @param dnsPolicy Default dnsPolicy setting
178## If you enable hostNetwork then you may need to set your dnsPolicy to something other
179## than "ClusterFirst" depending on your requirements.
180dnsPolicy: "ClusterFirst"
181## @param command Override default container command (useful when using custom images)
184## @param args Override default container args (useful when using custom images)
187## @param lifecycleHooks for the metrics-server container(s) to automate configuration before or after startup
190## @param extraEnvVars Array with extra environment variables to add to metrics-server nodes
197## @param extraEnvVarsCM Name of existing ConfigMap containing extra env vars for metrics-server nodes
200## @param extraEnvVarsSecret Name of existing Secret containing extra env vars for metrics-server nodes
202extraEnvVarsSecret: ""
203## @param extraArgs Extra arguments to pass to metrics-server on start up
204## ref: https://github.com/kubernetes-incubator/metrics-server#flags
207## - --kubelet-insecure-tls=true
208## - --kubelet-preferred-address-types=InternalIP
211## @param sidecars Add additional sidecar containers to the metrics-server pod(s)
214## - name: your-image-name
216## imagePullPolicy: Always
219## containerPort: 1234
222## @param initContainers Add additional init containers to the metrics-server pod(s)
223## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
226## - name: your-image-name
228## imagePullPolicy: Always
229## command: ['sh', '-c', 'echo "hello world"']
232## @param podLabels Pod labels
233## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
236## @param podAnnotations Pod annotations
237## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
240## @param priorityClassName Priority class for pod scheduling
241## ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass
243## @param schedulerName Name of the k8s scheduler (other than default)
244## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
247## @param terminationGracePeriodSeconds In seconds, time the given to the metrics-server pod needs to terminate gracefully
248## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
250terminationGracePeriodSeconds: ""
251## @param podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
252## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
255## @param podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
256## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
258podAntiAffinityPreset: soft
259## Pod disruption budget
260## ref: https://kubernetes.io/docs/concepts/workloads/pods/disruptions/#pod-disruption-budgets
261## @param pdb.create Create a PodDisruptionBudget
262## @param pdb.minAvailable Minimum available instances
263## @param pdb.maxUnavailable Maximum unavailable instances
269## Node affinity preset
270## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
273 ## @param nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
276 ## @param nodeAffinityPreset.key Node label key to match. Ignored if `affinity` is set.
278 ## key: "kubernetes.io/e2e-az-name"
281 ## @param nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set.
288## @param affinity Affinity for pod assignment
289## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
290## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
293## @param topologySpreadConstraints Topology spread constraints for pod
294## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints
296topologySpreadConstraints: []
297## @param nodeSelector Node labels for pod assignment
298## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
301## @param tolerations Tolerations for pod assignment
302## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
305## Metrics Server K8s svc properties
308 ## @param service.type Kubernetes Service type
311 ## @param service.ports.https Kubernetes Service port
315 ## @param service.nodePorts.https Kubernetes Service port
316 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
322 ## @param service.clusterIP metrics-server service Cluster IP
327 ## @param service.loadBalancerIP LoadBalancer IP if Service type is `LoadBalancer`
328 ## Set the LoadBalancer service type to internal only.
329 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
332 ## @param service.loadBalancerSourceRanges metrics-server service Load Balancer sources
333 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
335 ## loadBalancerSourceRanges:
338 loadBalancerSourceRanges: []
339 ## @param service.externalTrafficPolicy metrics-server service external traffic policy
340 ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
342 externalTrafficPolicy: Cluster
343 ## @param service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
346 ## @param service.annotations Annotations for the Service
347 ## set the LoadBalancer service type to internal only.
348 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
351 ## @param service.labels Labels for the Service
352 ## have metrics-server show up in `kubectl cluster-info`
353 ## kubernetes.io/cluster-service: "true"
354 ## kubernetes.io/name: "Metrics-server"
357 ## @param service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
358 ## If "ClientIP", consecutive client requests will be directed to the same Pod
359 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
361 sessionAffinity: None
362 ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
363 ## sessionAffinityConfig:
365 ## timeoutSeconds: 300
367 sessionAffinityConfig: {}
368## Network Policy configuration
369## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
372 ## @param networkPolicy.enabled Enable creation of NetworkPolicy resources
375 ## @param networkPolicy.allowExternal The Policy model to apply
376 ## When set to false, only pods with the correct client label will have network access to the ports Metrics Server is
377 ## listening on. When true, Metrics Server will accept connections from any source (with the correct destination port).
380 ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
382 allowExternalEgress: true
383 ## @param networkPolicy.kubernetesPorts [array] List of possible endpoints to kubernetes components like kube-apiserver or kubelet (limit to your cluster settings to increase security)
385 kubernetesPorts: [443, 6443, 8443, 10250]
386 ## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
396 ## - matchExpressions:
403 ## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
413 ## - matchExpressions:
420 ## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
421 ## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
423 ingressNSMatchLabels: {}
424 ingressNSPodMatchLabels: {}
425## Metric Server containers' resource requests and limits
426## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
427## We usually recommend not to specify default resources and to leave this as a conscious
428## choice for the user. This also increases chances charts run on environments with little
429## resources, such as Minikube. If you do want to specify resources, uncomment the following
430## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
431## @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).
433resourcesPreset: "nano"
434## @param resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
445## Configure extra options for metrics-server containers' liveness, readiness and startup probes
446## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
447## @param startupProbe.enabled Enable startupProbe
448## @param startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
449## @param startupProbe.periodSeconds Period seconds for startupProbe
450## @param startupProbe.timeoutSeconds Timeout seconds for startupProbe
451## @param startupProbe.failureThreshold Failure threshold for startupProbe
452## @param startupProbe.successThreshold Success threshold for startupProbe
455 initialDelaySeconds: 0
460## @param livenessProbe.enabled Enable livenessProbe
461## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
462## @param livenessProbe.periodSeconds Period seconds for livenessProbe
463## @param livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
464## @param livenessProbe.failureThreshold Failure threshold for livenessProbe
465## @param livenessProbe.successThreshold Success threshold for livenessProbe
469 initialDelaySeconds: 0
474## @param readinessProbe.enabled Enable readinessProbe
475## @param readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
476## @param readinessProbe.periodSeconds Period seconds for readinessProbe
477## @param readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
478## @param readinessProbe.failureThreshold Failure threshold for readinessProbe
479## @param readinessProbe.successThreshold Success threshold for readinessProbe
483 initialDelaySeconds: 0
488## @param customStartupProbe Custom liveness probe for the Web component
490customStartupProbe: {}
491## @param customLivenessProbe Custom Liveness probes for metrics-server
493customLivenessProbe: {}
494## @param customReadinessProbe Custom Readiness probes metrics-server
496customReadinessProbe: {}
497## Container security context
498## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
499## @param containerSecurityContext.enabled Enabled containers' Security Context
500## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
501## @param containerSecurityContext.runAsUser Set containers' Security Context runAsUser
502## @param containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
503## @param containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
504## @param containerSecurityContext.privileged Set container's Security Context privileged
505## @param containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
506## @param containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
507## @param containerSecurityContext.capabilities.drop List of capabilities to be dropped
508## @param containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
510containerSecurityContext:
517 readOnlyRootFilesystem: true
518 allowPrivilegeEscalation: false
522 type: "RuntimeDefault"
523## Pod security context
524## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
525## @param podSecurityContext.enabled Pod security context
526## @param podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
527## @param podSecurityContext.sysctls Set kernel settings using the sysctl interface
528## @param podSecurityContext.supplementalGroups Set filesystem extra groups
529## @param podSecurityContext.fsGroup Set %%MAIN_CONTAINER_NAME%% pod's Security Context fsGroup
533 fsGroupChangePolicy: Always
535 supplementalGroups: []
537## Extra volumes to mount
538## @param extraVolumes Extra volumes
539## @param extraVolumeMounts Mount extra volume(s)
540## Example Use Case: mount an `emptyDir` to allow running with a `readOnlyRootFilesystem: true`