Follow these instructions to install, run, and test etcd with etcd-operator in a Kubernetes cluster.
Pre-requisites:
- kubectl
- Kubernetes cluster and
kubectl
configured to use it- If you don’t have a Kubernetes cluster, you can use kind to create a local one
- cert-manager installed in the cluster
Install etcd-operator:
kubectl apply -f https://github.com/aenix-io/etcd-operator/releases/latest/download/etcd-operator.yaml
Check the operator is running:
kubectl get pods -n etcd-operator-system -l control-plane=controller-manager
Create a simple etcd cluster:
kubectl apply -f https://github.com/aenix-io/etcd-operator/raw/main/examples/manifests/etcdcluster-simple.yaml
Caution: by default emptyDir storage is used. It means such cluster configuration is not intended for long-term storage.
Check the etcd cluster is running:
kubectl get pods -l app.kubernetes.io/managed-by=etcd-operator