Exposing an installed application through the bastion

Expose an application that you deploy to the cluster through the bastion, which serves as a load balancer, by setting parameters in the application settings.

  • The application chart provides the parameters service.type, ingress.enabled, ingress.ingressClassName, and ingress.hostName. Parameter names can differ between charts, so check the parameters of your chart.
  • If you use your own domain, DNS resolves the host name to the public IP address of your bastion.
  1. In the application parameters, set service.type to ClusterIP:
    service:
      type: ClusterIP
  2. Enable ingress for the application by setting ingress.enabled to true:
    ingress:
      enabled: true
  3. Set the ingress class name to ccf.

    This class tells the cluster to expose the application through the preconfigured ingress controller:

    ingress:
      ingressClassName: ccf
  4. Set ingress.hostName.

    For a standard cluster, use the format <name>.<access-ip>.sslip.io. For a virtual cluster, use the host name of the virtual cluster directly, as described in Ingress host names. The following examples show both cases:

    # Standard cluster
    ingress:
      hostName: myapp.192.168.1.100.sslip.io
    
    # Virtual cluster
    ingress:
      hostName: myapp.vc-01.vcluster.b916618f.sslip.io
  5. Deploy the application with these settings, and open it in your browser.

    Replace <name> and <access-ip> with the values from your configuration.

    • For a standard cluster: http://<name>.<access-ip>.sslip.io
    • For a virtual cluster: http://myapp.vc-01.vcluster.b916618f.sslip.io

The application is available at the host name that you set. The following sample shows how the parameters look together in the YAML configuration of an application:

service:
  type: ClusterIP
ingress:
  enabled: true
  ingressClassName: ccf
  hostName: myapp.192.168.1.100.sslip.io
  • Ensure that DNS resolves <access-ip> to the public IP address of your bastion.
  • The sslip.io service provides wildcard DNS for any IP address, which simplifies access to your application.
  • For a virtual cluster, the host name is already in the correct format, so you do not add a suffix.