apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress-hello-app
  namespace: default
spec:
  ingressClassName: nginx
  tls:
  - hosts:
    - hello-app.xiexianbin.cn
    secretName: hello-app-secret
  rules:
  - host: hello-app.xiexianbin.cn
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: hello-app
            port:
              number: 8080
