Skip to content

Configuring an Ingress Service

Introduction

There are a number of cases where you want to expose services running on the cluster. A few of them are:

  • Allow Researchers who work with containers to expose ports to access the container from remote using tools such as a Jupyter notebook or PyCharm
  • Integrate a Researcher authentication mechanism such as an organizational user directory.

The Kubernetes mechanism for exposing services is called Ingress.

Ingress

Ingress allows access to Kubernetes services from outside the Kubernetes cluster. You configure access by creating a collection of rules that define which inbound connections reach which services. More information about ingress can be found here.

Requirements

Before installing ingress, you must obtain an IP Address or an IP address range which is external to the cluster.

Ingress Configuration

A Run:AI cluster is installed by accessing the Administrator User Interface at app.run.ai downloading a yaml file runai-operator.yaml and then applying it to Kubernetes. You must edit the yaml file. Search for localLoadBalancer

localLoadBalancer
    enabled: true
    ipRangeFrom: 10.0.2.1
    ipRangeTo: 10.0.2.2

Set enabled to true and set the IP range appropriately.


Last update: July 22, 2020