No description
| helmcharts | ||
| nothelm | ||
| README.md | ||
Setup
- Install alpine linux
- Install k3s
- Edit /etc/conf.d/k3s and put K3S_OPTS="--disable=servicelb --disable=traefik"
- Enable/start k3s service
- Install https://argo-cd.readthedocs.io/en/stable/cli_installation/#download-latest-version
- Switch service type to LoadBalancer. (TODO set this inside argocd config??)
- Create secret for DNS name kubectl create -n argocd secret tls argocd-server-tls --cert=cert.pem --key=key.pem
- Add 1 new project- second one should be picked up automaticcly
- Enable shared mount for / (https://web.archive.org/web/20240723175124/https://wiki.alpinelinux.org/wiki/Running_glibc_programs#Distrobox_+_Podman)
project: default
source:
repoURL: 'https://git.roshless.me/infra/kubernetes-deploy-home.git'
path: nothelm
targetRevision: HEAD
directory:
recurse: true
jsonnet: {}
exclude: '*.md'
destination:
server: 'https://kubernetes.default.svc'
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- If helmcharts app is not present- add it manually using
helmcharts/templates/root-app.yaml
How to enable TLS on ingresses
- Create cert using XCA
- Add cert (WITH CA ALSO INSIDE!) and key to K8S secret
kubectl create secret tls ingress--tls --cert=cert.crt --key=key.pem -n <APP_NS>
- Make changes to ingress
spec: tls:
- hosts:
- .lan secretName: ingress--tls
Longhorn on Alpine
Install dependencies AND run this as root:
mount --make-rshared /
Add to fstab
/dev/vg0/lv_root / ext4 rw,relatime,rshared 0 1