apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: name-of-your-ingress
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/ssl-passthrough: "true"
    nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
    nginx.ingress.kubernetes.io/ssl-redirect: "true"
spec:
  rules:
  # Route to fabric-ca
  - host: sudomain-to-fabric-ca
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: fabric-ca
            port:
              number: 7054
  # Route to peer
  - host: sudomain-to-fabric-peer
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: fabric-peer1
            port:
              number: 7051
  # Route to orderer
  - host: sudomain-to-fabric-orderer
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: fabric-orderer1
            port:
              number: 7050
