Configure router ports
To bind the ingress router to specific HTTP and HTTPS port numbers in MicroShift, you can edit the ingress.ports.http and ingress.ports.https settings in config.yaml file.
-
You installed MicroShift.
-
You created a MicroShift
config.yamlfile. -
The OpenShift CLI (
oc) is installed.
|
|
If you complete all the configurations that you need to make in the MicroShift |
-
Update the MicroShift
config.yamlport values in theingress.ports.httpandingress.ports.httpsfields to the ports you want to use:Exampleconfig.yamlrouter settings# ... ingress: ports: http: 80 https: 443 routeAdmissionPolicy: namespaceOwnership: InterNamespaceAllowed status: Managed # ...where:
ingress.ports-
Specifies the HTTP and HTTPS port numbers to bind the ingress router to. This field is customizable. Valid values for both port entries are a single, unique port in the 1-65535 range. The values of the
ports.httpandports.httpsfields cannot be the same. status-
Specifies the status of the ingress ports. The default value is
Managed.Managedis required for the ingress ports to remain open.
-
Restart the MicroShift service by running the following command:
$ sudo systemctl restart microshift