Editing Etcd
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 13: | Line 13: | ||
=== Adding a new member to the cluster === | === Adding a new member to the cluster === | ||
To add a new server called <kbd>conf1001.example.com</kbd> to our cluster, using the <kbd>etcdctl</kbd> tool: | To add a new server called <kbd>conf1001.example.com</kbd> to our cluster, using the <kbd>etcdctl</kbd> tool: | ||
+ | <syntaxhighlight lang="bash"> | ||
[[etcdctl -C]] https://etcd1001.example.com:2379 member add conf1001 http://conf1001.example.com:2380 | [[etcdctl -C]] https://etcd1001.example.com:2379 member add conf1001 http://conf1001.example.com:2380 | ||
Added member named conf1001 with ID 5f62a924ac85910 to cluster | Added member named conf1001 with ID 5f62a924ac85910 to cluster | ||
− | + | ETCD_NAME="conf1001" | |
− | + | # Next line is broken down artificially for ease of reading | |
− | + | ETCD_INITIAL_CLUSTER="conf1001=http://conf1001.example.com:2380, | |
− | + | etcd1001=http://etcd1001.example.com:2380, | |
− | + | ETCD_INITIAL_CLUSTER_STATE="existing" | |
+ | </syntaxhighlight> | ||
== etcd ports == | == etcd ports == | ||
Line 26: | Line 28: | ||
== CKA == | == CKA == | ||
− | * [[CKA 1.23]] | + | * [[CKA 1.23]] [[Implement etcd backup and restore]] |
+ | * [[CKA 1.20]] [[Implement etcd backup and restore]] | ||
== Related == | == Related == | ||
* [[Apache Zookeeper]] | * [[Apache Zookeeper]] | ||
− | |||
* <code>[[kubectl -n kube-system get pod]]</code> | * <code>[[kubectl -n kube-system get pod]]</code> | ||
/etc/kubernetes/pki/etcd/ca.crt | /etc/kubernetes/pki/etcd/ca.crt | ||
Line 36: | Line 38: | ||
/etc/kubernetes/pki/etcd/server.key | /etc/kubernetes/pki/etcd/server.key | ||
[[Rancher]]: https://hub.docker.com/r/rancher/mirrored-coreos-etcd | [[Rancher]]: https://hub.docker.com/r/rancher/mirrored-coreos-etcd | ||
− | |||
− | |||
== See also == | == See also == |
Advertising: