apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: dashbord-ingress
  namespace: helmecho
  annotations:
    kubernetes.io/ingress.class: nginx
#    nginx.ingress.kubernetes.io/ssl-redirect: "true"
#    nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
#    cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
  # tls:
  # - hosts:
  #     - echokfirb.tk
  #   secretName: certtest
  rules:
    - host: echokfirb.tk
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: my-service
                port:
                  number: 80


# apiVersion: networking.k8s.io/v1beta1
# kind: Ingress
# metadata:
#   annotations:
#       kubernetes.io/ingress.class: nginx
#   name: dashbord-ingress
#   namespace: default
# spec:
#   rules:
#   - host: echokfirb.tk
#     http:
#       paths:
#       - backend:
#           serviceName: my-service
#           servicePort: 80