# Use external etcd with Cluster API To replace the built-in datastore with an external etcd to manage the Kubernetes state in the Cluster API (CAPI) workload cluster follow this `how-to guide`. This example shows how to create a 3-node workload cluster with an external etcd. ## Prerequisites To follow this guide, you will need: - [Clusterctl][clusterctl] installed - A CAPI management cluster initialised with the infrastructure, bootstrap and control plane providers of your choice. Please refer to the [getting-started guide][getting-started] for instructions. - Secured 3-node etcd deployment ## Create Kubernetes secrets Create three Kubernetes secrets: - peaches-etcd-servers - peaches-etcd - peaches-apiserver-etcd-client ```{note} Replace `peaches` with the name of your cluster. It is important to follow this naming convention for the secrets since the providers will be looking for these names. ``` Create the secret for the etcd servers: ``` kubectl apply -f - < peaches.yaml ``` Create the cluster: ``` kubectl create -f peaches.yaml ``` To check the status of the cluster, run: ``` clusterctl describe cluster peaches ``` [getting-started]: ../tutorial/getting-started.md [capi-templates]: https://github.com/canonical/cluster-api-k8s/tree/main/templates [clusterctl]: https://cluster-api.sigs.k8s.io/clusterctl/overview