blob: f2dcd049a4d64f79126fd3e8a8790caf815e7b8a [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
Pavel Cizinskydad807d2018-12-12 12:01:32 +010046 token: $(uuidgen)
Jakub Pavlik93707ec2016-08-10 11:35:18 +020047 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