mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 10:19:35 +00:00
* Install a Kubernetes cluster with 1 master, 2 workers * Setup a 3 node etcd cluster and enable update-engine * Include fleet on the cluster as well
30 lines
903 B
YAML
30 lines
903 B
YAML
---
|
|
ignition_version: 1
|
|
systemd:
|
|
units:
|
|
- name: install.service
|
|
enable: true
|
|
contents: |
|
|
[Unit]
|
|
Requires=network-online.target
|
|
After=network-online.target
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/bin/curl {{.ignition_endpoint}}?{{.query}}&os=installed -o ignition.json
|
|
ExecStart=/usr/bin/curl {{.cloud_endpoint}}?{{.query}}&os=installed -o cloud
|
|
ExecStart=/usr/bin/coreos-install -d /dev/sda -C {{.coreos_channel}} -V {{.coreos_version}} -i ignition.json {{if .cloud_endpoint}}-c cloud{{end}}
|
|
ExecStart=/usr/bin/udevadm settle
|
|
ExecStart=/usr/bin/systemctl reboot
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
{{ if .ssh_authorized_keys }}
|
|
passwd:
|
|
users:
|
|
- name: core
|
|
ssh_authorized_keys:
|
|
{{ range $element := .ssh_authorized_keys }}
|
|
- {{$element}}
|
|
{{end}}
|
|
{{end}}
|