-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcloud-config.yml
46 lines (44 loc) · 1.38 KB
/
cloud-config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#cloud-config
hostname: <HOSTNAME>
ssh-authorized-keys:
- <PUBLIC-KEY>
coreos:
units:
# turn off automatic updates
- name: update-engine.service
command: stop
- name: locksmithd.service
command: stop
- name: 01-eth0.network
runtime: true
content: |
[Match]
Name=eth0
[Network]
DHCP=ipv4
Address=<PUBLIC_IP>
Gateway=<PUBLIC_IP_GW>
DNS=<DNS_1>
DNS=<DNS_2>
DNS=8.8.8.8
[DHCP]
UseDNS=false
CriticalConnection=true
- name: etcd2.service
command: start
- name: fleet.service
command: start
etcd2:
name: "<HOSTNAME>"
initial-cluster: "<HOSTNAME>=http://<PUBLIC_IP>:2380"
initial-cluster-state: "new"
# multi-region and multi-cloud deployments need to use $public_ipv4
advertise-client-urls: "http://<PUBLIC_IP>:2379"
initial-advertise-peer-urls: "http://<PUBLIC_IP>:2380"
# listen on both the official ports and the legacy ports
# legacy ports can be omitted if your application doesn't depend on them
listen-client-urls: "http://0.0.0.0:2379,http://0.0.0.0:4001"
listen-peer-urls: "http://0.0.0.0:2380"
fleet:
metadata: "region=de"
public-ip: "<PUBLIC_IP>"