42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
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
|
|
image: traefik:v3.2
|
|
args:
|
|
- --api.insecure
|
|
- --providers.kubernetesingress
|
|
- --entryPoints.web.Address=:80
|
|
- --entryPoints.web.asDefault=true
|
|
- --entryPoints.web.proxyProtocol.trustedIPs=127.0.0.1/32,192.168.10.1
|
|
- --entryPoints.websecure.Address=:443
|
|
- --entryPoints.websecure.asDefault=true
|
|
- --entryPoints.websecure.proxyProtocol.trustedIPs=127.0.0.1/32,192.168.10.1
|
|
- --entryPoints.traefik.Address=:8080
|
|
- --providers.kubernetesingress.ingressendpoint.publishedservice=traefik/traefik-service
|
|
- --providers.kubernetescrd
|
|
- --accesslog=true
|
|
ports:
|
|
- name: web
|
|
containerPort: 80
|
|
- name: websecure
|
|
containerPort: 443
|
|
- name: dashboard
|
|
containerPort: 8080
|