From 6abf600c4d74185c0b1f52662ec7f20d228ad8be Mon Sep 17 00:00:00 2001 From: Maciej Lebiest Date: Sun, 22 Dec 2024 11:52:47 +0100 Subject: [PATCH] add gateway conf --- k8s-gateway.json | 64 ++++++++++++++++++++++++++++++++++++++++++++ src/k8s-gateway.yaml | 36 +++++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 k8s-gateway.json create mode 100644 src/k8s-gateway.yaml diff --git a/k8s-gateway.json b/k8s-gateway.json new file mode 100644 index 0000000..c0cf417 --- /dev/null +++ b/k8s-gateway.json @@ -0,0 +1,64 @@ +{ + "ignition": { + "version": "3.5.0" + }, + "passwd": { + "users": [ + { + "name": "root", + "sshAuthorizedKeys": [ + "ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBADaetOnr6mX9T+wd0ltUAv0G9JxoIkWZMjTvvBRabNqtGVe+WK9y1ZLyee8XxmxoZaZ/r/qSycC/oY0+dl7xv9ZwQHlhMeo1YYIFPd/R1NZu9laYRA+CNTnx+amggXSxccvbIIAu8hs1cX+vad/AVthkDWptrw40RqYyV82cRfVRrvqrQ== maciej@fedora" + ] + } + ] + }, + "storage": { + "disks": [ + { + "device": "/dev/disk/by-id/coreos-boot-disk", + "partitions": [ + { + "label": "root", + "number": 4, + "resize": true, + "sizeMiB": 0 + } + ] + } + ], + "filesystems": [ + { + "device": "/dev/mapper/root", + "format": "btrfs", + "label": "root", + "mountOptions": [ + "noatime", + "discard=async", + "compress-force=zstd:1" + ], + "wipeFilesystem": true + } + ], + "luks": [ + { + "device": "/dev/disk/by-partlabel/root", + "discard": true, + "keyFile": { + "compression": "", + "source": "data:,changeme" + }, + "label": "root", + "name": "root", + "wipeVolume": true + } + ] + }, + "systemd": { + "units": [ + { + "enabled": false, + "name": "zincati.service" + } + ] + } +} diff --git a/src/k8s-gateway.yaml b/src/k8s-gateway.yaml new file mode 100644 index 0000000..f1478c2 --- /dev/null +++ b/src/k8s-gateway.yaml @@ -0,0 +1,36 @@ +variant: fcos +version: 1.6.0 +passwd: + users: + - name: root + ssh_authorized_keys: + - ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBADaetOnr6mX9T+wd0ltUAv0G9JxoIkWZMjTvvBRabNqtGVe+WK9y1ZLyee8XxmxoZaZ/r/qSycC/oY0+dl7xv9ZwQHlhMeo1YYIFPd/R1NZu9laYRA+CNTnx+amggXSxccvbIIAu8hs1cX+vad/AVthkDWptrw40RqYyV82cRfVRrvqrQ== maciej@fedora +storage: + disks: + - device: /dev/disk/by-id/coreos-boot-disk + partitions: + - label: root + number: 4 + size_mib: 0 + resize: true + filesystems: + - device: /dev/mapper/root + format: btrfs + mount_options: + - noatime + - discard=async + - compress-force=zstd:1 + wipe_filesystem: true + label: root + luks: + - name: root + label: root + device: /dev/disk/by-partlabel/root + discard: true + key_file: + inline: changeme # remember to also update /etc/luks/root file + wipe_volume: true +systemd: + units: + - name: "zincati.service" + enabled: false