When you provision an Openshift cluster, your cloud provider assign a publicly accessible ingress domain for your cluster. For example in Azure, you get something like apps.xxx.eastus2.aroapp.io
and in ROKS on Satellite, you will get something like xxxx-0b75760e3yyy00a0-0000.upi.containers.appdomain.cloud
. Cloud provider will also setup a wildcard SSL cert for your domain. As long as you create routes/secure-routes under that ingress domain you will be fine most of the time. But for a customer application, it may not be ideal to use the ingress domain provided by cloud provider. If you want to use a custom domain for your routes, these are the sample steps you can follow.
-
Register a domain with a domain registrar. For example purpose, say k8s4.dev
registered at domains.google.com.
-
Obtain a wildcard certificate for your domain *.k8s4.dev
. This step is needed only if you want to create secured routes which is default now a days.
If you want to use Let’s Encrypt (A nonprofit Certificate Authorit