argocd-test/traefik/base/002-traefik.yaml

42 lines
1.2 KiB
YAML
Raw Permalink Normal View History

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
- --entryPoints.web.Address=:80
2024-10-13 15:07:12 +00:00
- --entryPoints.web.asDefault=true
- --entryPoints.web.proxyProtocol.trustedIPs=127.0.0.1/32,192.168.10.1
- --entryPoints.websecure.Address=:443
2024-10-13 15:07:12 +00:00
- --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
2024-10-13 15:19:05 +00:00
- --accesslog=true
2024-09-22 09:52:27 +00:00
ports:
- name: web
containerPort: 80
- name: websecure
containerPort: 443
2024-09-22 09:52:27 +00:00
- name: dashboard
containerPort: 8080