forked from kubernetes-retired/bootkube
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuser-data.sample
More file actions
57 lines (53 loc) · 1.7 KB
/
user-data.sample
File metadata and controls
57 lines (53 loc) · 1.7 KB
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
#cloud-config
coreos:
flannel:
interface: $public_ipv4
units:
- name: etcd2.service
command: start
- name: flanneld.service
command: start
drop-ins:
- name: 50-network-config.conf
content: |
[Service]
ExecStartPre=/usr/bin/etcdctl set /coreos.com/network/config '{ "Network": "10.2.0.0/16" }'
- name: docker.service
drop-ins:
- name: 50-flannel.conf
content: |
[Unit]
Requires=flanneld.service
After=flanneld.service
- name: kubelet.service
enable: true
command: start
content: |
[Service]
EnvironmentFile=/etc/environment
Environment=KUBELET_ACI=quay.io/coreos/hyperkube
Environment=KUBELET_VERSION=v1.3.0_coreos.1
ExecStartPre=/bin/mkdir -p /etc/kubernetes/manifests
ExecStartPre=/bin/mkdir -p /srv/kubernetes/manifests
ExecStartPre=/bin/mkdir -p /etc/kubernetes/checkpoint-secrets
ExecStart=/usr/lib/coreos/kubelet-wrapper \
--api-servers=https://172.17.4.100:443 \
--kubeconfig=/etc/kubernetes/kubeconfig \
--lock-file=/var/run/lock/kubelet.lock \
--exit-on-lock-contention=true \
--allow-privileged \
--config=/etc/kubernetes/manifests \
--hostname-override=${COREOS_PUBLIC_IPV4} \
--node-labels=master=true \
--minimum-container-ttl-duration=3m0s \
--cluster_dns=10.3.0.10 \
--cluster_domain=cluster.local
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
write_files:
- path: "/etc/kubernetes/kubeconfig"
permissions: "0644"
owner: core
content: |