Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languageyml
titlecafe-ingress.yaml (sub-domain)
apiVersion: networking.k8s.io/v1beta1 #extensions/v1beta1
kind: Ingress
metadata:
  name: <name>
  namespace: <namespace>
spec:
  tls:
  - hosts:
    - <host1><subdomain1>.<host>
    secretName: <secret1>
  - hosts:
    - <host2><subdomain2>.<host>
    secretName: <secret2>
  rules:
  - host: <host1><subdomain1>.<host>
    http:
      paths:
      - path: /
        backend:
          serviceName: <service1>
          servicePort: <port1>
  - host: <host2><subdomain2>.<host>
    http:
      paths:
      - path: /
        backend:
          serviceName: <service2>
          servicePort: <port2>

By connecting to your browser you can enter, for istance, values such as coffee.cafe.example.com or tea.cafe.example.com in the address bar.