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
32 allowInsecureImages: false
33 ## Compatibility adaptations for Kubernetes platforms
36 ## Compatibility adaptations for Openshift
39 ## @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)
41 adaptSecurityContext: auto
43## @section Common parameters
45## @param nameOverride String to partially override nginx.fullname template (will maintain the release name)
48## @param fullnameOverride String to fully override nginx.fullname template
51## @param namespaceOverride String to fully override common.names.namespace
54## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
57## @param clusterDomain Kubernetes Cluster Domain
59clusterDomain: cluster.local
60## @param extraDeploy Extra objects to deploy (value evaluated as a template)
63## @param commonLabels Add labels to all the deployed resources
66## @param commonAnnotations Add annotations to all the deployed resources
69## Enable diagnostic mode in the deployment(s)/statefulset(s)
72 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
75 ## @param diagnosticMode.command Command to override all containers in the the deployment(s)/statefulset(s)
79 ## @param diagnosticMode.args Args to override all containers in the the deployment(s)/statefulset(s)
83## @section NGINX parameters
85## Iamguarded NGINX image version
86## @param image.registry [default: REGISTRY_NAME] NGINX image registry
87## @param image.repository [default: REPOSITORY_NAME/nginx] NGINX image repository
88## @skip image.tag NGINX image tag (immutable tags are recommended)
89## @param image.digest NGINX image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
90## @param image.pullPolicy NGINX image pull policy
91## @param image.pullSecrets Specify docker-registry secret names as an array
92## @param image.debug Set to true if you would like to see extra information on logs
96 repository: chainguard-private/nginx-iamguarded
99 ## Specify a imagePullPolicy
100 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
102 pullPolicy: IfNotPresent
103 ## Optionally specify an array of imagePullSecrets.
104 ## Secrets must be manually created in the namespace.
105 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
108 ## - myRegistryKeySecretName
111 ## Set to true if you would like to see extra information on logs
114## @param enableDefaultInitContainers If set to false, disable all init containers except user-defined at `initContainer`.
116enableDefaultInitContainers: true
117## @param automountServiceAccountToken Mount Service Account token in pod
119automountServiceAccountToken: false
120## @param hostAliases Deployment pod host aliases
121## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
124## Command and args for running the container (set to default if not set). Use array form
125## @param command Override default container command (useful when using custom images)
126## @param args Override default container args (useful when using custom images)
130## @param extraEnvVars Extra environment variables to be set on NGINX containers
137## @param extraEnvVarsCM ConfigMap with extra environment variables
140## @param extraEnvVarsSecret Secret with extra environment variables
142extraEnvVarsSecret: ""
143## @section NGINX deployment parameters
145## @param replicaCount Number of NGINX replicas to deploy
148## @param revisionHistoryLimit The number of old history to retain to allow rollback
150revisionHistoryLimit: 10
151## @param updateStrategy.type NGINX deployment strategy type
152## @param updateStrategy.rollingUpdate NGINX deployment rolling update configuration parameters
153## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
158## @param podLabels Additional labels for NGINX pods
159## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
162## @param podAnnotations Annotations for NGINX pods
163## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
166## @param podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
167## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
170## @param podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
171## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
173podAntiAffinityPreset: soft
174## Node affinity preset
175## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
178 ## @param nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
181 ## @param nodeAffinityPreset.key Node label key to match Ignored if `affinity` is set.
183 ## key: "kubernetes.io/e2e-az-name"
186 ## @param nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set.
193## @param affinity Affinity for pod assignment
194## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
195## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
198## @param hostNetwork Specify if host network should be enabled for NGINX pod
201## @param hostIPC Specify if host IPC should be enabled for NGINX pod
205## Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
206## @param dnsPolicy Specifies the DNS policy for the NGINX pod
207## DNS policies can be set on a per-Pod basis. Currently Kubernetes supports the following Pod-specific DNS policies.
208## Available options: Default, ClusterFirst, ClusterFirstWithHostNet, None
209## Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
211## @param dnsConfig Allows users more control on the DNS settings for a Pod. Required if `dnsPolicy` is set to `None`
212## The dnsConfig field is optional and it can work with any dnsPolicy settings.
213## Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config
217## - 192.0.2.1 # this is an example
219## - ns1.svc.cluster-domain.example
220## - my.dns.search.suffix
226## @param nodeSelector Node labels for pod assignment. Evaluated as a template.
227## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
230## @param tolerations Tolerations for pod assignment. Evaluated as a template.
231## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
234## @param priorityClassName NGINX pods' priorityClassName
237## @param schedulerName Name of the k8s scheduler (other than default)
238## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
241## @param terminationGracePeriodSeconds In seconds, time the given to the NGINX pod needs to terminate gracefully
242## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
244terminationGracePeriodSeconds: ""
245## @param topologySpreadConstraints Topology Spread Constraints for pod assignment
246## https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
247## The value is evaluated as a template
249topologySpreadConstraints: []
253 ## @param tls.enabled Enable TLS transport
256 ## @param tls.autoGenerated Auto-generate self-signed certificates
259 ## @param tls.existingSecret Name of a secret containing the certificates
262 ## @param tls.certFilename Path of the certificate file when mounted as a secret
264 certFilename: tls.crt
265 ## @param tls.certKeyFilename Path of the certificate key file when mounted as a secret
267 certKeyFilename: tls.key
268 ## @param tls.certCAFilename Path of the certificate CA file when mounted as a secret
270 certCAFilename: ca.crt
271 ## @param tls.cert Content of the certificate to be added to the secret
274 ## @param tls.key Content of the certificate key to be added to the secret
277 ## @param tls.ca Content of the certificate CA to be added to the secret
280## NGINX pods' Security Context.
281## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
282## @param podSecurityContext.enabled Enabled NGINX pods' Security Context
283## @param podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
284## @param podSecurityContext.supplementalGroups Set filesystem extra groups
285## @param podSecurityContext.fsGroup Set NGINX pod's Security Context fsGroup
286## @param podSecurityContext.sysctls sysctl settings of the NGINX pods
290 fsGroupChangePolicy: Always
291 supplementalGroups: []
296 ## - name: net.core.somaxconn
300## NGINX containers' Security Context.
301## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
302## @param containerSecurityContext.enabled Enabled containers' Security Context
303## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
304## @param containerSecurityContext.runAsUser Set containers' Security Context runAsUser
305## @param containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
306## @param containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
307## @param containerSecurityContext.privileged Set container's Security Context privileged
308## @param containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
309## @param containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
310## @param containerSecurityContext.capabilities.drop List of capabilities to be dropped
311## @param containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
313containerSecurityContext:
320 readOnlyRootFilesystem: true
321 allowPrivilegeEscalation: false
325 type: "RuntimeDefault"
326## Configures the ports NGINX listens on
327## @param containerPorts.http Sets http port inside NGINX container
328## @param containerPorts.https Sets https port inside NGINX container
333## @param extraContainerPorts Array of additional container ports for the Nginx container
335## extraContainerPorts:
337## containerPort: 4317
339extraContainerPorts: []
340## NGINX containers' resource requests and limits
341## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
342## We usually recommend not to specify default resources and to leave this as a conscious
343## choice for the user. This also increases chances charts run on environments with little
344## resources, such as Minikube. If you do want to specify resources, uncomment the following
345## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
346## @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).
348resourcesPreset: "nano"
349## @param resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
360## NGINX containers' lifecycleHooks
361## ref: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/
362## ref: https://kubernetes.io/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/
363## If you do want to specify lifecycleHooks, uncomment the following
364## lines, adjust them as necessary, and remove the curly braces on 'lifecycle:{}'.
365## @param lifecycleHooks Optional lifecycleHooks for the NGINX container
370## command: ["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"]
374## command: ["/bin/sleep", "20"]
375## command: ["/bin/sh","-c","nginx -s quit; while killall -0 nginx; do sleep 1; done"]
377## NGINX containers' startup probe.
378## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
379## @param startupProbe.enabled Enable startupProbe
380## @param startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
381## @param startupProbe.periodSeconds Period seconds for startupProbe
382## @param startupProbe.timeoutSeconds Timeout seconds for startupProbe
383## @param startupProbe.failureThreshold Failure threshold for startupProbe
384## @param startupProbe.successThreshold Success threshold for startupProbe
388 initialDelaySeconds: 30
393## NGINX containers' liveness probe.
394## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
395## @param livenessProbe.enabled Enable livenessProbe
396## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
397## @param livenessProbe.periodSeconds Period seconds for livenessProbe
398## @param livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
399## @param livenessProbe.failureThreshold Failure threshold for livenessProbe
400## @param livenessProbe.successThreshold Success threshold for livenessProbe
404 initialDelaySeconds: 30
409## NGINX containers' readiness probe.
410## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
411## @param readinessProbe.enabled Enable readinessProbe
412## @param readinessProbe.path Request path for livenessProbe
413## @param readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
414## @param readinessProbe.periodSeconds Period seconds for readinessProbe
415## @param readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
416## @param readinessProbe.failureThreshold Failure threshold for readinessProbe
417## @param readinessProbe.successThreshold Success threshold for readinessProbe
422 initialDelaySeconds: 5
427## @param customStartupProbe Custom liveness probe for the Web component
429customStartupProbe: {}
430## @param customLivenessProbe Override default liveness probe
432customLivenessProbe: {}
433## @param customReadinessProbe Override default readiness probe
435customReadinessProbe: {}
436## Autoscaling parameters
437## @param autoscaling.enabled Enable autoscaling for NGINX deployment
438## @param autoscaling.minReplicas Minimum number of replicas to scale back
439## @param autoscaling.maxReplicas Maximum number of replicas to scale out
440## @param autoscaling.targetCPU Target CPU utilization percentage
441## @param autoscaling.targetMemory Target Memory utilization percentage
449## @param extraVolumes Array to add extra volumes
452## @param extraVolumeMounts Array to add extra mount
455## Pods Service Account
456## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
459 ## @param serviceAccount.create Enable creation of ServiceAccount for nginx pod
462 ## @param serviceAccount.name The name of the ServiceAccount to use.
463 ## If not set and create is true, a name is generated using the `common.names.fullname` template
465 ## @param serviceAccount.annotations Annotations for service account. Evaluated as a template.
466 ## Only used if `create` is `true`.
469 ## @param serviceAccount.automountServiceAccountToken Auto-mount the service account token in the pod
471 automountServiceAccountToken: false
472## @param sidecars Sidecar parameters
475## - name: your-image-name
477## imagePullPolicy: Always
480## containerPort: 1234
483## @param sidecarSingleProcessNamespace Enable sharing the process namespace with sidecars
484## This will switch pod.spec.shareProcessNamespace parameter
486sidecarSingleProcessNamespace: false
487## @param initContainers Extra init containers
490## Pod Disruption Budget configuration
491## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
494 ## @param pdb.create Created a PodDisruptionBudget
497 ## @param pdb.minAvailable Min number of pods that must still be available after the eviction.
498 ## You can specify an integer or a percentage by setting the value to a string representation of a percentage (eg. "50%"). It will be disabled if set to 0
501 ## @param pdb.maxUnavailable Max number of pods that can be unavailable after the eviction.
502 ## You can specify an integer or a percentage by setting the value to a string representation of a percentage (eg. "50%"). It will be disabled if set to 0. Defaults to `1` if both `pdb.minAvailable` and `pdb.maxUnavailable` are empty.
505## @section Custom NGINX application parameters
507## Get the server static content from a git repository
508## NOTE: This will override staticSiteConfigmap and staticSitePVC
510cloneStaticSiteFromGit:
511 ## @param cloneStaticSiteFromGit.enabled Get the server static content from a Git repository
514 ## Iamguarded Git image version
515 ## @param cloneStaticSiteFromGit.image.registry [default: REGISTRY_NAME] Git image registry
516 ## @param cloneStaticSiteFromGit.image.repository [default: REPOSITORY_NAME/git] Git image repository
517 ## @skip cloneStaticSiteFromGit.image.tag Git image tag (immutable tags are recommended)
518 ## @param cloneStaticSiteFromGit.image.digest Git image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
519 ## @param cloneStaticSiteFromGit.image.pullPolicy Git image pull policy
520 ## @param cloneStaticSiteFromGit.image.pullSecrets Specify docker-registry secret names as an array
524 repository: chainguard-private/git-iamguarded
527 ## Specify a imagePullPolicy
528 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
530 pullPolicy: IfNotPresent
531 ## Optionally specify an array of imagePullSecrets.
532 ## Secrets must be manually created in the namespace.
533 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
536 ## - myRegistryKeySecretName
539 ## @param cloneStaticSiteFromGit.repository Git Repository to clone static content from
542 ## @param cloneStaticSiteFromGit.branch Git branch to checkout
545 ## @param cloneStaticSiteFromGit.interval Interval for sidecar container pull from the Git repository
548 ## Additional configuration for git-clone-repository initContainer
551 ## @param cloneStaticSiteFromGit.gitClone.command Override default container command for git-clone-repository
554 ## @param cloneStaticSiteFromGit.gitClone.args Override default container args for git-clone-repository
557 ## Additional configuration for the git-repo-syncer container
560 ## @param cloneStaticSiteFromGit.gitSync.command Override default container command for git-repo-syncer
563 ## @param cloneStaticSiteFromGit.gitSync.args Override default container args for git-repo-syncer
566 ## git-repo-syncer resource requests and limits
567 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
568 ## @param cloneStaticSiteFromGit.gitSync.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if cloneStaticSiteFromGit.gitSync.resources is set (cloneStaticSiteFromGit.gitSync.resources is recommended for production).
570 resourcesPreset: "nano"
571 ## @param cloneStaticSiteFromGit.gitSync.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
582 ## @param cloneStaticSiteFromGit.extraEnvVars Additional environment variables to set for the in the containers that clone static site from git
589 ## @param cloneStaticSiteFromGit.extraEnvVarsSecret Secret with extra environment variables
591 extraEnvVarsSecret: ""
592 ## @param cloneStaticSiteFromGit.extraVolumeMounts Add extra volume mounts for the Git containers
593 ## Useful to mount keys to connect through ssh. (normally used with extraVolumes)
595 ## extraVolumeMounts:
597 ## mountPath: /root/.ssh/
599 extraVolumeMounts: []
600## @param serverBlock Custom server block to be added to NGINX configuration
601## PHP-FPM example server block:
604## listen 0.0.0.0:8080;
607## index index.html index.php;
609## location ~ \.php$ {
610## fastcgi_pass phpfpm-server:9000;
611## fastcgi_index index.php;
612## include fastcgi.conf;
617## @param streamServerBlock Custom stream server block to be added to NGINX configuration
618## streamServerBlock: |-
620## listen 0.0.0.0:8080 udp;
621## proxy_pass localhost:9000;
625## @param existingServerBlockConfigmap ConfigMap with custom server block to be added to NGINX configuration
626## NOTE: This will override serverBlock
628existingServerBlockConfigmap: ""
629## @param existingStreamServerBlockConfigmap ConfigMap with custom stream server block to be added to NGINX configuration
630## NOTE: This will override streamServerBlock
632existingStreamServerBlockConfigmap: ""
633## Collection of NGINX context based includes
637## load_module /opt/iamguarded/nginx/modules/ngx_http_dav_module.so;
640 ## @param contextIncludes.main Custom configuration for the main context
643 ## @param contextIncludes.events Custom configuration for the events context
646 ## @param contextIncludes.http Custom configuration for the http context
649## @param existingContextMainConfigmaps List of existing ConfigMaps with custom main context configuration
650## NOTE: These will be mounted alongside contextIncludes.main
652## existingContextMainConfigmaps:
653## - "my-modules-config"
654## - "my-main-directives-config"
656existingContextMainConfigmaps: []
657## @param existingContextEventsConfigmaps List of existing ConfigMaps with custom events context configuration
658## NOTE: These will be mounted alongside contextIncludes.events
660existingContextEventsConfigmaps: []
661## @param existingContextHttpConfigmaps List of existing ConfigMaps with custom http context configuration
662## NOTE: These will be mounted alongside contextIncludes.http
664existingContextHttpConfigmaps: []
665## @param staticSiteConfigmap Name of existing ConfigMap with the server static site content
667staticSiteConfigmap: ""
668## @param staticSitePVC Name of existing PVC with the server static site content
669## NOTE: This will override staticSiteConfigmap
672## @section Traffic Exposure parameters
674## NGINX Service properties
677 ## @param service.type Service type
680 ## @param service.ports.http Service HTTP port
681 ## @param service.ports.https Service HTTPS port
687 ## @param service.nodePorts [object] Specify the nodePort(s) value(s) for the LoadBalancer and NodePort service types.
688 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
693 ## @param service.targetPort [object] Target port reference value for the Loadbalancer service types can be specified explicitly.
694 ## Listeners for the Loadbalancer can be custom mapped to the http or https service.
695 ## Example: Mapping the https listener to targetPort http [http: https]
700 ## @param service.clusterIP NGINX service Cluster IP
705 ## @param service.loadBalancerIP LoadBalancer service IP address
706 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
709 ## @param service.loadBalancerSourceRanges NGINX service Load Balancer sources
710 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
712 ## loadBalancerSourceRanges:
715 loadBalancerSourceRanges: []
716 ## @param service.loadBalancerClass service Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
717 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
719 loadBalancerClass: ""
720 ## @param service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
723 ## @param service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
724 ## If "ClientIP", consecutive client requests will be directed to the same Pod
725 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
727 sessionAffinity: None
728 ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
729 ## sessionAffinityConfig:
731 ## timeoutSeconds: 300
733 sessionAffinityConfig: {}
734 ## @param service.annotations Service annotations
735 ## This can be used to set the LoadBalancer service type to internal only.
736 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
739 ## @param service.externalTrafficPolicy Enable client source IP preservation
740 ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
742 externalTrafficPolicy: Cluster
744## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
747 ## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created
750 ## @param networkPolicy.allowExternal Don't require server label for connections
751 ## The Policy model to apply. When set to false, only pods with the correct
752 ## server label will have network access to the ports server is listening
753 ## on. When true, server will accept connections from any source
754 ## (with the correct destination port).
757 ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
759 allowExternalEgress: true
760 ## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
770 ## - matchExpressions:
776 ## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy (ignored if allowExternalEgress=true)
786 ## - matchExpressions:
793 ## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
794 ## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
796 ingressNSMatchLabels: {}
797 ingressNSPodMatchLabels: {}
798## Configure the ingress resource that allows you to access the
799## Nginx installation. Set up the URL
800## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
803 ## @param ingress.enabled Set to true to enable ingress record generation
806 ## @param ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
809 ## @param ingress.pathType Ingress path type
811 pathType: ImplementationSpecific
812 ## @param ingress.apiVersion Force Ingress API version (automatically detected if not set)
815 ## @param ingress.hostname Default host for the ingress resource
817 hostname: nginx.local
818 ## @param ingress.path The Path to Nginx. You may need to set this to '/*' in order to use this with ALB ingress controllers.
821 ## @param ingress.annotations Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
822 ## For a full list of possible ingress annotations, please see
823 ## ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md
824 ## Use this parameter to set the required annotations for cert-manager, see
825 ## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
829 ## kubernetes.io/ingress.class: nginx
830 ## cert-manager.io/cluster-issuer: cluster-issuer-name
833 ## @param ingress.ingressClassName Set the ingerssClassName on the ingress record for k8s 1.18+
834 ## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster .
835 ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
838 ## @param ingress.tls Create TLS Secret
839 ## TLS certificates will be retrieved from a TLS secret with name: {{- printf "%s-tls" .Values.ingress.hostname }}
840 ## You can use the ingress.secrets parameter to create this TLS secret or relay on cert-manager to create it
843 ## @param ingress.tlsWwwPrefix Adds www subdomain to default cert
844 ## Creates tls host with ingress.hostname: {{ print "www.%s" .Values.ingress.hostname }}
845 ## Is enabled if "nginx.ingress.kubernetes.io/from-to-www-redirect" is "true"
847 ## @param ingress.extraHosts The list of additional hostnames to be covered with this ingress record.
848 ## Most likely the hostname above will be enough, but in the event more hosts are needed, this is an array
850 ## - name: nginx.local
854 ## @param ingress.extraPaths Any additional arbitrary paths that may need to be added to the ingress under the main host.
855 ## For example: The ALB ingress controller requires a special rule for handling SSL redirection.
859 ## serviceName: ssl-redirect
860 ## servicePort: use-annotation
863 ## @param ingress.extraTls The tls configuration for additional hostnames to be covered with this ingress record.
864 ## see: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
868 ## secretName: nginx.local-tls
871 ## @param ingress.secrets If you're providing your own certificates, please use this to add the certificates as secrets
872 ## key and certificate should start with -----BEGIN CERTIFICATE----- or
873 ## -----BEGIN RSA PRIVATE KEY-----
875 ## name should line up with a tlsSecret set further up
876 ## If you're using cert-manager, this is unneeded, as it will create the secret for you if it is not set
878 ## It is also possible to create and manage the certificates outside of this helm chart
879 ## Please see README.md for more information
881 ## - name: nginx.local-tls
886 ## @param ingress.extraRules The list of additional rules to be added to this ingress record. Evaluated as a template
887 ## Useful when looking for additional customization, such as using different backend
890## Health Ingress parameters
893 ## @param healthIngress.enabled Set to true to enable health ingress record generation
896 ## @param healthIngress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
899 ## @param healthIngress.pathType Ingress path type
901 pathType: ImplementationSpecific
902 ## @param healthIngress.hostname When the health ingress is enabled, a host pointing to this will be created
904 hostname: example.local
905 ## @param healthIngress.path Default path for the ingress record
906 ## NOTE: You may need to set this to '/*' in order to use this with ALB ingress controllers
909 ## @param healthIngress.annotations Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
910 ## For a full list of possible ingress annotations, please see
911 ## ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md
912 ## Use this parameter to set the required annotations for cert-manager, see
913 ## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
917 ## kubernetes.io/ingress.class: nginx
918 ## cert-manager.io/cluster-issuer: cluster-issuer-name
921 ## @param healthIngress.tls Enable TLS configuration for the hostname defined at `healthIngress.hostname` parameter
922 ## TLS certificates will be retrieved from a TLS secret with name: {{- printf "%s-tls" .Values.healthIngress.hostname }}
923 ## You can use the healthIngress.secrets parameter to create this TLS secret, relay on cert-manager to create it, or
924 ## let the chart create self-signed certificates for you
927 ## @param healthIngress.extraHosts An array with additional hostname(s) to be covered with the ingress record
930 ## - name: example.local
934 ## @param healthIngress.extraPaths An array with additional arbitrary paths that may need to be added to the ingress under the main host
939 ## serviceName: ssl-redirect
940 ## servicePort: use-annotation
943 ## @param healthIngress.extraTls TLS configuration for additional hostnames to be covered
944 ## see: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
949 ## secretName: example.local-tls
952 ## @param healthIngress.secrets TLS Secret configuration
953 ## If you're providing your own certificates, please use this to add the certificates as secrets
954 ## key and certificate should start with -----BEGIN CERTIFICATE----- or -----BEGIN RSA PRIVATE KEY-----
955 ## name should line up with a secretName set further up
956 ## If it is not set and you're using cert-manager, this is unneeded, as it will create the secret for you
957 ## If it is not set and you're NOT using cert-manager either, self-signed certificates will be created
958 ## It is also possible to create and manage the certificates outside of this helm chart
959 ## Please see README.md for more information
963 ## - name: example.local-tls
968 ## @param healthIngress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
969 ## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster .
970 ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
973 ## @param healthIngress.extraRules The list of additional rules to be added to this ingress record. Evaluated as a template
974 ## Useful when looking for additional customization, such as using different backend
977## @section Metrics parameters
979## Prometheus Exporter / Metrics
982 ## @param metrics.enabled Start a Prometheus exporter sidecar container
985 ## Iamguarded NGINX Prometheus Exporter image
986 ## @param metrics.image.registry [default: REGISTRY_NAME] NGINX Prometheus exporter image registry
987 ## @param metrics.image.repository [default: REPOSITORY_NAME/nginx-exporter] NGINX Prometheus exporter image repository
988 ## @skip metrics.image.tag NGINX Prometheus exporter image tag (immutable tags are recommended)
989 ## @param metrics.image.digest NGINX Prometheus exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
990 ## @param metrics.image.pullPolicy NGINX Prometheus exporter image pull policy
991 ## @param metrics.image.pullSecrets Specify docker-registry secret names as an array
995 repository: chainguard-private/nginx-prometheus-exporter-iamguarded
998 pullPolicy: IfNotPresent
999 ## Optionally specify an array of imagePullSecrets.
1000 ## Secrets must be manually created in the namespace.
1001 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1004 ## - myRegistryKeySecretName
1007 ## @param metrics.port NGINX Container Status Port scraped by Prometheus Exporter
1008 ## Defaults to specified http port
1011 ## @param metrics.extraArgs Extra arguments for Prometheus exporter
1014 ## - --nginx.timeout
1018 ## @param metrics.containerPorts.metrics Prometheus exporter container port
1022 ## @param metrics.podAnnotations Additional annotations for NGINX Prometheus exporter pod(s)
1023 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1026 ## Container Security Context
1027 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
1028 ## @param metrics.securityContext.enabled Enabled NGINX Exporter containers' Security Context
1029 ## @param metrics.securityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1030 ## @param metrics.securityContext.runAsUser Set NGINX Exporter container's Security Context runAsUser
1036 ## Prometheus exporter service parameters
1039 ## @param metrics.service.port NGINX Prometheus exporter service port
1042 ## @param metrics.service.annotations [object] Annotations for the Prometheus exporter service
1045 prometheus.io/scrape: "true"
1046 prometheus.io/port: "{{ .Values.metrics.service.port }}"
1047 ## NGINX Prometheus exporter resource requests and limits
1048 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1049 ## We usually recommend not to specify default resources and to leave this as a conscious
1050 ## choice for the user. This also increases chances charts run on environments with little
1051 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
1052 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
1053 ## @param metrics.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if metrics.resources is set (metrics.resources is recommended for production).
1055 resourcesPreset: "nano"
1056 ## @param metrics.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1067 ## Prometheus Operator ServiceMonitor configuration
1070 ## @param metrics.serviceMonitor.enabled Creates a Prometheus Operator ServiceMonitor (also requires `metrics.enabled` to be `true`)
1073 ## @param metrics.serviceMonitor.namespace Namespace in which Prometheus is running
1076 ## @param metrics.serviceMonitor.tlsConfig [object] TLS configuration used for scrape endpoints used by Prometheus
1079 ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
1082 ## @param metrics.serviceMonitor.interval Interval at which metrics should be scraped.
1083 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
1088 ## @param metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended
1089 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
1091 ## scrapeTimeout: 10s
1094 ## @param metrics.serviceMonitor.selector Prometheus instance selector labels
1097 ## prometheus: my-prometheus
1100 ## @param metrics.serviceMonitor.labels Additional labels that can be used so PodMonitor will be discovered by Prometheus
1103 ## @param metrics.serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping
1106 ## @param metrics.serviceMonitor.metricRelabelings MetricRelabelConfigs to apply to samples before ingestion
1108 metricRelabelings: []
1109 ## @param metrics.serviceMonitor.honorLabels honorLabels chooses the metric's labels on collisions with target labels
1112 ## Prometheus Operator PrometheusRule configuration
1115 ## @param metrics.prometheusRule.enabled if `true`, creates a Prometheus Operator PrometheusRule (also requires `metrics.enabled` to be `true` and `metrics.prometheusRule.rules`)
1118 ## @param metrics.prometheusRule.namespace Namespace for the PrometheusRule Resource (defaults to the Release Namespace)
1121 ## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so PrometheusRule will be discovered by Prometheus
1123 additionalLabels: {}
1124 ## @param metrics.prometheusRule.rules Prometheus Rule definitions
1125 ## - alert: LowInstance
1126 ## expr: up{service="{{ template "common.names.fullname" . }}"} < 1
1129 ## severity: critical
1131 ## description: Service {{ template "common.names.fullname" . }} Tomcat is down since 1m.
1132 ## summary: Tomcat instance is down.
1135 ## @param metrics.customLivenessProbe Override default metrics liveness probe
1137 customLivenessProbe: {}
1138 ## NGINX metrics containers' liveness probe.
1139 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
1140 ## @param metrics.livenessProbe.enabled Enable livenessProbe
1141 ## @param metrics.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1142 ## @param metrics.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1143 ## @param metrics.livenessProbe.periodSeconds Period seconds for livenessProbe
1144 ## @param metrics.livenessProbe.failureThreshold Failure threshold for livenessProbe
1145 ## @param metrics.livenessProbe.successThreshold Success threshold for livenessProbe
1149 initialDelaySeconds: 30
1154 ## @param metrics.customReadinessProbe Override default metrics readiness probe
1156 customReadinessProbe: {}
1157 ## NGINX metrics containers' readiness probe.
1158 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
1159 ## @param metrics.readinessProbe.enabled Enable readinessProbe
1160 ## @param metrics.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1161 ## @param metrics.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1162 ## @param metrics.readinessProbe.periodSeconds Period seconds for readinessProbe
1163 ## @param metrics.readinessProbe.failureThreshold Failure threshold for readinessProbe
1164 ## @param metrics.readinessProbe.successThreshold Success threshold for readinessProbe
1169 initialDelaySeconds: 5
1174 ## @param metrics.customStartupProbe Override default metrics startup probe
1176 customStartupProbe: {}
1177 ## NGINX metrics containers' startup probe.
1178 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
1179 ## @param metrics.startupProbe.enabled Enable startupProbe
1180 ## @param metrics.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1181 ## @param metrics.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1182 ## @param metrics.startupProbe.periodSeconds Period seconds for startupProbe
1183 ## @param metrics.startupProbe.failureThreshold Failure threshold for startupProbe
1184 ## @param metrics.startupProbe.successThreshold Success threshold for startupProbe
1189 initialDelaySeconds: 5
1192 failureThreshold: 10