Skip to content

Instantly share code, notes, and snippets.

@nakamorichi
Created August 12, 2019 04:28
Show Gist options
  • Save nakamorichi/58887cf51c33fdacf30dc91831cd1277 to your computer and use it in GitHub Desktop.
Save nakamorichi/58887cf51c33fdacf30dc91831cd1277 to your computer and use it in GitHub Desktop.
Traefik 2.0 ingress for Linkerd2 dashboard
kind: Middleware
apiVersion: traefik.containo.us/v1alpha1
metadata:
name: linkerd-dashboard-auth
namespace: linkerd
spec:
basicAuth:
users:
# admin:password <do not use in production>
- admin:$apr1$FGdrANYF$f0lAEDTXdWmxNfABopXX01
---
kind: IngressRoute
apiVersion: traefik.containo.us/v1alpha1
metadata:
name: linkerd-dashboard
namespace: linkerd
spec:
entryPoints: [https]
tls:
secretName: linkerd-cert # same content as in traefik-cert
routes:
- match: Host(`linkerd.yourdomain.com`)
kind: Rule
services:
- name: linkerd-web
port: 8084
healthCheck:
path: /overview
intervalSeconds: 3
timeoutSeconds: 60
middlewares:
- name: linkerd-dashboard-auth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment