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 - --providers.kubernetesingress.publishedService.enabled=true ports: - name: web containerPort: 80 - name: dashboard containerPort: 8080