Skip to content

Instantly share code, notes, and snippets.

@rvasilev
Last active January 9, 2018 07:03
Show Gist options
  • Save rvasilev/cac6b6dbf7b17a23a156c066beacfeeb to your computer and use it in GitHub Desktop.
Save rvasilev/cac6b6dbf7b17a23a156c066beacfeeb to your computer and use it in GitHub Desktop.
#cloud-config
hostname: rcluster00
ssh_authorized_keys:
- ssh-rsa #
#coreos:
# etcd:
# discovery: https://discovery.etcd.io/#
# advertise-client-urls: http://94.130.98.209:2379
# 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
# listen-peer-urls: http://{PRIVATE_IPV4}:2380
# name: my-etcd-1
#listen_client_urls: https://10.240.0.1:2379
#advertise_client_urls: https://10.240.0.1:2379
#listen_peer_urls: https://10.240.0.1:2380
#initial_advertise_peer_urls: https://10.240.0.1:2380
###initial_cluster: my-etcd-1=https://10.240.0.1:2380,my-etcd-2=https://10.240.0.2:2380,my-etcd-3=https://10.240.0.3:2380
# initial_cluster_token: my-etcd-token
# initial_cluster_state: new
# fleet:
# public-ip: {PUBLIC_IPV4}
# metadata: region=europe,public_ip={PUBLIC_IPV4}
# flannel:
# interface: $private_ipv4
# units:
# - name: etcd-member.service
# command: start
# See issue: https://github.com/coreos/etcd/issues/3600#issuecomment-165266437
#drop-ins:
# - name: "timeout.conf"
# content: |
# [Service]
# TimeoutStartSec=0
# - name: fleet.service
# command: start
# Network configuration should be here, e.g:
# - name: 00-eno1.network
# content: "[Match]\nName=eno1\n\n[Network]\nDHCP=yes\n\n[DHCP]\nUseMTU=9000\n"
# - name: 00-eno2.network
# runtime: true
# content: "[Match]\nName=eno2\n\n[Network]\nDHCP=yes\n\n[DHCP]\nUseMTU=9000\n"
# - 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.1.0.0/16" }'
# - name: docker.service
# command: start
# drop-ins:
# - name: 60-docker-wait-for-flannel-config.conf
# content: |
# [Unit]
# After=flanneld.service
# Requires=flanneld.service
# [Service]
# Restart=always
# - name: docker-tcp.socket
# command: start
# enable: true
# content: |
# [Unit]
# Description=Docker Socket for the API
# [Socket]
# ListenStream=2375
# Service=docker.service
# BindIPv6Only=both
# [Install]
# WantedBy=sockets.target
# units:
# ...
# - name: 00-eno2.network
# runtime: true
# content: "[Match]\nName=eno2\n\n[Network]\nDHCP=yes\n\n[DHCP]\nUseMTU=9000\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment