etcd
by KubeGems
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
| Parameter | Description | Default |
|---|---|---|
global.imageRegistry | Global Docker image registry | nil |
global.imagePullSecrets | Global Docker registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
global.storageClass | Global storage class for dynamic provisioning | nil |
Common parameters
| Parameter | Description | Default |
|---|---|---|
nameOverride | String to partially override common.names.fullname | nil |
fullnameOverride | String to fully override common.names.fullname | nil |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
clusterDomain | Default Kubernetes cluster domain | cluster.local |
extraDeploy | Array of extra objects to deploy with the release | [] (evaluated as a template) |
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | nil |
etcd parameters
| Parameter | Description | Default |
|---|---|---|
image.registry | etcd image registry | docker.io |
image.repository | etcd image name | bitnami/etcd |
image.tag | etcd image tag | {TAG_NAME} |
image.pullPolicy | etcd image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
image.debug | Specify if debug values should be set | false |
auth.rbac.enabled | Switch to enable RBAC authentication | true |
auth.rbac.allowNoneAuthentication | Allow to use etcd without configuring RBAC authentication | true |
auth.rbac.rootPassword | Password for the root user | nil |
auth.rbac.existingSecret | Name of the existing secret containing the root password | nil |
auth.client.secureTransport | Switch to encrypt client-to-server communications using TLS certificates | false |
auth.client.useAutoTLS | Switch to automatically create the TLS certificates | false |
auth.client.enableAuthentication | Switch to enable host authentication using TLS certificates. Requires existing secret | secret |
auth.client.existingSecret | Name of the existing secret containing cert files for client-to-server communications | nil |
auth.client.certFilename | Name of the file containing the client certificate | cert.pem |
auth.client.certKeyFilename | Name of the file containing the client certificate private key | key.pem |
auth.client.caFilename | Name of the file containing the client CA certificate | "" |
auth.peer.secureTransport | Switch to encrypt server-to-server communications using TLS certificates | false |
auth.peer.useAutoTLS | Switch to automatically create the TLS certificates | false |
auth.peer.enableAuthentication | Switch to enable host authentication using TLS certificates. Requires existing secret | false |
auth.peer.existingSecret | Name of the existing secret containing cert files for server-to-server communications | nil |
auth.peer.certFilename | Name of the file containing the peer certificate | cert.pem |
auth.peer.certKeyFilename | Name of the file containing the peer certificate private key | key.pem |
auth.peer.caFilename | Name of the file containing the peer CA certificate | "" |
initialClusterState | Initial cluster state. Allowed values: 'new' or 'existing' | nil |
maxProcs | Set GOMAXPROCS environment variable to limit the number of CPUs | nil |
autoCompactionMode | Set ETCD_AUTO_COMPACTION_MODE environment variable to define mode of autoCompaction | nil |
autoCompactionRetention | Set ETCD_AUTO_COMPACTION_RETENTION environment variable to define autoCompaction retention | nil |
removeMemberOnContainerTermination | Use a PreStop hook to remove the etcd members from the cluster on container termination | true |
configuration | etcd configuration. Specify content for etcd.conf.yml | nil |
existingConfigmap | Name of existing ConfigMap with etcd configuration | nil |
command | Default container command (useful when using custom images) | nil |
args | Default container args (useful when using custom images) | nil |
extraEnvVars | Extra environment variables to be set on etcd container | {} |
extraEnvVarsCM | Name of existing ConfigMap containing extra env vars | nil |
extraEnvVarsSecret | Name of existing Secret containing extra env vars | nil |
etcd statefulset parameters
| Parameter | Description | Default |
|---|---|---|
replicaCount | Number of etcd replicas to deploy | 1 |
containerPorts.client | Client port to expose at container level | 2379 |
containerPorts.peer | Peer port to expose at container level | 2380 |
podSecurityContext | etcd pods' Security Context | Check values.yaml file |
containerSecurityContext | etcd containers' Security Context | Check values.yaml file |
resources.limits | The resources limits for the etcd container | {} |
resources.requests | The requested resources for the etcd container | {} |
hostAliases | etcd pod host aliases | [] |
lifecycleHooks | Override default etcd container hooks | {} |
livenessProbe | Liveness probe configuration for etcd | Check values.yaml file |
readinessProbe | Readiness probe configuration for etcd | Check values.yaml file |
startupProbe | Startup probe configuration for etcd | Check values.yaml file |
customLivenessProbe | Override default liveness probe | nil |
customReadinessProbe | Override default readiness probe | nil |
customStartupProbe | Override default startup probe | nil |
updateStrategy | Strategy to use to update pods | Check values.yaml file |
podManagementPolicy | Pod management policy for the etcd statefulset | Parallel |
podAffinityPreset | Pod 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartetcd is pinned at v6.2.10 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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