---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
    kubernetes.io/ingress.allow-http: "false"
  name: dashboard-ingress
  namespace: kube-system
spec:
  tls:
  - hosts:
    - k8s.local
    secretName: kubernetes-dashboard-certs
  rules:
  - host: k8s.local
    http:
      paths:
      - path: /
        pathType: "Prefix" 
        backend:
          service:
            name: kubernetes-dashboard
            port:
              number: 443
