apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: kubernetes-dashboard-ingress labels: app: kubernetes-dashboard annotations: nginx.ingress.kubernetes.io/rewrite-target: / nginx.ingress.kubernetes.io/backend-protocol: "HTTPS" cert-manager.io/cluster-issuer: letsencrypt spec: tls: - hosts: - kubernetes-dashboard.127.0.0.1.nip.io secretName: letsencrypt-cert rules: - host: kubernetes-dashboard.127.0.0.1.nip.io http: paths: - path: / backend: serviceName: kubernetes-dashboard servicePort: 443