Skip to content

Instantly share code, notes, and snippets.

@v1k0d3n
Created May 23, 2016 00:03
Show Gist options
  • Select an option

  • Save v1k0d3n/f51d1ac81e1378a1e6f4a284334ceb88 to your computer and use it in GitHub Desktop.

Select an option

Save v1k0d3n/f51d1ac81e1378a1e6f4a284334ceb88 to your computer and use it in GitHub Desktop.
---
ignition_version: 1
id: "kubemaster"
name: "kubemaster"
profile: "kubemaster"
selector:
mac: "00-1f-c6-9b-97-d0
storage:
disks:
- device: /dev/sda
wipe_table: true
partitions:
- label: ROOT
number: 0
filesystems:
- device: "/dev/nvme0n1"
format: "btrfs"
create:
force: true
options:
- "-LROOT"
systemd:
units:
- name: etcd2.service
enable: true
dropins:
- name: 40-etcd-cluster.conf
contents: |
[Service]
Environment="ETCD_NAME={{.etcd_name}}"
Environment="ETCD_ADVERTISE_CLIENT_URLS=http://192.168.1.135:2379"
Environment="ETCD_INITIAL_ADVERTISE_PEER_URLS=http://192.168.1.135:2380"
Environment="ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379"
Environment="ETCD_LISTEN_PEER_URLS=http://192.168.1.135:2380"
Environment="ETCD_INITIAL_CLUSTER=kubemaster=http://192.168.1.135:2380,kubenode01=http://192.168.1.136:2380,kubenode02=http://192.168.1.137:2380,kubenode03=http://192.168.1.138:2380,kubenode04=http://192.168.1.139:2380"
Environment="ETCD_INITIAL_CLUSTER_STATE=new"
Environment="ETCD_STRICT_RECONFIG_CHECK=true"
- name: fleet.service
enable: true
dropins:
- name: fleet-metadata.conf
contents: |
[Service]
Environment="FLEET_METADATA=jinkit"
networkd:
units:
- name: 00-enp0s31f6.network
contents: |
[Match]
Name=enp0s31f6
[Network]
Gateway=192.168.1.1
DNS=192.168.1.70
Address=192.168.1.135
passwd:
users:
- name: <user>
groups:
- "sudo"
- "docker"
ssh_authorized_keys:
- ssh-rsa <key-removed>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment