apiVersion: v1 kind: Service metadata: name: k8s-dashboard annotations: metallb.universe.tf/address-pool: default spec: ports: - port: 80 targetPort: 9090 selector: app: dashboard type: LoadBalancer --- # Hosting apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: kubernetes-dashboard annotations: cert-manager.io/cluster-issuer: "letsencrypt-prod" ## basic auth for index # type of authentication nginx.ingress.kubernetes.io/auth-type: basic # name of the secret that contains the user/password definitions nginx.ingress.kubernetes.io/auth-secret: basic-auth # message to display with an appropriate context why the authentication is required nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - Octoprint' spec: tls: - hosts: - dashboard.monkeybox.org secretName: dashboard-tls rules: - host: dashboard.monkeybox.org http: paths: - path: / pathType: Prefix backend: service: name: k8s-dashboard port: number: 80