Jakub Pavlik | 93707ec | 2016-08-10 11:35:18 +0200 | [diff] [blame] | 1 | |
| 2 | ================================== |
Tomáš Kukrál | daae0d4 | 2017-02-08 14:35:43 +0100 | [diff] [blame] | 3 | etcd Formula |
Jakub Pavlik | 93707ec | 2016-08-10 11:35:18 +0200 | [diff] [blame] | 4 | ================================== |
| 5 | |
| 6 | Service etcd description |
| 7 | |
Tomáš Kukrál | daae0d4 | 2017-02-08 14:35:43 +0100 | [diff] [blame] | 8 | Possible `source.engine`: |
| 9 | |
| 10 | - **pkg** - install etcd package (default) |
| 11 | - **docker_hybrid** - copy binaries from docker image (specified in `server.image`) |
| 12 | |
Jakub Pavlik | 93707ec | 2016-08-10 11:35:18 +0200 | [diff] [blame] | 13 | Sample pillars |
| 14 | ============== |
| 15 | |
Tomáš Kukrál | 352eb13 | 2017-02-24 22:58:59 +0100 | [diff] [blame] | 16 | Certificates |
| 17 | ------------- |
| 18 | |
| 19 | Use certificate authentication (for peers and clients). Certificates must be prepared in advance. |
| 20 | |
| 21 | .. code-block:: yaml |
| 22 | |
| 23 | etcd: |
| 24 | server: |
| 25 | enabled: true |
| 26 | ssl: |
| 27 | enabled: true |
| 28 | bind: |
| 29 | host: 10.0.175.101 |
| 30 | token: $(uuidgen) |
| 31 | members: |
| 32 | - host: 10.0.175.101 |
| 33 | name: etcd01 |
| 34 | port: 4001 |
| 35 | |
Jakub Pavlik | 93707ec | 2016-08-10 11:35:18 +0200 | [diff] [blame] | 36 | Single etcd service |
| 37 | --------------------- |
| 38 | |
| 39 | .. code-block:: yaml |
| 40 | |
| 41 | etcd: |
| 42 | server: |
| 43 | enabled: true |
| 44 | bind: |
| 45 | host: 10.0.175.101 |
| 46 | token: $(uuidgen) |
| 47 | members: |
| 48 | - host: 10.0.175.101 |
| 49 | name: etcd01 |
| 50 | port: 4001 |
| 51 | |
| 52 | Cluster etcd service |
| 53 | ---------------------- |
| 54 | |
| 55 | .. code-block:: yaml |
| 56 | |
| 57 | etcd: |
| 58 | server: |
| 59 | enabled: true |
| 60 | bind: |
| 61 | host: 10.0.175.101 |
| 62 | token: $(uuidgen) |
| 63 | members: |
| 64 | - host: 10.0.175.101 |
| 65 | name: etcd01 |
| 66 | port: 4001 |
| 67 | - host: 10.0.175.102 |
| 68 | name: etcd02 |
| 69 | port: 4001 |
| 70 | - host: 10.0.175.103 |
| 71 | name: etcd03 |
| 72 | port: 4001 |
| 73 | |
Tomáš Kukrál | daae0d4 | 2017-02-08 14:35:43 +0100 | [diff] [blame] | 74 | etcd proxy |
Jakub Pavlik | 93707ec | 2016-08-10 11:35:18 +0200 | [diff] [blame] | 75 | ------------- |
| 76 | |
| 77 | .. code-block:: yaml |
| 78 | |
| 79 | etcd: |
| 80 | server: |
| 81 | enabled: true |
| 82 | bind: |
| 83 | host: 10.0.175.101 |
Pavel Cizinsky | 8835dfa | 2016-08-10 15:09:25 +0200 | [diff] [blame] | 84 | proxy: true |
Jakub Pavlik | 93707ec | 2016-08-10 11:35:18 +0200 | [diff] [blame] | 85 | members: |
| 86 | - host: 10.0.175.101 |
| 87 | name: etcd01 |
| 88 | - host: 10.0.175.102 |
| 89 | name: etcd02 |
| 90 | - host: 10.0.175.103 |
| 91 | name: etcd03 |
| 92 | |
Tomáš Kukrál | daae0d4 | 2017-02-08 14:35:43 +0100 | [diff] [blame] | 93 | Run etcd on k8s |
marco | 9c1f23c | 2016-09-21 11:54:37 +0200 | [diff] [blame] | 94 | --------------- |
| 95 | |
| 96 | .. code-block:: yaml |
| 97 | |
| 98 | etcd: |
| 99 | server: |
| 100 | engine: kubernetes |
mceloud | 49b5f1a | 2017-05-02 15:04:03 +0200 | [diff] [blame] | 101 | image: etcd:latest |
marco | 9c1f23c | 2016-09-21 11:54:37 +0200 | [diff] [blame] | 102 | |
Tomáš Kukrál | daae0d4 | 2017-02-08 14:35:43 +0100 | [diff] [blame] | 103 | Copy etcd binary from container |
| 104 | --------------- |
| 105 | |
| 106 | .. code-block:: yaml |
| 107 | |
| 108 | etcd: |
| 109 | server: |
| 110 | image: quay.io/coreos/etcd:latest |
| 111 | |
Jakub Pavlik | 93707ec | 2016-08-10 11:35:18 +0200 | [diff] [blame] | 112 | Read more |
| 113 | ========= |
| 114 | |
Tomáš Kukrál | daae0d4 | 2017-02-08 14:35:43 +0100 | [diff] [blame] | 115 | * https://github.com/coreos/etcd |
Filip Pytloun | 0684f01 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 116 | |
| 117 | Documentation and Bugs |
| 118 | ====================== |
| 119 | |
| 120 | To learn how to install and update salt-formulas, consult the documentation |
| 121 | available online at: |
| 122 | |
| 123 | http://salt-formulas.readthedocs.io/ |
| 124 | |
| 125 | In the unfortunate event that bugs are discovered, they should be reported to |
| 126 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 127 | formula: |
| 128 | |
| 129 | https://github.com/salt-formulas/salt-formula-etcd/issues |
| 130 | |
| 131 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 132 | use Launchpad salt-formulas project: |
| 133 | |
| 134 | https://launchpad.net/salt-formulas |
| 135 | |
| 136 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 137 | |
| 138 | https://launchpad.net/~salt-formulas-users |
| 139 | |
| 140 | Developers wishing to work on the salt-formulas projects should always base |
| 141 | their work on master branch and submit pull request against specific formula. |
| 142 | |
| 143 | https://github.com/salt-formulas/salt-formula-etcd |
| 144 | |
| 145 | Any questions or feedback is always welcome so feel free to join our IRC |
| 146 | channel: |
| 147 | |
| 148 | #salt-formulas @ irc.freenode.net |