Installing Traefik Proxy

Note: For 3-node setup, install on the Manager node.

In the Traefik folder, locate the traefik_haa_cluster.yml file. Use your preferred text editor to edit the file.

Note: The following is a code snippet. The actual file might contain more code than illustrated here.
traefik_haa_cluster.yml
http:
  routers:
    kibana-route:
      entryPoints:
        - kibana
      rule: PathPrefix(`/`)
      service: kibana
      tls: {}
    portal-route:
      entryPoints:
        - portal
      rule: PathPrefix(`/`)
      service: portal
      tls: {}
    iam-route:
      entryPoints:
        - iam
      rule: PathPrefix(`/`)
      service: iam
      tls: {}
  services:
    kibana:
      loadBalancer:
        servers:
          - url: http://${KIBANA_HOST_PORT}/ 
    iam:
      loadBalancer:
        servers:
          - url: http://${IAM_HOST_PORT}/ 
    portal:
      loadBalancer:
        servers:
          - url: http://${PORTAL_HOST_PORT}
 middlewares:
    ssl-forwards:
      headers:
        customRequestHeaders:
          X-Forwarded-Proto: "https"
          X-Forwarded-Host: "${DOMAIN}" 4
 tls:
  stores:
    default:
      defaultCertificate: (5)
        certFile: /certs/haa.crt
        keyFile: /certs/haa.key
        
  1. Replace ${KIBANA_HOST_PORT} with <Manager_Node_DNS_for_single_node_or_node_1_DNS_for_3_node_setup>:<kibana_port>. Default Kibana port is 5601.
  2. Replace ${IAM_HOST_PORT} with <Manager_Node_DNS_for_single_node_or_node_2_DNS_for_3_node_setup>:<iam_port>. Default IAM port is 8081.
  3. Replace ${PORTAL_HOST_PORT} with <Manager_Node_DNS_for_single_node_or_node_2_DNS_for_3_node_setup>:<portal_port>. Default HAA Portal port is 8080.
  4. Replace ${DOMAIN} with the public domain host name or IP address of the Manager node.
  5. If you want to use your own certificates for SSL, replace certfile and keyfile with your own certificates, using absolute paths.

    If you want to use the supplied certificates, replace the existing content to:

    certfile: .\certs\haa.crt

    and:

    keyfile: .\certs\haa.key

  6. Save the changes and close the editor.
  7. Install Traefik using the Install.Traefik.bat file.