diff --git a/froscon-2024/.gitignore b/froscon-2024/.gitignore new file mode 100644 index 0000000..2843330 --- /dev/null +++ b/froscon-2024/.gitignore @@ -0,0 +1 @@ +image/ diff --git a/froscon-2024/Day 2 Ops - Linux for Kubernetes and Container Workloads.pdf b/froscon-2024/Day 2 Ops - Linux for Kubernetes and Container Workloads.pdf new file mode 100644 index 0000000..6e7b40f Binary files /dev/null and b/froscon-2024/Day 2 Ops - Linux for Kubernetes and Container Workloads.pdf differ diff --git a/froscon-2024/flatcar-booth-loop.pdf b/froscon-2024/flatcar-booth-loop.pdf new file mode 100644 index 0000000..6fd0423 Binary files /dev/null and b/froscon-2024/flatcar-booth-loop.pdf differ diff --git a/froscon-2024/flatcar-flyer.pdf b/froscon-2024/flatcar-flyer.pdf new file mode 100644 index 0000000..48cbe0c Binary files /dev/null and b/froscon-2024/flatcar-flyer.pdf differ diff --git a/froscon-2024/froscon_logo_print_color.png b/froscon-2024/froscon_logo_print_color.png new file mode 100644 index 0000000..68724f9 Binary files /dev/null and b/froscon-2024/froscon_logo_print_color.png differ diff --git a/froscon-2024/kubernetes.yaml b/froscon-2024/kubernetes.yaml new file mode 100644 index 0000000..a61ee2b --- /dev/null +++ b/froscon-2024/kubernetes.yaml @@ -0,0 +1,24 @@ +variant: flatcar +version: 1.0.0 + +storage: + files: + - path: /opt/extensions/kubernetes/kubernetes.raw + mode: 0644 + contents: + source: https://github.com/flatcar/sysext-bakery/releases/download/latest/kubernetes-v1.30.3-x86-64.raw + - path: /etc/flatcar/update.conf + overwrite: true + contents: + inline: | + REBOOT_STRATEGY=off + mode: 0420 + links: + - target: /opt/extensions/kubernetes/kubernetes.raw + path: /etc/extensions/kubernetes.raw + hard: false + +systemd: + units: + - name: update-engine.service + mask: true diff --git a/froscon-2024/transpile.sh b/froscon-2024/transpile.sh new file mode 100755 index 0000000..e5fab22 --- /dev/null +++ b/froscon-2024/transpile.sh @@ -0,0 +1,6 @@ +cat "$1" \ + | docker run --rm \ + -v "$(pwd)":/files \ + -i quay.io/coreos/butane:latest \ + --files-dir /files \ + >"${1/.yaml/.json}" diff --git a/froscon-2024/web.yaml b/froscon-2024/web.yaml new file mode 100644 index 0000000..14691f8 --- /dev/null +++ b/froscon-2024/web.yaml @@ -0,0 +1,61 @@ +variant: flatcar +version: 1.0.0 + +passwd: + users: + - name: caddy + no_create_home: true + groups: [ docker ] + +storage: + files: + - path: /srv/www/html/index.html + mode: 0644 + user: + name: caddy + group: + name: caddy + contents: + inline: | + +

Hallo, FrOSCon!

+ FrOSCon logo + + - path: /srv/www/html/froscon.png + mode: 0644 + user: + name: caddy + group: + name: caddy + contents: + local: froscon_logo_print_color.png + +systemd: + units: + - name: froscon-demo-webserver.service + enabled: true + contents: | + [Unit] + Description=FrOSCon example static web server + After=docker.service + Requires=docker.service + [Service] + User=caddy + TimeoutStartSec=0 + ExecStartPre=-/usr/bin/docker rm --force caddy + ExecStart=docker run -i -p 80:80 --name caddy \ + -v /srv/www/html:/usr/share/caddy \ + docker.io/caddy caddy file-server \ + --root /usr/share/caddy --access-log + ExecStop=/usr/bin/docker stop caddy + Restart=always + RestartSec=5s + [Install] + WantedBy=multi-user.target + + # Disable automated updates so we can demo a manual update + - name: update-engine.service + mask: true + - name: locksmithd.service + mask: true +