blob: d1f21468805d6f1686955884742bd48fc24d2bf7 [file] [log] [blame]
Jakub Pavlik93707ec2016-08-10 11:35:18 +02001
2==================================
Tomáš Kukráldaae0d42017-02-08 14:35:43 +01003etcd Formula
Jakub Pavlik93707ec2016-08-10 11:35:18 +02004==================================
5
6Service etcd description
7
Tomáš Kukráldaae0d42017-02-08 14:35:43 +01008Possible `source.engine`:
9
10- **pkg** - install etcd package (default)
11- **docker_hybrid** - copy binaries from docker image (specified in `server.image`)
12
Jakub Pavlik93707ec2016-08-10 11:35:18 +020013Sample pillars
14==============
15
Tomáš Kukrál352eb132017-02-24 22:58:59 +010016Certificates
17-------------
18
19Use 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 Pavlik93707ec2016-08-10 11:35:18 +020036Single 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
52Cluster 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áldaae0d42017-02-08 14:35:43 +010074etcd proxy
Jakub Pavlik93707ec2016-08-10 11:35:18 +020075-------------
76
77.. code-block:: yaml
78
79 etcd:
80 server:
81 enabled: true
82 bind:
83 host: 10.0.175.101
Pavel Cizinsky8835dfa2016-08-10 15:09:25 +020084 proxy: true
Jakub Pavlik93707ec2016-08-10 11:35:18 +020085 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áldaae0d42017-02-08 14:35:43 +010093Run etcd on k8s
marco9c1f23c2016-09-21 11:54:37 +020094---------------
95
96.. code-block:: yaml
97
98 etcd:
99 server:
100 engine: kubernetes
mceloud49b5f1a2017-05-02 15:04:03 +0200101 image: etcd:latest
marco9c1f23c2016-09-21 11:54:37 +0200102
Tomáš Kukráldaae0d42017-02-08 14:35:43 +0100103Copy etcd binary from container
104---------------
105
106.. code-block:: yaml
107
108 etcd:
109 server:
110 image: quay.io/coreos/etcd:latest
111
Jakub Pavlik93707ec2016-08-10 11:35:18 +0200112Read more
113=========
114
Tomáš Kukráldaae0d42017-02-08 14:35:43 +0100115* https://github.com/coreos/etcd
Filip Pytloun0684f012017-02-02 13:02:03 +0100116
117Documentation and Bugs
118======================
119
120To learn how to install and update salt-formulas, consult the documentation
121available online at:
122
123 http://salt-formulas.readthedocs.io/
124
125In the unfortunate event that bugs are discovered, they should be reported to
126the appropriate issue tracker. Use Github issue tracker for specific salt
127formula:
128
129 https://github.com/salt-formulas/salt-formula-etcd/issues
130
131For feature requests, bug reports or blueprints affecting entire ecosystem,
132use Launchpad salt-formulas project:
133
134 https://launchpad.net/salt-formulas
135
136You can also join salt-formulas-users team and subscribe to mailing list:
137
138 https://launchpad.net/~salt-formulas-users
139
140Developers wishing to work on the salt-formulas projects should always base
141their work on master branch and submit pull request against specific formula.
142
143 https://github.com/salt-formulas/salt-formula-etcd
144
145Any questions or feedback is always welcome so feel free to join our IRC
146channel:
147
148 #salt-formulas @ irc.freenode.net