make traefik working

This commit is contained in:
Ubuntu
2026-01-11 22:46:15 +00:00
parent ae36c4bfe2
commit 7d7513ea20
6 changed files with 110 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: whoami
spec:
replicas: 1
selector:
matchLabels:
app: whoami
template:
metadata:
labels:
app: whoami
spec:
containers:
- name: whoami
image: traefik/whoami:latest
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: whoami
spec:
ports:
- port: 80
targetPort: 80
selector:
app: whoami
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: whoami
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
traefik.ingress.kubernetes.io/router.tls: "true"
spec:
rules:
- host: whoami.k3s.stabify.de # Placeholder, wird im Overlay überschrieben
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: whoami
port:
number: 80