forked from raj-rajaratnam/vagrant-kubernetes-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminion.yml
100 lines (85 loc) · 2.46 KB
/
minion.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#cloud-config
coreos:
update:
reboot-strategy: off
etcd:
discovery: http://%ETCD_DISCOVERY%:4001/v2/keys/cluster
addr: $public_ipv4:4001
peer-addr: $public_ipv4:7001
units:
- name: etcd.service
command: start
- name: fleet.service
command: start
runtime: no
content: |
[Unit]
Description=fleet
[Service]
Environment=FLEET_PUBLIC_IP=$public_ipv4
ExecStart=/usr/bin/fleet
- name: rudder.service
command: start
content: |
[Unit]
Requires=etcd.service
After=etcd.service
[Service]
ExecStart=/opt/bin/rudder -iface=$public_ipv4
Restart=always
RestartSec=5
- name: docker.service
command: restart
content: |
[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.io
Requires=rudder.service
After=rudder.service
[Service]
EnvironmentFile=/run/rudder/subnet.env
ExecStartPre=-/usr/bin/ip link set dev docker0 down
ExecStartPre=-/usr/sbin/brctl delbr docker0
ExecStart=/usr/bin/docker -d -s=btrfs -H fd:// --bip=${RUDDER_SUBNET} --mtu=${RUDDER_MTU}
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
- name: kubelet.service
command: start
content: |
[Unit]
After=etcd.service
After=docker.service
ConditionFileIsExecutable=/opt/bin/kubelet
Description=Kubernetes Kubelet
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
Wants=etcd.service
Wants=docker.service
[Service]
ExecStart=/opt/bin/kubelet \
-address=0.0.0.0 \
-port=10250 \
-hostname_override=$public_ipv4 \
-etcd_servers=http://127.0.0.1:4001
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
- name: proxy.service
command: start
content: |
[Unit]
After=etcd.service
After=docker.service
ConditionFileIsExecutable=/opt/bin/proxy
Description=Kubernetes Proxy
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
Wants=etcd.service
Wants=docker.service
[Service]
ExecStart=/opt/bin/proxy -etcd_servers=http://127.0.0.1:4001
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target