initial commit
This commit is contained in:
commit
4f375e285c
|
@ -0,0 +1,33 @@
|
|||
# GitOps for tbrnt k3s hosting
|
||||
|
||||
|
||||
## 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:
|
||||
|
||||
* https://rancher.com/docs/k3s/latest/en/advanced/#additional-preparation-for-alpine-linux-setup
|
||||
* https://github.com/rancher/k3s/issues/660
|
|
@ -0,0 +1,17 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: cert-manager
|
||||
namespace: argocd
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
destination:
|
||||
namespace: cert-manager
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
path: cert-manager
|
||||
repoURL: https://git.tbrnt.ch/tobru/gitops-tbrnt.git
|
||||
targetRevision: HEAD
|
||||
|
Reference in New Issue