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
16## @param global.imageRegistry Global Docker image registry
17## @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.
18## @param global.imagePullSecrets Global Docker registry secret names as an array
19## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
20## @param global.storageClass DEPRECATED: use global.defaultStorageClass instead
27 ## - myRegistryKeySecretName
30 defaultStorageClass: ""
32 ## Security parameters
35 ## @param global.security.allowInsecureImages Allows skipping image verification
36 allowInsecureImages: false
37 ## Compatibility adaptations for Kubernetes platforms
40 ## Compatibility adaptations for Openshift
43 ## @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)
45 adaptSecurityContext: disabled
47## @section Common parameters
50## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
53## @param nameOverride String to partially override common.names.fullname template (will maintain the release name)
56## @param fullnameOverride String to fully override common.names.fullname template
59## @param commonLabels Add labels to all the deployed resources
62## @param commonAnnotations Add annotations to all the deployed resources
65## @param clusterDomain Kubernetes Cluster Domain
67clusterDomain: cluster.local
68## @param extraDeploy Array of extra objects to deploy with the release
71## @param usePasswordFiles Mount credentials as files instead of using environment variables
74## @section Tomcat parameters
77## Iamguarded Tomcat image version
78## @param image.registry [default: REGISTRY_NAME] Tomcat image registry
79## @param image.repository [default: REPOSITORY_NAME/tomcat] Tomcat image repository
80## @skip image.tag Tomcat image tag (immutable tags are recommended)
81## @param image.digest Tomcat image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
82## @param image.pullPolicy Tomcat image pull policy
83## @param image.pullSecrets Specify docker-registry secret names as an array
84## @param image.debug Specify if debug logs should be enabled
88 repository: chainguard-private/tomcat-iamguarded
91 ## Specify a imagePullPolicy
92 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
94 pullPolicy: IfNotPresent
95 ## Optionally specify an array of imagePullSecrets.
96 ## Secrets must be manually created in the namespace.
97 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
100 ## - myRegistryKeySecretName
103 ## Set to true if you would like to see extra information on logs
106## @param automountServiceAccountToken Mount Service Account token in pod
108automountServiceAccountToken: false
109## @param hostAliases Deployment pod host aliases
110## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
113## @param tomcatUsername Tomcat admin user
116## @param tomcatPassword Tomcat admin password
119## @param existingSecret Use existing secret for credentials details (`tomcatUsername` and `tomcatPassword` will be ignored and picked up from this secret)
122## @param secretKeys.adminUsernameKey Name of key in existing secret to use instead of default `tomcat-username` key to provide Tomcat admin username (overrides `tomcatUsername`). Only used when `existingSecret` is set
123## @param secretKeys.adminPasswordKey Name of key in existing secret to use instead of default `tomcat-password` key to provide Tomcat admin password (overrides `tomcatPassword`). Only used when `existingSecret` is set
128## @param tomcatAllowRemoteManagement Enable remote access to management interface
130tomcatAllowRemoteManagement: 0
131## @param catalinaOpts Java runtime option used by tomcat JVM
134## @param command Override default container command (useful when using custom images)
137## @param args Override default container args (useful when using custom images)
140## @param extraEnvVars Extra environment variables to be set on Tomcat container
147## @param extraEnvVarsCM Name of existing ConfigMap containing extra environment variables
150## @param extraEnvVarsSecret Name of existing Secret containing extra environment variables
152extraEnvVarsSecret: ""
153## @section Tomcat deployment parameters
156## @param replicaCount Specify number of Tomcat replicas
162 ## @param deployment.type Use Deployment or StatefulSet
165## Strategy to use to update Pods
168 ## @param updateStrategy.type StrategyType
169 ## Can be set to RollingUpdate or OnDelete
172## @param containerPorts.http HTTP port to expose at container level
176## @param containerExtraPorts Extra ports to expose at container level
179## containerExtraPorts:
181## containerPort: 8081
183containerExtraPorts: []
184## Tomcat pods' Security Context
185## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
186## @param podSecurityContext.enabled Enable Tomcat pods' Security Context
187## @param podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
188## @param podSecurityContext.sysctls Set kernel settings using the sysctl interface
189## @param podSecurityContext.supplementalGroups Set filesystem extra groups
190## @param podSecurityContext.fsGroup Set Tomcat pod's Security Context fsGroup
194 fsGroupChangePolicy: Always
196 supplementalGroups: []
198## Tomcat containers' SecurityContext
199## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
200## @param containerSecurityContext.enabled Enabled containers' Security Context
201## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
202## @param containerSecurityContext.runAsUser Set containers' Security Context runAsUser
203## @param containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
204## @param containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
205## @param containerSecurityContext.privileged Set container's Security Context privileged
206## @param containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
207## @param containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
208## @param containerSecurityContext.capabilities.drop List of capabilities to be dropped
209## @param containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
211containerSecurityContext:
218 readOnlyRootFilesystem: true
219 allowPrivilegeEscalation: false
223 type: "RuntimeDefault"
224## Tomcat containers' resource requests and limits
225## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
226## We usually recommend not to specify default resources and to leave this as a conscious
227## choice for the user. This also increases chances charts run on environments with little
228## resources, such as Minikube. If you do want to specify resources, uncomment the following
229## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
230## @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).
232resourcesPreset: "micro"
233## @param resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
244## Configure extra options for liveness probe
245## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
246## @param livenessProbe.enabled Enable livenessProbe
247## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
248## @param livenessProbe.periodSeconds Period seconds for livenessProbe
249## @param livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
250## @param livenessProbe.failureThreshold Failure threshold for livenessProbe
251## @param livenessProbe.successThreshold Success threshold for livenessProbe
255 initialDelaySeconds: 120
260## Configure extra options for readiness probe
261## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
262## @param readinessProbe.enabled Enable readinessProbe
263## @param readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
264## @param readinessProbe.periodSeconds Period seconds for readinessProbe
265## @param readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
266## @param readinessProbe.failureThreshold Failure threshold for readinessProbe
267## @param readinessProbe.successThreshold Success threshold for readinessProbe
271 initialDelaySeconds: 30
276## Configure extra options for startup probe
277## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-startup-probes/#configure-probes
278## @param startupProbe.enabled Enable startupProbe
279## @param startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
280## @param startupProbe.periodSeconds Period seconds for startupProbe
281## @param startupProbe.timeoutSeconds Timeout seconds for startupProbe
282## @param startupProbe.failureThreshold Failure threshold for startupProbe
283## @param startupProbe.successThreshold Success threshold for startupProbe
287 initialDelaySeconds: 30
292## @param customLivenessProbe Override default liveness probe
294customLivenessProbe: {}
295## @param customReadinessProbe Override default readiness probe
297customReadinessProbe: {}
298## @param customStartupProbe Override default startup probe
300customStartupProbe: {}
301## @param podLabels Extra labels for Tomcat pods
302## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
305## @param podAnnotations Annotations for Tomcat pods
306## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
309## @param podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
310## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
313## @param podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
314## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
316podAntiAffinityPreset: soft
317## Node affinity preset
318## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
321 ## @param nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
324 ## @param nodeAffinityPreset.key Node label key to match. Ignored if `affinity` is set.
326 ## key: "kubernetes.io/e2e-az-name"
329 ## @param nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set.
336## @param affinity Affinity for pod assignment. Evaluated as a template.
337## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
338## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
341## @param nodeSelector Node labels for pod assignment. Evaluated as a template.
342## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
345## @param schedulerName Alternative scheduler
346## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
349## @param lifecycleHooks [object] Override default etcd container hooks
352## @param podManagementPolicy podManagementPolicy to manage scaling operation of pods (only in StatefulSet mode)
353## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
355podManagementPolicy: ""
356## @param tolerations Tolerations for pod assignment. Evaluated as a template.
357## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
360## @param topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
361## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
363topologySpreadConstraints: []
364## @param extraPodSpec Optionally specify extra PodSpec
367## @param extraVolumes Optionally specify extra list of additional volumes for Tomcat pods in Deployment
370## @param extraVolumeClaimTemplates Optionally specify extra list of additional volume claim templates for Tomcat pods in StatefulSet
372extraVolumeClaimTemplates: []
373## @param extraVolumeMounts Optionally specify extra list of additional volumeMounts for Tomcat container(s)
376## @param initContainers Add init containers to the Tomcat pods.
379## - name: your-image-name
381## imagePullPolicy: Always
384## containerPort: 1234
387## Pod Disruption Budget configuration
388## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
389## @param pdb.create Enable/disable a Pod Disruption Budget creation
390## @param pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
391## @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.
397## @param sidecars Add sidecars to the Tomcat pods.
400## - name: your-image-name
402## imagePullPolicy: Always
405## containerPort: 1234
408## Enable persistence using Persistent Volume Claims
409## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
412 ## @param persistence.enabled Enable persistence
415 ## @param persistence.storageClass PVC Storage Class for Tomcat volume
416 ## If defined, storageClassName: <storageClass>
417 ## If set to "-", storageClassName: "", which disables dynamic provisioning
418 ## If undefined (the default) or set to null, no storageClassName spec is
419 ## set, choosing the default provisioner. (gp2 on AWS, standard on
420 ## GKE, AWS & OpenStack)
423 ## @param persistence.annotations Persistent Volume Claim annotations
426 ## @param persistence.accessModes PVC Access Modes for Tomcat volume
430 ## @param persistence.size PVC Storage Request for Tomcat volume
433 ## @param persistence.existingClaim An Existing PVC name for Tomcat volume
436 ## @param persistence.selectorLabels Selector labels to use in volume claim template in statefulset
437 ## Applicable when deployment.type is statefulset
440## Network Policy configuration
441## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
444 ## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created
447 ## @param networkPolicy.allowExternal Don't require server label for connections
448 ## The Policy model to apply. When set to false, only pods with the correct
449 ## server label will have network access to the ports server is listening
450 ## on. When true, server will accept connections from any source
451 ## (with the correct destination port).
454 ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
456 allowExternalEgress: true
457 ## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
467 ## - matchExpressions:
473 ## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
483 ## - matchExpressions:
490 ## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
491 ## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
493 ingressNSMatchLabels: {}
494 ingressNSPodMatchLabels: {}
496## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
499 ## @param serviceAccount.create Enable creation of ServiceAccount for Tomcat pod
502 ## @param serviceAccount.name The name of the ServiceAccount to use.
503 ## If not set and create is true, a name is generated using the common.names.fullname template
506 ## @param serviceAccount.automountServiceAccountToken Allows auto mount of ServiceAccountToken on the serviceAccount created
507 ## Can be set to false if pods using this serviceAccount do not need to use K8s API
509 automountServiceAccountToken: false
510 ## @param serviceAccount.annotations Additional custom annotations for the ServiceAccount
513## @section Traffic Exposure parameters
519 ## @param service.type Kubernetes Service type
520 ## For minikube, set this to NodePort, elsewhere use LoadBalancer
523 ## @param service.ports.http Service HTTP port
527 ## @param service.nodePorts.http Kubernetes http node port
528 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
532 ## @param service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
535 ## @param service.loadBalancerIP Port Use serviceLoadBalancerIP to request a specific static IP, otherwise leave blank
538 ## @param service.clusterIP Service Cluster IP
543 ## @param service.loadBalancerSourceRanges Service Load Balancer sources
544 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
546 ## loadBalancerSourceRanges:
549 loadBalancerSourceRanges: []
550 ## @param service.externalTrafficPolicy Enable client source IP preservation
551 ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
553 externalTrafficPolicy: Cluster
554 ## @param service.annotations Annotations for Tomcat service
555 ## set the LoadBalancer service type to internal only.
556 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
559 ## @param service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
560 ## If "ClientIP", consecutive client requests will be directed to the same Pod
561 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
563 sessionAffinity: None
564 ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
565 ## sessionAffinityConfig:
567 ## timeoutSeconds: 300
569 sessionAffinityConfig: {}
570 ## Headless service properties
573 ## @param service.headless.annotations Annotations for the headless service.
576## Ingress configuratiom
579 ## @param ingress.enabled Enable ingress controller resource
582 ## DEPRECATED: Use ingress.annotations instead of ingress.certManager
583 ## certManager: false
586 ## @param ingress.hostname Default host for the ingress resource
588 hostname: tomcat.local
589 ## @param ingress.annotations Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
590 ## For a full list of possible ingress annotations, please see
591 ## ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md
592 ## Use this parameter to set the required annotations for cert-manager, see
593 ## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
597 ## kubernetes.io/ingress.class: nginx
598 ## cert-manager.io/cluster-issuer: cluster-issuer-name
601 ## @param ingress.tls Enable TLS configuration for the hostname defined at `ingress.hostname` parameter
602 ## TLS certificates will be retrieved from a TLS secret with name: {{- printf "%s-tls" .Values.ingress.hostname }}
603 ## You can use the ingress.secrets parameter to create this TLS secret, rely on cert-manager to create it, or
604 ## let the chart create self-signed certificates for you
607 ## @param ingress.extraHosts The list of additional hostnames to be covered with this ingress record.
608 ## Most likely the hostname above will be enough, but in the event more hosts are needed, this is an array
611 ## - name: tomcat.local
615 ## @param ingress.extraTls The tls configuration for additional hostnames to be covered with this ingress record.
616 ## see: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
621 ## secretName: tomcat.local-tls
624 ## @param ingress.extraPaths Any additional arbitrary paths that may need to be added to the ingress under the main host.
625 ## For example: The ALB ingress controller requires a special rule for handling SSL redirection.
629 ## serviceName: ssl-redirect
630 ## servicePort: use-annotation
633 ## @param ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
636 ## @param ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
637 ## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster .
638 ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
641 ## @param ingress.secrets If you're providing your own certificates, please use this to add the certificates as secrets
642 ## key and certificate should start with -----BEGIN CERTIFICATE----- or -----BEGIN RSA PRIVATE KEY-----
643 ## name should line up with a secretName set further up
645 ## If it is not set and you're using cert-manager, this is unneeded, as it will create the secret for you
646 ## If it is not set and you're NOT using cert-manager either, self-signed certificates will be created
647 ## It is also possible to create and manage the certificates outside of this helm chart
648 ## Please see README.md for more information
652 ## - name: tomcat.local-tls
657 ## @param ingress.extraRules Additional rules to be covered with this ingress record
658 ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-rules
661 ## - host: tomcat.local
671 ## @param ingress.apiVersion Force Ingress API version (automatically detected if not set)
674 ## @param ingress.path Ingress path
677 ## @param ingress.pathType Ingress path type
679 pathType: ImplementationSpecific
680## @section Volume Permissions parameters
683## Init containers parameters:
684## volumePermissions: Change the owner and group of the persistent volume mountpoint to runAsUser:fsGroup values from the securityContext section.
687 ## @param volumePermissions.enabled Enable init container that changes volume permissions in the data directory
690 ## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
691 ## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image repository
692 ## @skip volumePermissions.image.tag Init container volume-permissions image tag
693 ## @param volumePermissions.image.digest Init container volume-permissions image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
694 ## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
695 ## @param volumePermissions.image.pullSecrets Specify docker-registry secret names as an array
699 repository: chainguard-private/os-shell-iamguarded
702 pullPolicy: IfNotPresent
703 ## Optionally specify an array of imagePullSecrets.
704 ## Secrets must be manually created in the namespace.
705 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
708 ## - myRegistryKeySecretName
711 ## Init container' resource requests and limits
712 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
713 ## We usually recommend not to specify default resources and to leave this as a conscious
714 ## choice for the user. This also increases chances charts run on environments with little
715 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
716 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
717 ## @param volumePermissions.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production).
719 resourcesPreset: "none"
720 ## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
731## @section Metrics parameters
733## Prometheus Exporters / Metrics
736 ## Prometheus JMX Exporter: exposes the majority of tomcat jvm metrics
739 ## @param metrics.jmx.enabled Whether or not to expose JMX metrics to Prometheus
742 ## @param metrics.jmx.catalinaOpts custom option used to enabled JMX on tomcat jvm evaluated as template
744 catalinaOpts: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=5555 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.local.only=true
745 ## Iamguarded JMX exporter image
746 ## @param metrics.jmx.image.registry [default: REGISTRY_NAME] JMX exporter image registry
747 ## @param metrics.jmx.image.repository [default: REPOSITORY_NAME/jmx-exporter] JMX exporter image repository
748 ## @skip metrics.jmx.image.tag JMX exporter image tag (immutable tags are recommended)
749 ## @param metrics.jmx.image.digest JMX exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
750 ## @param metrics.jmx.image.pullPolicy JMX exporter image pull policy
751 ## @param metrics.jmx.image.pullSecrets Specify docker-registry secret names as an array
755 repository: chainguard-private/jmx-exporter-iamguarded
758 ## Specify a imagePullPolicy
759 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
761 pullPolicy: IfNotPresent
762 ## Optionally specify an array of imagePullSecrets (secrets must be manually created in the namespace)
763 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
766 ## - myRegistryKeySecretName
769 ## @param metrics.jmx.config [string] Configuration file for JMX exporter
770 ## Specify content for jmx-tomcat-prometheus.yml. Evaluated as a template
773 jmxUrl: service:jmx:rmi:///jndi/rmi://127.0.0.1:5555/jmxrmi
776 lowercaseOutputName: true
777 lowercaseOutputLabelNames: true
778 attrNameSnakeCase: true
779 ## Prometheus JMX exporter containers' Security Context
780 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
781 ## @param metrics.jmx.containerSecurityContext.enabled Enabled containers' Security Context
782 ## @param metrics.jmx.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
783 ## @param metrics.jmx.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
784 ## @param metrics.jmx.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
785 ## @param metrics.jmx.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
786 ## @param metrics.jmx.containerSecurityContext.privileged Set container's Security Context privileged
787 ## @param metrics.jmx.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
788 ## @param metrics.jmx.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
789 ## @param metrics.jmx.containerSecurityContext.capabilities.drop List of capabilities to be dropped
790 ## @param metrics.jmx.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
791 containerSecurityContext:
798 readOnlyRootFilesystem: true
799 allowPrivilegeEscalation: false
803 type: "RuntimeDefault"
804 ## Prometheus JMX Exporter' resource requests and limits
805 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
806 ## We usually recommend not to specify default resources and to leave this as a conscious
807 ## choice for the user. This also increases chances charts run on environments with little
808 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
809 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
810 ## @param metrics.jmx.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if metrics.jmx.resources is set (metrics.jmx.resources is recommended for production).
812 resourcesPreset: "none"
813 ## @param metrics.jmx.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
824 ## @param metrics.jmx.ports.metrics JMX Exporter container metrics ports
828 ## @param metrics.jmx.existingConfigmap Name of existing ConfigMap with JMX exporter configuration
829 ## NOTE: This will override metrics.jmx.config
831 existingConfigmap: ""
832 ## Prometheus pod Monitor
833 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#podmonitorspec
836 ## @param metrics.podMonitor.podTargetLabels Used to keep given pod's labels in target
838 ## - app.kubernetes.io/name
841 ## @param metrics.podMonitor.enabled Create PodMonitor Resource for scraping metrics using PrometheusOperator
844 ## @param metrics.podMonitor.namespace Optional namespace in which Prometheus is running
847 ## @param metrics.podMonitor.interval Specify the interval at which metrics should be scraped
850 ## @param metrics.podMonitor.scrapeTimeout Specify the timeout after which the scrape is ended
853 ## @param metrics.podMonitor.additionalLabels [object] Additional labels that can be used so PodMonitors will be discovered by Prometheus
854 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec
857 ## @param metrics.podMonitor.scheme Scheme to use for scraping
860 ## @param metrics.podMonitor.tlsConfig [object] TLS configuration used for scrape endpoints used by Prometheus
861 ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#tlsconfig
866 ## name: existingSecretName
869 ## @param metrics.podMonitor.relabelings [array] Prometheus relabeling rules
872 ## Custom PrometheusRule to be defined
873 ## The value is evaluated as a template, so, for example, the value can depend on .Release or .Chart
874 ## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions
877 ## @param metrics.prometheusRule.enabled Set this to true to create prometheusRules for Prometheus operator
880 ## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so prometheusRules will be discovered by Prometheus
883 ## @param metrics.prometheusRule.namespace namespace where prometheusRules resource should be created
886 ## @param metrics.prometheusRule.rules Create specified [Rules](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/)
887 ## Make sure to constraint the rules to the current tomcat service.
889 ## - alert: HugeReplicationLag
890 ## expr: up{service="{{ template "common.names.fullname" . }}-metrics"} < 1
893 ## severity: critical
895 ## description: Service {{ template "common.names.fullname" . }} Tomcat is down since 1m.
896 ## summary: Tomcat instance is down.