From 04ebe63cd6455f87d378cca8acc36dfbc6e4d5b4 Mon Sep 17 00:00:00 2001 From: smallbenji Date: Thu, 22 May 2025 14:30:04 +0200 Subject: [PATCH] add ingress --- dashboard/deployment.yaml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/dashboard/deployment.yaml b/dashboard/deployment.yaml index fad3502..44d586d 100644 --- a/dashboard/deployment.yaml +++ b/dashboard/deployment.yaml @@ -108,4 +108,30 @@ subjects: roleRef: kind: Role name: dashboard-csrf-access - apiGroup: rbac.authorization.k8s.io \ No newline at end of file + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: kubernetes-dashboard-ingress + namespace: kubernetes-dashboard + annotations: + cert-manager.io/cluster-issuer: letsencrypt-prod + nginx.ingress.kubernetes.io/rewrite-target: / +spec: + ingressClassName: nginx + rules: + - host: dashboard.ingenkansemig.dk + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: kubernetes-dashboard + port: + number: 80 + tls: + - hosts: + - dashboard.ingenkansemig.dk + secretName: dashboard-tls \ No newline at end of file