WebServer: Porovnání verzí
(→Dashboard) |
|||
Řádka 79: | Řádka 79: | ||
data: | data: | ||
users: YWRtaW46JDEkY1E0WWl2NWIkS0hQMGFSZkhkTXVGd2Q5RVVyNGZOLgo= | users: YWRtaW46JDEkY1E0WWl2NWIkS0hQMGFSZkhkTXVGd2Q5RVVyNGZOLgo= | ||
+ | |||
+ | apiVersion: v1 | ||
+ | type: kubernetes.io/tls | ||
+ | kind: Secret | ||
+ | metadata: | ||
+ | name: clazzor.eu-cert | ||
+ | namespace: default | ||
+ | data: | ||
+ | tls.crt: "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUU3ekNDQTllZ0F3SUJBZ0lTQkpSdFlRdjQ2UlBtZGRWNjhibDlxL0k4TUEwR0NTcUdTSWIzRFFFQkN3VUEKTURJeEN6QUpCZ05WQkFZVEFsVlRNUll3RkFZRFZRUUtFdzFNWlhRbmN5QkZibU55ZVhCME1Rc3dDUVlEVlFRRApFd0pTTXpBZUZ3MHlNekE0TVRneE9UTTJNRE5hRncweU16RXhNVFl4T1RNMk1ESmFNQlV4RXpBUkJnTlZCQU1UCkNtTnNZWHA2YjNJdVpYVXdnZ0VpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElCRHdBd2dnRUtBb0lCQVFETmgzZ2MKZFpXZTBXN0Vmdzk5bTZBcnhDUHRCcExnbGlXL21uZ1VQcGE0bHZsekhqWWdwWnBVR1UzOERaL0IwTHMrMVVISgorYTFhR1UzVEs2dC84TXhoNlZyUThTRHRmdWxZUDV4Vnh2bUtYVTNFR1lacU5Uc04zRC81SkxvNTJ5aFJoTGxHCnptTVZEY09TU1FkQjZFTk9ORUV2akNDSHdvRGNHczQwMEJnUGQ1R1lBUGR5QTlKbk1KUUtTVklBSmpVQWkxZ0kKejdnNnR6M2svdlMrL3ltb2pxcFRBaEZxc3VuWHdGWEVzVVlnb3VWWUszcjhpLzhvSWFUYmVHNEUxdngvR1hrTgpQQi9oY2VKRXNrZkthTU5oK04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SFZ3SGhlaGdZUi9wbUdDMlB3eUZ6NlgxYnBhNlhHQmljOENhZzREK2U0ZWsvClpmVFdRUDFXTlNvYkIrc1NGSFdQWDJiL3dHa3Uyc0ljNjBtZnF5YmpZVW1XWUFzUVNoR21IWWlDaWtXN3dhUVIKQ2xNekVVV2I3eUxkWjFZRUtnZzZTQ3Y0VmVhNzNaNjh0SHE2MS9mUkFvR0JBSktEa2pPcVlBMGhicWdxVXl0cwpOUi9JdDIvaThUamtjakxxRm1NQjdlSEZXVEdITkFGSzRyb3FVVXc0MFVBUDlybDhHNGR3UFl2aVVkMzg0dXpBCnpvbnpRZmNOWVNCTUNMdjA4ZjVCdjBocktpcVBaVEhjd244c0JYNHQ4NWF1cldDS25JQnJ4aG9aRzB1UW81SGsKa1FZRXNHSWtQc2p1TVhLQWJ4cEVDNTgyCi0tLS0tRU5EIFBSSVZBVEUgS0VZLS0tLS0K" | ||
+ | |||
+ | apiVersion: traefik.containo.us/v1alpha1 | ||
+ | kind: TLSStore | ||
+ | metadata: | ||
+ | name: default | ||
+ | namespace: default | ||
+ | spec: | ||
+ | defaultCertificate: | ||
+ | secretName: clazzor.eu-cert |
Aktuální verze z 15. 10. 2023, 17:24
Obsah
Instalace
K3S přeinstalovaný
K3S už má součástí traefik nainstalovaný, konfigurační soubory jdou najít v /var/lib/rancher/k3s/server/manifests/traefik.yaml, ty ale při aktualizaci se přepíšou, proto se musí vytvořit externí soubor
Helm
helm repo add traefik https://traefik.github.io/charts helm repo update helm install traefik traefik/traefik
Pokud chceme už změnit nějaký nastavení v helmu tak můžeme pomocí dodatečného souboru (override.yml)
helm install traefik-dev traefik/traefik -f override.yaml
Konfigurace Helm configu
Vytvoříme si soubor v /var/lib/rancher/k3s/server/manifests/
sudo touch /var/lib/rancher/k3s/server/manifests/traefik-config.yaml sudo nano /var/lib/rancher/k3s/server/manifests/traefik-config.yaml
Základní struktura configu je
apiVersion: helm.cattle.io/v1 kind: HelmChartConfig metadata: name: traefik namespace: kube-system spec: valuesContent: |-
config se uplatní po restartu nebo aplikování
kubectl apply -f /var/lib/rancher/k3s/server/manifests/traefik-config.yaml
HTTP/3
experimental: http3: true entryPoints: name: http3: advertisedPort: 443
Problém s duplicitním treafikem
kubectl api-resources | grep traefik
Pokud se zde nachází dva ty APIVERSION traefiku, znamená to že se zde nachází buď 2 traefiky a nebo jeden byl odstraněn bez smazání api resources, je dobré to smazat a mít jenom ten co funguje, pokud budeme vytvářet middlewares/routes/tls tak si musíme dát pozor na apiversion viz: https://traefik.io/v1alpha1
Aktualizace
Již stažené verze Traefiku pomocí Helm můžeme vidět v /var/lib/rancher/k3s/server/static/charts
sudo ls /var/lib/rancher/k3s/server/static/charts
Let's encrypt
https://doc.traefik.io/traefik/https/acme/
Dashboard
apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: name: traefik-dashboard spec: routes: - match: Host(`dashboard.clazzor.eu`) kind: Rule services: - name: api@internal kind: TraefikService middlewares: - name: test-auth --- apiVersion: traefik.io/v1alpha1 kind: Middleware metadata: name: test-auth spec: basicAuth: secret: clazzor-auth --- apiVersion: v1 kind: Secret metadata: name: clazzor-auth namespace: default data: users: YWRtaW46JDEkY1E0WWl2NWIkS0hQMGFSZkhkTXVGd2Q5RVVyNGZOLgo=
apiVersion: v1 type: kubernetes.io/tls kind: Secret metadata: name: clazzor.eu-cert namespace: default data: tls.crt: "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUU3ekNDQTllZ0F3SUJBZ0lTQkpSdFlRdjQ2UlBtZGRWNjhibDlxL0k4TUEwR0NTcUdTSWIzRFFFQkN3VUEKTURJeEN6QUpCZ05WQkFZVEFsVlRNUll3RkFZRFZRUUtFdzFNWlhRbmN5QkZibU55ZVhCME1Rc3dDUVlEVlFRRApFd0pTTXpBZUZ3MHlNekE0TVRneE9UTTJNRE5hRncweU16RXhNVFl4T1RNMk1ESmFNQlV4RXpBUkJnTlZCQU1UCkNtTnNZWHA2YjNJdVpYVXdnZ0V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VGcWZQNElYaTRNRVZFVVRQY1VWZlZuUXJLdWFKdk9JKzdiK1ZwU1QKUzdWb3B4aEtFY3QxMWV1WmhyanpRL083algvMForMjRGWkNnK2grYmJzeS9HM0hsSEVzMTBibDlJMUQ2cklqVQpxaS90SVMvM0t3S0JnUUNZOHFNeUMzdHI3VTAydGtsbkVxRVp1VXQ4T1FnUzBjZzEvVFhKd1ltZ3BHajFiWWlSClcvUlI3RUlqM2FFNjllcnRyWEtmYTFrTDJKeWU3VjVRQXdNMVd1TFBsUkd4VU5tUktvaWU5b3JtQ211RWw3ZVQKL3dBRWFNdHo0ZkllUXZjS1BjSFhUSnRONUZjSVlpUmk3Y1BsMHhYVElMVmdXQnF2V2sxSS96RzJBUUtCZ0ZCMApNaHp6MGNSNVpERkVDU29BL1puSFZ3SGhlaGdZUi9wbUdDMlB3eUZ6NlgxYnBhNlhHQmljOENhZzREK2U0ZWsvClpmVFdRUDFXTlNvYkIrc1NGSFdQWDJiL3dHa3Uyc0ljNjBtZnF5YmpZVW1XWUFzUVNoR21IWWlDaWtXN3dhUVIKQ2xNekVVV2I3eUxkWjFZRUtnZzZTQ3Y0VmVhNzNaNjh0SHE2MS9mUkFvR0JBSktEa2pPcVlBMGhicWdxVXl0cwpOUi9JdDIvaThUamtjakxxRm1NQjdlSEZXVEdITkFGSzRyb3FVVXc0MFVBUDlybDhHNGR3UFl2aVVkMzg0dXpBCnpvbnpRZmNOWVNCTUNMdjA4ZjVCdjBocktpcVBaVEhjd244c0JYNHQ4NWF1cldDS25JQnJ4aG9aRzB1UW81SGsKa1FZRXNHSWtQc2p1TVhLQWJ4cEVDNTgyCi0tLS0tRU5EIFBSSVZBVEUgS0VZLS0tLS0K"
apiVersion: traefik.containo.us/v1alpha1 kind: TLSStore metadata: name: default namespace: default spec: defaultCertificate: secretName: clazzor.eu-cert