39 lines
1.1 KiB
YAML
39 lines
1.1 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.1
|
|
args:
|
|
- --api.insecure
|
|
- --providers.kubernetesingress
|
|
- --entryPoints.web.Address=:80
|
|
- --entryPoints.web.proxyProtocol.trustedIPs=127.0.0.1/32,192.168.10.1
|
|
- --entryPoints.websecure.Address=:443
|
|
- --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
|
|
ports:
|
|
- name: web
|
|
containerPort: 80
|
|
- name: websecure
|
|
containerPort: 443
|
|
- name: dashboard
|
|
containerPort: 8080
|