mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
Use treafik ingress controller instead of nginx
This commit is contained in:
parent
ed24aa4f8d
commit
d8d9733ed9
25 changed files with 187 additions and 325 deletions
|
|
@ -4,8 +4,7 @@ metadata:
|
|||
namespace: kube-system
|
||||
name: kubernetes-dashboard
|
||||
annotations:
|
||||
# enable kube-lego for this ingress
|
||||
kubernetes.io/tls-acme: "true"
|
||||
kubernetes.io/ingress.class: traefik
|
||||
{% if basic_auth_user | length > 0 %}
|
||||
ingress.kubernetes.io/auth-type: basic
|
||||
# name of the secret that contains the user/password definitions
|
||||
|
|
@ -16,10 +15,10 @@ ingress.kubernetes.io/auth-type: basic
|
|||
|
||||
spec:
|
||||
# this enables tls for the specified domain names
|
||||
tls:
|
||||
- hosts:
|
||||
- {{ dashboard_subdomain }}.{{ scaleway_reverse_ipaddr }}
|
||||
secretName: dashboard-tls
|
||||
# tls:
|
||||
# - hosts:
|
||||
# - {{ dashboard_subdomain }}.{{ scaleway_reverse_ipaddr }}
|
||||
# secretName: dashboard-tls
|
||||
rules:
|
||||
- host: {{ dashboard_subdomain }}.{{ scaleway_reverse_ipaddr }}
|
||||
http:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue