Skip to content

Instantly share code, notes, and snippets.

@punkdata
Last active March 22, 2016 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save punkdata/648cc6e318c642c7fb9a to your computer and use it in GitHub Desktop.
Save punkdata/648cc6e318c642c7fb9a to your computer and use it in GitHub Desktop.
Single Instance CoreOS Install
#cloud-config
hostname: coreosolo
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDArlyas86BhZq5KVK9xwnjA5FF6nzEyZv03Ln0PEJ0x90KznA7vijsXoMuu3wC/ZFzxNqdtIi8B7MwbwWi0RSBLF5BeVunA+Oun0vpEtByUEKlyKJSYSJdYmYTjU4LtwowJJQ8FNQ7KrRQyqeriTe/07i5PfuW9XzMQVje1OFV8M8xXmVxBmb1yYpfaBvuynYH6mycO6vdBxGGjmVezTwLeMNDOfEUoa+Fs+i8raMHzteNSUvbyVazCj7i4tucAhf78lpPt+pvNgELdTtyu6sOdDkfjIs/uDEOX5yrgpk0QC3n9WWZjeyBeew3H/n17yyZkU8UaZhhYt+8NmWrndhd ariv3ra@gmail.com
coreos:
etcd2:
# generate a new token for each unique cluster from https://discovery.etcd.io/new?size=3
# specify the initial size of your cluster with ?size=X
discovery: https://discovery.etcd.io/7add703c6ff04b41d5f15ed93490637d
# multi-region and multi-cloud deployments need to use $public_ipv4
advertise-client-urls: http://$private_ipv4:2379,http://$private_ipv4:4001
initial-advertise-peer-urls: http://$private_ipv4: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://$private_ipv4:2380,http://$private_ipv4:7001
units:
- name: etcd2.service
command: start
- name: 00-eth0.network
runtime: true
content: |
[Match]
Name=eth0
[Network]
Address=192.168.177.09/24
Gateway=192.168.177.254
DNS=75.75.75.75
DNS=8.8.8.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment