Helm chartv8.5.6App 3.5.5

etcd is a distributed key-value store designed to securely store data across a cluster. etcd is widely used in production on account of its reliability, fault-tolerance and ease of use.

About this chart

Etcd packaged by Bitnami

etcd is a distributed key-value store designed to securely store data across a cluster. etcd is widely used in production on account of its reliability, fault-tolerance and ease of use.

Overview of Etcd

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

Azure-ready Charts with Containers from marketplace.azurecr.io

This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo

TL;DR

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

Introduction

This chart bootstraps a etcd 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.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+
  • PV provisioner support in the underlying infrastructure

Installing the Chart

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

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

These commands deploy etcd 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
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)""
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[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the deployment["sleep"]
diagnosticMode.argsArgs to override all containers in the deployment["infinity"]

etcd parameters

NameDescriptionValue
image.registryetcd image registrydocker.io
image.repositoryetcd image namebitnami/etcd
image.tagetcd image tag3.5.5-debian-11-r1
image.digestetcd image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
image.pullPolicyetcd image pull policyIfNotPresent
image.pullSecretsetcd image pull secrets[]
image.debugEnable image debug modefalse
auth.rbac.createSwitch to enable RBAC authenticationtrue
auth.rbac.allowNoneAuthenticationAllow to use etcd without configuring RBAC authenticationtrue
auth.rbac.rootPasswordRoot user password. The root user is always root""
auth.rbac.existingSecretName of the existing secret containing credentials for the root user""
auth.rbac.existingSecretPasswordKeyName of key containing password to be retrieved from the existing secret""
auth.token.typeAuthentication token type. Allowed values: 'simple' or 'jwt'jwt
auth.token.privateKey.filenameName of the file containing the private key for signing the JWT tokenjwt-token.pem
auth.token.privateKey.existingSecretName of the existing secret containing the private key for signing the JWT token""
auth.token.signMethodJWT token sign methodRS256
auth.token.ttlJWT token TTL10m
auth.client.secureTransportSwitch to encrypt client-to-server communications using TLS certificatesfalse
auth.client.useAutoTLSSwitch to automatically create the TLS certificatesfalse
auth.client.existingSecretName of the existing secret containing the TLS certificates for client-to-server communications""
auth.client.enableAuthenticationSwitch to enable host authentication using TLS certificates. Requires existing secretfalse
auth.client.certFilenameName of the file containing the client certificatecert.pem
auth.client.certKeyFilenameName of the file containing the client certificate private keykey.pem
auth.client.caFilenameName of the file containing the client CA certificate""
auth.peer.secureTransportSwitch to encrypt server-to-server communications using TLS certificatesfalse
auth.peer.useAutoTLSSwitch to automatically create the TLS certificatesfalse
auth.peer.existingSecretName of the existing secret containing the TLS certificates for server-to-server communications""
auth.peer.enableAuthenticationSwitch to enable host authentication using TLS certificates. Requires existing secretfalse
auth.peer.certFilenameName of the file containing the peer certificatecert.pem
auth.peer.certKeyFilenameName of the file containing the peer certificate private keykey.pem
auth.peer.caFilenameName of the file containing the peer CA certificate""
autoCompactionModeAuto compaction mode, by default periodic. Valid values: "periodic", "revision".""
autoCompactionRetentionAuto compaction retention for mvcc key value store in hour, by default 0, means disabled""
initialClusterStateInitial cluster state. Allowed values: 'new' or 'existing'""
logLevelSets the log level for the etcd process. Allowed values: 'debug', 'info', 'warn', 'error', 'panic', 'fatal'info
maxProcsLimits the number of operating system threads that can execute user-level""
removeMemberOnContainerTerminationUse a PreStop hook to remove the etcd members from the etcd cluster on container terminationtrue
configurationetcd configuration. Specify content for etcd.conf.yml""
existingConfigmapExisting ConfigMap with etcd configuration""
extraEnvVarsExtra environment variables to be set on etcd container[]
extraEnvVarsCMName of existing ConfigMap containing extra env vars""
extraEnvVarsSecretName of existing Secret containing extra env vars""
commandDefault container command (useful when using custom images)[]
argsDefault container args (useful when using custom images)[]

etcd statefulset parameters

NameDescriptionValue
replicaCountNumber of etcd replicas to deploy1
updateStrategy.typeUpdate strategy type, can be set to RollingUpdate or OnDelete.RollingUpdate
podManagementPolicyPod management policy for the etcd statefulsetParallel
hostAliasesetcd pod host aliases[]
lifecycleHooksOverride default etcd container hooks{}
containerPorts.clientClient port to expose at container level2379
containerPorts.peerPeer port to expose at container level2380
podSecurityContext.enabledEnable

Deploy etcd with OpenTenant

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