This repo is basically a scratch pad for my home cluster.
wget https://get.k3s.io -O k3s-install.sh chmod +x k3s-install.sh systemctl status k3s-agent ./k3s-install.sh server --no-deploy traefik --no-deploy servicelb
curl -sfL https://get.k3s.io | K3S_URL=https://10.0.0.76:6443 K3S_TOKEN=K102e9aa86d859e5d9e1a2ebf7507d0aea9eaec754b960123992ae686aa93c7c93d::server:albe-apple-buster-brown sh -
https://rancher.com/docs/k3s/latest/en/upgrades/automated/
##Install Codefresh https://codefresh.io/features/codefresh-runner/ npm install -g codefresh codefresh runner init
This allows access to GPU hardware and acceleration. https://wiki.ubuntu.com/IntelQuickSyncVideo sudo apt install ubuntu-restricted-addons https://elatov.github.io/2018/04/esxi-65-passthrough-video-card-to-plex-vm/
Testing with ffmpeg apt install gstreamer1.0-vaapi
ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i rolleroaster.mp4 -vf 'fps=30,scale_vaapi=w=640:h=-2:format=nv12' -c:v h264_vaapi -profile 578 -level 30 -bf 0 -b:v 1M -maxrate 1M rollercoaster-test.mp4 usermod -aG video kube
kubectl create namespace argocd kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
https://github.com/kubernetes/examples/tree/master/staging/volumes/nfs
Test write speed: https://www.cyberciti.biz/faq/howto-linux-unix-test-disk-performance-with-dd-command/ dd if=/dev/zero of=/data/tests.deleteme bs=1G count=1 oflag=dsync
Speed on rpi2 12MB/s Speed on atomic pi 52MB/s
Default k3s deploys wtih traefik which will not work with metalLB and cause the cluster to lockup and consume all cpu on the target machien. THIS WILL CONFLICT
helm install metallb stable/metallb --namespace kube-system
--set configInline.address-pools[0].name=default
--set configInline.address-pools[0].protocol=layer2
--set configInline.address-pools[0].addresses[0]=10.0.0.20-10.0.0.60
helm upgrade --install nginx-ingress ingress-nginx/ingress-nginx --namespace kube-system
--set controller.service.loadBalancerIP=10.0.0.22
--set defaultBackend.enabled=false
Fails to start because permission denied on fake ssl cert creation. what's this run as 33 user?
helm upgrade plex ./kube-plex/charts/kube-plex
--values media.plex.values.yml
my-svc.my-namespace.svc.cluster-domain.example http://sabnzbd-service.default.svc.cluster.local:8080
helm install --upgrade minecraft stable/minecraft --values minecraft.values.yaml