Eclipse Che uses Ingress.
Procedure
To install Ingress-nginx:
-
Install the default configuration:
$ kubectl apply \ -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/mandatory.yaml
-
Install the configuration for cloud:
$ kubectl apply \ -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/cloud-generic.yaml
The following output confirms that the Ingress controller is running:
$ kubectl get pods --namespace ingress-nginx NAME READY STATUS RESTARTS AGE nginx-ingress-controller-76c86d76c4-gswmg 1/1 Running 0 9m3s
Wait for the container to run.
-
Wait for the external IP. Note that a
<pending>status for the external IP is shown before the exact external IP address is displayed.$ kubectl get services --namespace ingress-nginx NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE ingress-nginx LoadBalancer 10.0.97.244 40.89.129.194 80:31107/TCP,443:30629/TCP 8m59s
-
Get the external IP of Ingress-nginx.
$ kubectl get services --namespace ingress-nginx \ -o jsonpath='{.items[].status.loadBalancer.ingress[0].ip}' 40.89.129.194