etcd

by KubeGems

Helm chartv6.2.10App 3.5.5

etcd is a distributed key value store that provides a reliable way to store data across a cluster of machines

About this chart

etcd

etcd is an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance.

TL;DR

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/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. 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
  • PV provisioner support in the underlying infrastructure

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/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

The following tables lists the configurable parameters of the etcd chart and their default values per section/component:

Global parameters

ParameterDescriptionDefault
global.imageRegistryGlobal Docker image registrynil
global.imagePullSecretsGlobal Docker registry secret names as an array[] (does not add image pull secrets to deployed pods)
global.storageClassGlobal storage class for dynamic provisioningnil

Common parameters

ParameterDescriptionDefault
nameOverrideString to partially override common.names.fullnamenil
fullnameOverrideString to fully override common.names.fullnamenil
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[] (evaluated as a template)
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)nil

etcd parameters

ParameterDescriptionDefault
image.registryetcd image registrydocker.io
image.repositoryetcd image namebitnami/etcd
image.tagetcd image tag{TAG_NAME}
image.pullPolicyetcd image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
image.debugSpecify if debug values should be setfalse
auth.rbac.enabledSwitch to enable RBAC authenticationtrue
auth.rbac.allowNoneAuthenticationAllow to use etcd without configuring RBAC authenticationtrue
auth.rbac.rootPasswordPassword for the root usernil
auth.rbac.existingSecretName of the existing secret containing the root passwordnil
auth.client.secureTransportSwitch to encrypt client-to-server communications using TLS certificatesfalse
auth.client.useAutoTLSSwitch to automatically create the TLS certificatesfalse
auth.client.enableAuthenticationSwitch to enable host authentication using TLS certificates. Requires existing secretsecret
auth.client.existingSecretName of the existing secret containing cert files for client-to-server communicationsnil
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.enableAuthenticationSwitch to enable host authentication using TLS certificates. Requires existing secretfalse
auth.peer.existingSecretName of the existing secret containing cert files for server-to-server communicationsnil
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""
initialClusterStateInitial cluster state. Allowed values: 'new' or 'existing'nil
maxProcsSet GOMAXPROCS environment variable to limit the number of CPUsnil
autoCompactionModeSet ETCD_AUTO_COMPACTION_MODE environment variable to define mode of autoCompactionnil
autoCompactionRetentionSet ETCD_AUTO_COMPACTION_RETENTION environment variable to define autoCompaction retentionnil
removeMemberOnContainerTerminationUse a PreStop hook to remove the etcd members from the cluster on container terminationtrue
configurationetcd configuration. Specify content for etcd.conf.ymlnil
existingConfigmapName of existing ConfigMap with etcd configurationnil
commandDefault container command (useful when using custom images)nil
argsDefault container args (useful when using custom images)nil
extraEnvVarsExtra environment variables to be set on etcd container{}
extraEnvVarsCMName of existing ConfigMap containing extra env varsnil
extraEnvVarsSecretName of existing Secret containing extra env varsnil

etcd statefulset parameters

ParameterDescriptionDefault
replicaCountNumber of etcd replicas to deploy1
containerPorts.clientClient port to expose at container level2379
containerPorts.peerPeer port to expose at container level2380
podSecurityContextetcd pods' Security ContextCheck values.yaml file
containerSecurityContextetcd containers' Security ContextCheck values.yaml file
resources.limitsThe resources limits for the etcd container{}
resources.requestsThe requested resources for the etcd container{}
hostAliasesetcd pod host aliases[]
lifecycleHooksOverride default etcd container hooks{}
livenessProbeLiveness probe configuration for etcdCheck values.yaml file
readinessProbeReadiness probe configuration for etcdCheck values.yaml file
startupProbeStartup probe configuration for etcdCheck values.yaml file
customLivenessProbeOverride default liveness probenil
customReadinessProbeOverride default readiness probenil
customStartupProbeOverride default startup probenil
updateStrategyStrategy to use to update podsCheck values.yaml file
podManagementPolicyPod management policy for the etcd statefulsetParallel
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""

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 v6.2.10 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