infinispan

by joaquinito2051

Helm chartv0.9.0App 16.2Apache-2.0

A Helm chart that lets you build and deploy Infinispan clusters.

About this chart

Helm Chart for Infinispan

A Helm chart that lets you build and deploy Infinispan Server clusters.

Build configuration

Configure the container images for Infinispan Server pods by specifying values in the images.* section of this chart.

ValueDescriptionDefaultAdditional Information
images.serverFQN of the Infinispan Server image to deploy.quay.io/infinispan/server:16.2-
images.initContainerFQN of a minimal Linux container for the initContainer.registry.access.redhat.com/ubi8-micro-

Deployment configuration

Configure your Infinispan cluster by specifying values in the deploy.* section of this chart.

ValueDescriptionDefaultAdditional Information
deploy.clusterDomainSpecifies the internal Kubernetes cluster domain.cluster.local-
deploy.replicasSpecifies the number of nodes in your Infinispan cluster, with a pod created for each node.1-
deploy.container.imagePullSecretsImage pull secrets for pulling from a private registry.[]Reference a k8s secret containing credentials for pulling image from a private registry.
deploy.container.imagePullPolicyThe Infinispan image pull policy."Always"-
deploy.container.extraJvmOptsPasses JVM options to Infinispan Server.""-
deploy.container.librariesLibraries to be downloaded before server startup.""Specify multiple, space-separated artifacts represented as URLs or as Maven coordinates. Archive artifacts in .tar, .tar.gz or .zip formats will be extracted.
deploy.container.envAdditional environment variables in K8s format.""See docs for examples of strings, ConfigMaps and Secrets
deploy.container.storage.ephemeralDefines whether storage is ephemeral or permanent.falseSet the value to true to use ephemeral storage, which means all stored data is deleted when clusters shut down or restart.
deploy.container.storage.sizeDefines how much storage is allocated to each Infinispan pod.1Gi-
deploy.container.storage.storageClassNameSpecifies the name of a StorageClass object to use for the persistent volume claim (PVC).""By default, the persistent volume claim uses the storage class that has the storageclass.kubernetes.io/is-default-class annotation set to true. If you include this field, you must specify an existing storage class as the value.
deploy.container.resources.limits.cpuDefines the CPU limit, in CPU units, for each Infinispan pod.500m-
deploy.container.resources.limits.memoryDefines the memory limit, in bytes, for each Infinispan pod.512Mi-
deploy.container.resources.requests.cpuSpecifies the maximum CPU requests, in CPU units, for each Infinispan pod.500m-
deploy.container.resources.requests.memorySpecifies the maximum memory requests, in bytes, for each Infinispan pod.512Mi-
deploy.security.secretNameSpecifies the name of a secret that creates credentials and configures security authorization.""If you provide a security secret then deploy.security.batch does not take effect.
deploy.security.batchProvides a batch file for the Infinispan command line interface (CLI) to create credentials and configure security authorization.""The CLI runs the batch file before server startup.
deploy.expose.typeSpecifies the service that exposes Hot Rod and REST endpoints outside the Kubernetes cluster and allows network access to your Infinispan cluster.RouteValid options: ["", "Route", "LoadBalancer", "NodePort"]. Set an empty value ("") if you do not want to expose {brandname} on the network.
deploy.expose.nodePortSpecifies a network port for node port services within the default range of 30000 to 32767.0If you do not specify a port, the platform selects an available one.
deploy.expose.hostSpecifies the hostname where the Ingress is exposed, if required.""
deploy.expose.annotationsAdds annotations to the service that exposes Infinispan on the network.{}-
deploy.logging.console.jsonOutputs logs as JSON on stdout instead of the default colored text format. Useful for log aggregation pipelines (ELK, Loki, etc.). Each log line includes time, service, namespace, and pod fields.falseThe POD_NAME and POD_NAMESPACE environment variables are automatically injected via the Downward API and used to populate the pod and namespace fields.
deploy.logging.categoriesConfigures Infinispan cluster log categories and levels.{}-
deploy.podAnnotationsAdds annotations to each Infinispan pod that you create.{}-
deploy.podLabelsAdds labels to each Infinispan pod that you create.{}When deploy.usePrefixedLabels is false, the keys app and clusterName are reserved and ignored. When true, the keys infinispan_app and infinispan_clusterName are reserved and ignored.
deploy.svcLabelsAdds labels to each service that you create.{}-
deploy.resourceLabelsAdds labels to all Infinispan resources including pods and services.{}-
deploy.tolerationsNode taints to tolerate[]-
deploy.nodeSelectorDefines the nodeSelector policy used by the cluster's StatefulSet{}-
deploy.nodeAffinityDefines the nodeAffinity policy used by the cluster's StatefulSet{}-
deploy.podAffinityDefines the podAffinity policy used by the cluster's StatefulSet{}-
deploy.podAntiAffinityDefines the podAntiAffinity policy used by the cluster's StatefulSetpodAntiAffinity: >preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchLabels: clusterName: {{ include "infinispan-helm-charts.name" . }} app: infinispan-pod topologyKey: kubernetes.io/hostname weight: 100Default selector labels in this rule automatically reflect the value of deploy.usePrefixedLabels.
deploy.makeDataDirWritableAllows write access to the data directory for each Infinispan Server node.falseSetting the value to true creates an initContainer that runs chmod -R on the /opt/infinispan/server/data directory and changes its permissions.
deploy.monitoring.enabledEnable or disable ServiceMonitor functionality.falseUsers must have monitoring-edit role assigned by the admin to deploy the Helm chart with ServiceMonitor enabled.
deploy.nameOverrideSpecifies a name for all Infinispan cluster resources.Helm Chart release nameConfigure a name for the created resources only if you need it to be different to the Helm Chart release name.
deploy.usePrefixedLabelsUse project-specific prefixed keys for internal selector labels to avoid collisions with admission controllers (e.g. Kyverno).falseWhen false, selector labels use app and clusterName. When true, they use infinispan_app and infinispan_clusterName. Changing this value on an existing cluster requires deleting and recreating the StatefulSet due to the immutability of the selector field.
deploy.securityContextDefines the securityContext settings used by the cluster's StatefulSet{}-
deploy.ssl.endpointSecretNameSpecifies the name of the secret that contains certificate for endpoint encryption""-
deploy.ssl.transportSecretNameSpecifies the name of the secret that contains certificate for transport encryption""-
deploy.ssl.certmanager.endpoint.enabledEnable cert-manager to create the endpoint TLS secretfalseRequires cert-manager to be installed. Uses deploy.ssl.endpointSecretName as the secret name.
deploy.ssl.certmanager.endpoint.issuerRefReference to an existing Issuer or ClusterIssuer-If omitted, a self-signed Issuer is created automatically.
deploy.ssl.certmanager.endpoint.keystorePasswordPassword for PKCS12 keystore generation-If provided, cert-manager generates a keystore.p12 in the secret.
deploy.ssl.certmanager.endpoint.additionalDnsNamesAdditional DNS names to include in the certificate[]Internal DNS names are computed automatically.
deploy.ssl.certmanager.transport.enabledEnable cert-manager to create the transport TLS secretfalseRequires cert-manager to be installed. Uses deploy.ssl.transportSecretName as the secret name.
deploy.ssl.certmanager.transport.issuerRefReference to an existing Issuer or ClusterIssuer-If omitted, a self-signed Issuer is created automatically.
deploy.ssl.certmanager.transport.keystorePasswordPassword for PKCS12 keystore generation-If provided, cert-manager generates a keystore.p12 in the secret.
deploy.ssl.certmanager.transport.additionalDnsNamesAdditional DNS names to include in the certificate[]Internal DNS names are computed automatically.
deploy.volumeMountsAdd custome volume mounts to infinispan[]-
deploy.volumesAdd custome volumes to infinispan[]-
deploy.infinispanInfinispan Server configuration.-You should not change the default socket bindings or the security realm and endpoints named "metrics". Modifying these default properties can result in unexpected behavior and loss of service.

Cert-Manager Integration

This chart can automatically create TLS certificates using cert-manager. Cert-manager must be installed in your cluster before enabling this feature.

Basic Usage

To enable cert-manager for endpoint TLS, set the following values:

deploy:
  ssl:
    endpointSecretName: "my-endpoint-cert"
    certmanager:
      endpoint:
        enabled: true

This creates a Certificate resource that provisions the secret specified by endpointSecretName. DNS names for the certificate are computed automatically from the release name, namespace, and cluster domain.

Custom Issuer

By default, a self-signed Issuer is created automatically. To use your own Issuer or ClusterIssuer:

deploy:
  ssl:
    certmanager:
      endpoint:
        enabled: true
        issuerRef:
          name: my-issuer
          kind: ClusterIssuer

PKCS12 Keystore

To include a PKCS12 keystore in the generated secret:

deploy:
  ssl:
    certmanager:
      endpoint:
        enabled: true
        keystorePassword: "changeit"

Transport TLS

Transport TLS secures internal cluster communication and can be enabled independently:

deploy:
  ssl:
    endpointSecretName: "my-endpoint-cert"
    transportSecretName: "my-transport-cert"
    certmanager:
      endpoint:
        enabled: true
      transport:
        enabled: true

Additional DNS Names

To add custom DNS names beyond the auto-computed entries:

deploy:
  ssl:
    certmanager:
      endpoint:
        enabled: true
        additionalDnsNames:
          - "custom.example.com"
          - "*.example.com"

Deploy infinispan with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has infinispan on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartinfinispan is pinned at v0.9.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply