Skip to content

Instantly share code, notes, and snippets.

@engineerball
Created February 15, 2017 11:25
Show Gist options
  • Select an option

  • Save engineerball/0e20e71da2ba97a1caba6c74237df35b to your computer and use it in GitHub Desktop.

Select an option

Save engineerball/0e20e71da2ba97a1caba6c74237df35b to your computer and use it in GitHub Desktop.
Kubernetes on CoreOS
#cloud-config
hostname: worker01
coreos:
etcd2:
discovery: https://discovery.etcd.io/<token-id>
listen-client-urls: http://0.0.0.0:2379,http://0.0.0.0:4001
advertise-client-urls: http://172.17.181.248:2379
listen-peer-urls: http://172.17.181.248:2380,http://172.17.181.248:7001
initial-advertise-peer-urls: http://172.17.181.248:2380
data-dir: /var/lib/etcd2
fleet:
public-ip: 172.17.181.248
etcd_servers: "http://172.17.181.248:2379"
flannel:
interface: 172.17.181.248
units:
- name: 00-ens32.network
runtime: true
content: |
[Match]
Name=ens32
[Network]
DNS=172.17.136.11
Address=172.17.181.248/24
Gateway=172.17.181.254
- name: systemd-networkd.service
command: restart
- name: etcd2.service
command: start
- name: fleet.service
command: start
- name: flanneld.service
command: start
drop-ins:
- name: 50-network-config.conf
content: |
[Unit]
Requires=etcd2.service
After=etcd2.service
[Service]
ExecStartPre=/usr/bin/etcdctl set /coreos.com/network/config '{"Network":"10.10.0.0/16" }'
ssh-authorized-keys:
- "ssh-rsa AAAAB...."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment