memcached

by [riftbit]

Helm chartv5.15.2App 1.6.10Verified publisher

Chart for Memcached

About this chart

Memcached

Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

TL;DR

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/memcached

Introduction

This chart bootstraps a Memcached deployment on a Kubernetes cluster using the Helm package manager.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This Helm chart has been tested on top of Bitnami Kubernetes Production Runtime (BKPR). Deploy BKPR to get automated TLS certificates, logging and monitoring for your applications.

Prerequisites

  • Kubernetes 1.12+
  • Helm 3.1.0

Installing the Chart

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

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/memcached

These commands deploy Memcached on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
nameOverrideString to partially override common.names.fullname template (will maintain the release name)""
fullnameOverrideString to fully override common.names.fullname template""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainDefault Kubernetes cluster domaincluster.local
extraDeployArray of extra objects to deploy with the release[]

Memcached parameters

NameDescriptionValue
image.registryMemcached image registrydocker.io
image.repositoryMemcached image repositorybitnami/memcached
image.tagMemcached image tag (immutable tags are recommended)1.6.10-debian-10-r59
image.pullPolicyMemcached image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
image.debugEnable image debug modefalse
architectureMemcached architecture. Allowed values: standalone or high-availabilitystandalone
hostAliasesAdd deployment host aliases[]
memcachedUsernameMemcached admin user""
memcachedPasswordMemcached admin password""
replicaCountNumber of containers1
commandDefault container command (useful when using custom images)[]
argumentsDefault container args (useful when using custom images)["/run.sh"]
extraEnvAdditional env vars to pass[]
podDisruptionBudget.createSpecifies whether a Pod disruption budget should be createdfalse
podDisruptionBudget.minAvailableMinimum number of pods that need to be available""
podDisruptionBudget.maxUnavailableMaximum number of pods that can be unavailable1
service.typeKubernetes service type for MemcachedClusterIP
service.portMemcached service port11211
service.nodePortKubernetes Service nodePort""
service.loadBalancerIPloadBalancerIP if service type is LoadBalancer""
service.annotationsAdditional annotations for Memcached service{}
autoscaling.enabledEnable memcached statefulset autoscaling (requires architecture: "high-availability")false
autoscaling.minReplicasmemcached statefulset autoscaling minimum number of replicas3
autoscaling.maxReplicasmemcached statefulset autoscaling maximum number of replicas6
autoscaling.targetCPUmemcached statefulset autoscaling target CPU percentage50
autoscaling.targetMemorymemcached statefulset autoscaling target CPU memory50
resources.limitsCPU/Memory resource limits{}
resources.requestsCPU/Memory resource requests{}
portNameName of the main port exposed by memcachedmemcache
securityContext.enabledEnable security contexttrue
securityContext.fsGroupGroup ID for the container1001
securityContext.runAsUserUser ID for the container1001
securityContext.readOnlyRootFilesystemEnable read-only filesystemfalse
podLabelsPod extra labels{}
podAnnotationsPod annotations{}
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keyNode label key to match. Ignored if affinity is set.""
nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set.[]
affinityAffinity for pod assignment{}
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assignment[]
topologySpreadConstraintsTopology Spread Constraints for pod assignment spread across your cluster among failure-domains{}
priorityClassNamePod priority""
initContainersAdd additional init containers to the Memcached pod[]
sidecarsAdd additional sidecar containers to the Memcached pod[]
serviceAccount.createEnable creation of ServiceAccount for memcached podstrue
serviceAccount.nameThe name of the ServiceAccount to use.""
serviceAccount.automountServiceAccountTokenEnable/disable auto mounting of the service account tokentrue
persistence.enabledEnable persistence using PVC (Requires architecture: "high-availability")false
persistence.storageClassPVC Storage Class for Memcached volume""
persistence.annotationsPersistent Volume Claim annotations{}
persistence.accessModesPersistent Volume Access Mode["ReadWriteOnce"]
persistence.sizePVC Storage Request for Memcached volume8Gi
metrics.enabledStart a side-car prometheus exporterfalse
metrics.image.registryMemcached exporter image registrydocker.io
metrics.image.repository

Deploy memcached with OpenTenant

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