mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
26 lines
722 B
Django/Jinja
26 lines
722 B
Django/Jinja
apiVersion: extensions/v1beta1
|
|
kind: Ingress
|
|
metadata:
|
|
namespace: kube-system
|
|
name: kubernetes-dashboard
|
|
annotations:
|
|
kubernetes.io/ingress.class: traefik
|
|
{% if dashboard_basic_auth_user | length > 0 %}
|
|
traefik.ingress.kubernetes.io/auth-type: basic
|
|
traefik.ingress.kubernetes.io/auth-secret: dashboard-basic-auth
|
|
{% endif %}
|
|
|
|
spec:
|
|
# this enables tls for the specified domain names
|
|
# tls:
|
|
# - hosts:
|
|
# - {{ dashboard_subdomain }}.{{ scaleway_reverse_ipaddr }}
|
|
# secretName: dashboard-tls
|
|
rules:
|
|
- host: {{ dashboard_subdomain }}.{{ scaleway_reverse_ipaddr }}
|
|
http:
|
|
paths:
|
|
- path: /
|
|
backend:
|
|
serviceName: kubernetes-dashboard
|
|
servicePort: 80
|