Add k3s, 1Password Connect, and systemd nix-container-builder to ringtail #209
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/k3s-ringtail-runner"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Extends ringtail from a desktop/gaming NixOS box into an infrastructure node with a k3s cluster, secrets management, and a Forgejo Actions
runner for building containers with Nix.
K3s cluster
ringtail.tail8d86e.ts.netso ArgoCD on indri can manage it via Tailscalek3s-registries.yaml)trustedInterfacesfor cross-node ArgoCD accesskubectladded to system packages1Password Connect + External Secrets Operator
k3s-ringtail:1password-connect-ringtail,external-secrets-crds-ringtail,external-secrets-ringtail,external-secrets-config-ringtailop-credentials,onepassword-token) provisioned by Ansible pre_tasks viaop read, then applied to the1passwordnamespace in post_tasks
Systemd Forgejo Actions runner
services.gitea-actions-runnerwithforgejo-runnerpackage — no DinD, no k8s pod, runs directly on the NixOS hostnix-container-builder:host— jobs execute on the host withnix,skopeo,nodejs, etc. in PATHForgejo Secrets/runner_reg) by Ansible and written to/etc/forgejo-runner/token.envgitea-runner) added tonix.settings.trusted-usersfor nix daemon accessNix container build workflow
.forgejo/workflows/build-container-nix.yamltriggers on*-nix-v[0-9]*tags (e.g.nettest-nix-v1.0.0)nix build -f containers/<name>/default.nix, pushes to Zot viaskopeo copyif: !contains(github.ref_name, '-nix-v')to avoid double-triggeringMise task updates
container-tag-and-releaseauto-detectsdefault.nixvsDockerfileand uses the appropriate tag format (-nix-vvs-v)container-listshows build type indicator ([nix]/[dockerfile])Post-merge
mise run provision-ringtail— deploys k3s token, runner token, NixOS rebuildexternal-secrets-config-ringtail
Add k3s cluster on ringtail with amd64 Forgejo runnerto Add k3s, 1Password Connect, and systemd nix-container-builder to ringtail