Multiple Rules

On the previous page, we defined a single rule. If you have multiple services, you can define multiple rules in the same Ingress, each rule forwarding traffic to a specific service.

  - host: ghost.192.168.99.100.nip.io
    http:
      paths:
      - backend:
          service
            name: external
            port:
              number: 80
....
  - host: nginx.192.168.99.100.nip.io
    http:
      paths:
      - backend:
          service
            name: internal
            port:
              number: 8080
....

Last updated