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.ingressendpoint.publishedservice=traefik/traefik-web-service ports: - name: web containerPort: 80 - name: dashboard containerPort: 8080