kind: Service apiVersion: v1 metadata: name: traefik-ingress-service namespace: kube-system spec: selector: k8s-app: traefik-ingress-lb ports: - protocol: TCP port: 80 name: http - protocol: TCP port: 443 name: https type: LoadBalancer --- apiVersion: apps/v1 kind: DaemonSet metadata: labels: k8s-app: traefik-ingress-lb k8s.scw.cloud/ingress: traefik k8s.scw.cloud/object: DaemonSet k8s.scw.cloud/system: ingress name: ingress-traefik namespace: kube-system spec: revisionHistoryLimit: 10 selector: matchLabels: k8s-app: traefik-ingress-lb template: metadata: labels: k8s-app: traefik-ingress-lb name: ingress-traefik spec: containers: - args: - --api - --kubernetes - --logLevel=INFO - --defaultentrypoints=http,https - --entrypoints=Name:https Address::443 TLS - --entrypoints=Name:http Address::80 - --accesslog - --accesslog.format=json image: docker.io/traefik:1.7 imagePullPolicy: IfNotPresent name: ingress-traefik ports: - containerPort: 80 hostPort: 80 name: http protocol: TCP - containerPort: 443 hostPort: 443 name: https protocol: TCP - containerPort: 8080 name: admin protocol: TCP securityContext: capabilities: add: - NET_BIND_SERVICE drop: - ALL dnsPolicy: ClusterFirst restartPolicy: Always serviceAccount: ingress-traefik serviceAccountName: ingress-traefik