2024-09-22 09:52:27 +00:00
|
|
|
kind: Deployment
|
|
|
|
apiVersion: apps/v1
|
|
|
|
metadata:
|
|
|
|
name: traefik-deployment
|
|
|
|
labels:
|
|
|
|
app: traefik
|
|
|
|
|
|
|
|
spec:
|
|
|
|
replicas: 3
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: traefik
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: traefik
|
|
|
|
spec:
|
|
|
|
serviceAccountName: traefik-account
|
|
|
|
containers:
|
|
|
|
- name: traefik
|
2024-10-19 12:23:31 +00:00
|
|
|
image: traefik:v3.2
|
2024-09-22 09:52:27 +00:00
|
|
|
args:
|
|
|
|
- --api.insecure
|
|
|
|
- --providers.kubernetesingress
|
2024-10-12 18:15:45 +00:00
|
|
|
- --entryPoints.web.Address=:80
|
2024-10-13 15:07:12 +00:00
|
|
|
- --entryPoints.web.asDefault=true
|
2024-10-13 14:52:05 +00:00
|
|
|
- --entryPoints.web.proxyProtocol.trustedIPs=127.0.0.1/32,192.168.10.1
|
2024-10-12 18:15:45 +00:00
|
|
|
- --entryPoints.websecure.Address=:443
|
2024-10-13 15:07:12 +00:00
|
|
|
- --entryPoints.websecure.asDefault=true
|
2024-10-13 14:52:05 +00:00
|
|
|
- --entryPoints.websecure.proxyProtocol.trustedIPs=127.0.0.1/32,192.168.10.1
|
2024-10-12 18:15:45 +00:00
|
|
|
- --entryPoints.traefik.Address=:8080
|
2024-09-25 15:25:54 +00:00
|
|
|
- --providers.kubernetesingress.ingressendpoint.publishedservice=traefik/traefik-service
|
2024-10-12 18:15:45 +00:00
|
|
|
- --providers.kubernetescrd
|
2024-10-13 15:19:05 +00:00
|
|
|
- --accesslog=true
|
2024-09-22 09:52:27 +00:00
|
|
|
ports:
|
|
|
|
- name: web
|
|
|
|
containerPort: 80
|
2024-10-12 18:15:45 +00:00
|
|
|
- name: websecure
|
|
|
|
containerPort: 443
|
2024-09-22 09:52:27 +00:00
|
|
|
- name: dashboard
|
|
|
|
containerPort: 8080
|