cache

by Lava

Helm chartv1.1.1App v2.5.0Apache-2.0Verified publisher

Lava helm chart for the cache service

About this chart

cache

Lava helm chart for the cache service

Lavanet Cache Helm Chart

This Helm chart provides a simple way to deploy and manage Lava cache instances on Kubernetes clusters. Lava cache is an in-memory caching system designed for high performance and scalability.

Installing the Chart

To install the chart with the release name my-cache:

helm repo add lavanet https://lavanet.github.io/helm-charts
helm repo update
helm install my-cache lavanet/cache -n lava-system --create-namespace

Requirements

Kubernetes: >=1.25.0-0

Values

KeyTypeDefaultDescription
additionalArgslist[]Lavap cache additional CLI arguments
affinityobject{}Assign custom [affinity] rules to the deployment
autoscaling.behaviorobject{}Configures the scaling behavior of the target in both Up and Down directions.
autoscaling.enabledboolfalseEnable Horizontal Pod Autoscaler ([HPA]) for the Cache
autoscaling.maxReplicasint5Maximum number of replicas for the Cache [HPA]
autoscaling.minReplicasint1Minimum number of replicas for the Cache [HPA]
autoscaling.targetCPUUtilizationPercentageint50Average CPU utilization percentage for the Cache [HPA]
autoscaling.targetMemoryUtilizationPercentageint50Average memory utilization percentage for the Cache [HPA]
certificate.additionalHostslist[]Certificate Subject Alternate Names (SANs)
certificate.annotationsobject{}Annotations to be applied to the Server Certificate
certificate.domainstring"" (defaults to global.domain)Certificate primary domain (commonName)
certificate.durationstring"" (defaults to 2160h = 90d if not specified)The requested 'duration' (i.e. lifetime) of the certificate. # Ref: https://cert-manager.io/docs/usage/certificate/#renewal
certificate.enabledboolfalseDeploy a Certificate resource (requires cert-manager)
certificate.issuer.groupstring""Certificate issuer group. Set if using an external issuer. Eg. cert-manager.io
certificate.issuer.kindstring""Certificate issuer kind. Either Issuer or ClusterIssuer
certificate.issuer.namestring""Certificate issuer name. Eg. letsencrypt
certificate.privateKey.algorithmstring"RSA"Algorithm used to generate certificate private key. One of: RSA, Ed25519 or ECDSA
certificate.privateKey.encodingstring"PKCS1"The private key cryptography standards (PKCS) encoding for private key. Either: PCKS1 or PKCS8
certificate.privateKey.rotationPolicystring"Never"Rotation policy of private key when certificate is re-issued. Either: Never or Always
certificate.privateKey.sizeint2048Key bit size of the private key. If algorithm is set to Ed25519, size is ignored.
certificate.renewBeforestring"" (defaults to 360h = 15d if not specified)How long before the expiry a certificate should be renewed. # Ref: https://cert-manager.io/docs/usage/certificate/#renewal
certificate.secretTemplateAnnotationsobject{}Annotations that allow the certificate to be composed from data residing in existing Kubernetes Resources
certificate.usageslist[]Usages for the certificate ## Ref: https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.KeyUsage
expiration_multiplierstringnilThe expiration multiplier for items in the cache
expiration_non_finalized_multiplierstringnilThe expiration non finalized multiplier for items in the cache
fullnameOverridestring""String to fully override "cache.fullname"
global.domainstring"my-cache.local"Default domain used by all components # Used for ingresses, certificates, etc.
image.pullPolicystring"IfNotPresent"Image pull policy for the cache
image.repositorystring"ghcr.io/lavanet/lava/lavap"Repository to use for the cache
image.tagstring"" (defaults to Chart.appVersion)Tag to use for the cache
imagePullSecretslist[]Secrets with credentials to pull images from a private registry
ingress.annotationsobject{}Additional ingress annotations
ingress.classNamestring"nginx"Defines which ingress controller will implement the resource
ingress.enabledboolfalseEnable an ingress resource for the provider
ingress.hostnamestring"" (defaults to global.domain)Cache hostname
ingress.pathstring"/"The path to Provider
ingress.pathTypestring"Prefix"Ingress path type. One of Exact, Prefix or ImplementationSpecific
ingress.tlsbooltrueEnable TLS configuration for the domain defined at global.domain # TLS certificate will be retrieved from a TLS secret with name: cache-tls
ingress.tlsSecretNamestringnilCustom Ingress TLS secret
livenessProbe.failureThresholdint3Minimum consecutive failures for the [probe] to be considered failed after having succeeded
livenessProbe.initialDelaySecondsint10Number of seconds after the container has started before [probe] is initiated
livenessProbe.periodSecondsint10How often (in seconds) to perform the [probe]
livenessProbe.successThresholdint1Minimum consecutive successes for the [probe] to be considered successful after having failed
livenessProbe.timeoutSecondsint1Number of seconds after which the [probe] times out
log.formatstring"json"Cache log format, can be json or text
log.levelstring"info"Cache log level
max_itemsstringnilMax items allowed in the cache
metrics.enabledbooltrueShould enable prometheus metrics
metrics.portint20200Metrics service port
metrics.serviceMonitor.additionalLabelsobject{}Prometheus ServiceMonitor labels
metrics.serviceMonitor.annotationsobject{}Prometheus ServiceMonitor annotations
metrics.serviceMonitor.enabledboolfalseEnable a prometheus ServiceMonitor
metrics.serviceMonitor.intervalstring"30s"Prometheus ServiceMonitor interval
metrics.serviceMonitor.metricRelabelingslist[]Prometheus [MetricRelabelConfigs] to apply to samples before ingestion
metrics.serviceMonitor.namespacestring""Prometheus ServiceMonitor namespace
metrics.serviceMonitor.relabelingslist[]Prometheus [RelabelConfigs] to apply to samples before scraping
metrics.serviceMonitor.schemestring""Prometheus ServiceMonitor scheme
metrics.serviceMonitor.selectorobject{}Prometheus ServiceMonitor selector
metrics.serviceMonitor.tlsConfigobject{}Prometheus ServiceMonitor tlsConfig
nameOverridestring""Provide a name in place of release name
nodeSelectorobject{}[Node selector]
podAnnotationsobject{}Annotations for the all deployed pods
podSecurityContextobject{}
readinessProbe.failureThresholdint3Minimum consecutive failures for the [probe] to be considered failed after having succeeded
readinessProbe.initialDelaySecondsint10Number of seconds after the container has started before [probe] is initiated
readinessProbe.periodSecondsint10How often (in seconds) to perform the [probe]
readinessProbe.successThresholdint1Minimum consecutive successes for the [probe] to be considered successful after having failed
readinessProbe.timeoutSecondsint1Number of seconds after which the [probe] times out
replicaCountint1The number of cache pods to run.
resourcesobject{}Resource limits and requests for the cache pods
securityContextobject{}
service.portint20100Cache service port
service.typestring"ClusterIP"Cache service type
serviceAccount.annotationsobject{}annotations to add to the service account
serviceAccount.createbooltruespecifies whether a service account should be created
serviceAccount.namestring""the name of the service account to use. If not set and create is true, a name is generated using the fullname template
tolerationslist[][Tolerations] for use with node taints

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy cache with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cache 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 chartcache is pinned at v1.1.1 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