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