pres: more info about k3s, code blocks for demo

This commit is contained in:
Andreas Larsen 2022-11-02 13:49:05 +01:00
parent 7230419a2b
commit 9f26be5a10

View File

@ -1,3 +1,5 @@
#+TITLE: K8s & Homelabbing
* Hva er kubernetes?
#+ATTR_ORG: :width 900
[[./images/k8s-logo.png]]
@ -48,9 +50,11 @@
- openebs
- cert-manager
- loki
- prometheus
- grafana
- container registry
- nginx ingress controller
- FluxCD
* Hvordan kjøre din egen k8s?
@ -65,6 +69,8 @@
- k3d
- kind
** Yaml, yaml, yaml, yaml...
* Hardware
- Single machine
@ -78,18 +84,35 @@
Wireguard!
* K3s
** Kommer med mye essentials ut av boksen
- Flannel overlay
- Traefik ingress
- KlipperLB LoadBalancer
- LocalProvisioner StorageClass
- CoreDNS
** Lightweight og Customizable
- Single Binary
- Nesten alle komponenter kan byttes ut
** Bygget mer for "utradisjonelle" k8s miljø
- Flannel
- KlipperLB
* Hvordan putter jeg ting i clusteret?
** Manuelt
- docker hub
- MER YAML!
** Helm!
#+attr_org: :width 200
[[./images/helm.png]]
- artifacthub
** Fluxcd!
@ -105,26 +128,38 @@
** Reddit
- selfhosted
- homelab
- datahoarder
- k3s
- /r/selfhosted
- /r/DataHoarder
- /r/homelab
- /r/HomeServer
- /r/k3s
- /r/rancher
- /r/linux
** StackExchange
* Demo?
#+begin_src bash
#+begin_src bash :results drawer replace
k3d cluster delete
k3d cluster create -p "8081:80@loadbalancer" --agents 2
#+end_src
#+begin_src bash :results drawer replace
kubectl get nodes
#+end_src
kubectl get pods -A
#+begin_src bash :results drawer replace
kubectl get pods -A -o wide
#+end_src
#+begin_src bash :results drawer replace
helm repo add podinfo https://stefanprodan.github.io/podinfo
helm install podinfo podinfo/podinfo --set ingress.enabled=true
curl -H 'Host: podinfo.local' localhost:8081
#+end_src
#+begin_src bash :results drawer replace
curl -H 'Host: podinfo.local' localhost:8081
#+end_src