apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress
# namespace: ingress-nginx
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
#  defaultBackend:
#    service:
#      name: smalltalk
#      port:
#        number: 777
  rules:
  - http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: smalltalk
            port:
              number: 777
      - path: /apple
        pathType: Prefix
        backend:
          service:
            name: apple-service
            port:
              number: 5678