os/butane/k8s-leader-install.yaml

34 lines
838 B
YAML
Raw Normal View History

2022-12-02 10:39:11 +01:00
variant: flatcar
version: 1.0.0
systemd:
units:
2022-12-02 11:19:33 +01:00
- name: installer.service
2022-12-02 10:39:11 +01:00
enabled: true
contents: |
[Unit]
2022-12-02 11:19:33 +01:00
Requires=network-online.target
2022-12-02 10:39:11 +01:00
After=network-online.target
[Service]
Type=forking
2022-12-02 11:19:33 +01:00
TimeoutStartSec=600
2022-12-02 10:39:11 +01:00
RemainAfterExit=yes
2022-12-02 11:19:33 +01:00
ExecStart=/usr/bin/sh -c "flatcar-install -d /dev/vda -i /opt/ignition.json && udevadm settle && systemctl reboot"
2022-12-02 10:39:11 +01:00
[Install]
WantedBy=multi-user.target
storage:
disks:
- device: /dev/vda
wipe_table: true
partitions:
- label: ROOT
filesystems:
- path: /
device: /dev/disk/by-partlabel/ROOT
format: btrfs
wipe_filesystem: true
label: ROOT
files:
2022-12-02 11:19:33 +01:00
- path: /opt/ignition.json
2022-12-02 11:21:39 +01:00
mode: 0700
2022-12-02 10:39:11 +01:00
contents:
2022-12-02 11:21:39 +01:00
source: http://192.168.40.3/leader.json