Public GitOps repository for showing how I run my services on k3s https://tobru.ch/
This repository has been archived on 2023-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Tobias Brunner 313ab18c22 move acls and passwds to sealed secrets 2020-01-26 20:30:42 +01:00
_apps install Stakater reloader app 2020-01-26 19:58:38 +01:00
cert-manager on k3s were using traefik 2020-01-25 20:40:53 +01:00
mosquitto move acls and passwds to sealed secrets 2020-01-26 20:30:42 +01:00
owntracks password is in secret now 2020-01-25 21:05:50 +01:00
sealed-secrets install sealed secrets controller 2020-01-25 20:13:41 +01:00
stakater-reloader correct rolebinding ns 2020-01-26 20:02:23 +01:00
README.md update README 2020-01-26 19:57:32 +01:00

README.md

GitOps for tbrnt k3s hosting

Repo structure

  • Each subdirectory is a namespace
  • _apps is the meta directory for Argo CD apps
  • Another private repo contains stuff in a more approachable format, f.e. for dealing with updating sealed-secrets: gitops-tbrnt-private

k3s on Alpine

  • Install k3s: apk add k3s cni-plugins iptables
  • Enable cgroups: rc-update add cgroups default
  • Adapt service file /etc/init.d/k3s:
#!/sbin/openrc-run

export PATH=/usr/share/cni-plugins/bin:$PATH

name="k3s"
command="/usr/bin/k3s"
command_args="$K3S_OPTS"
command_background="yes"
output_log="/var/log/k3s.log"
error_log="/var/log/k3s.err"

start_stop_daemon_args="server"
pidfile="/run/k3s.pid"

depend() {
	need net
	after firewall
}

Helpful links: