A role for preparing and distributing TLS certificates for etcd nodes in a Kubernetes cluster or similar environment. This role handles the creation of a Certificate Authority (CA), generates etcd certificates signed by the CA, and distributes these certificates to etcd nodes.
- Ansible 2.9 or higher
cfsslandcfssljsontools must be installed on the control machine where the playbook is run. These tools are used for certificate generation.githubixx.cfsslrole if needed (defined inmeta/main.yml)
The following variables can be set in defaults/main.yml or overridden in your playbook:
cert_dir: Directory where certificates and keys are stored. Default is/etc/ssl/etcd.
Example:
cert_dir: /etc/ssl/etcdThis role will generate CA and TLS certs for etcd-nodes group. in directory /etc/ssl/etcd
- /etc/ssl/etcd/ca.csr
- /etc/ssl/etcd/ca-key.pem
- /etc/ssl/etcd/ca.pem
- /etc/ssl/etcd/etcd-key.pem
- /etc/ssl/etcd/etcd.pem