apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: kubernetes-dashboard labels: app: kubernetes-dashboard annotations: # nginx.ingress.kubernetes.io/rewrite-target: / # nginx.ingress.kubernetes.io/backend-protocol: "HTTPS" # ingress.kubernetes.io/protocol: https # cert-manager.io/cluster-issuer: letsencrypt spec: # tls: # - hosts: # - ${GITEA_EXTERNAL_HOST} # secretName: letsencrypt-cert rules: - host: ${KUBERNETES_DASHBOARD_EXTERNAL_HOST} http: paths: - path: / pathType: Prefix backend: service: name: kubernetes-dashboard port: number: 443