2018-09-26 04:40:24 +02:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
|
kind: Ingress
|
|
|
|
|
metadata:
|
|
|
|
|
namespace: kube-system
|
|
|
|
|
name: kubernetes-dashboard
|
|
|
|
|
annotations:
|
2018-10-02 00:22:19 +02:00
|
|
|
kubernetes.io/ingress.class: traefik
|
2018-09-26 04:40:24 +02:00
|
|
|
{% if basic_auth_user | length > 0 %}
|
|
|
|
|
ingress.kubernetes.io/auth-type: basic
|
|
|
|
|
# name of the secret that contains the user/password definitions
|
|
|
|
|
ingress.kubernetes.io/auth-secret: dashboard-basic-auth
|
|
|
|
|
# message to display with an appropiate context why the authentication is required
|
|
|
|
|
ingress.kubernetes.io/auth-realm: "Authentication is required to access the k8s dashboard "
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
spec:
|
|
|
|
|
# this enables tls for the specified domain names
|
2018-10-02 00:22:19 +02:00
|
|
|
# tls:
|
|
|
|
|
# - hosts:
|
|
|
|
|
# - {{ dashboard_subdomain }}.{{ scaleway_reverse_ipaddr }}
|
|
|
|
|
# secretName: dashboard-tls
|
2018-09-26 04:40:24 +02:00
|
|
|
rules:
|
|
|
|
|
- host: {{ dashboard_subdomain }}.{{ scaleway_reverse_ipaddr }}
|
|
|
|
|
http:
|
|
|
|
|
paths:
|
|
|
|
|
- path: /
|
|
|
|
|
backend:
|
|
|
|
|
serviceName: kubernetes-dashboard
|
|
|
|
|
servicePort: 80
|