Ingress

apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: myingress
spec:
  rules:
  - host: bar.foo.com
    http:
      paths:
      - path: /
        backend:
          serviceName: myservice
          servicePort: 80
  tls:
  - hosts:
    - bar.foo.com
    secretName: myingress-cert

official documentation