Skip to content

Instantly share code, notes, and snippets.

@jeesmon
Created February 28, 2022 14:41
Show Gist options
  • Save jeesmon/a319e5daabbe047004eaa80097057d2e to your computer and use it in GitHub Desktop.
Save jeesmon/a319e5daabbe047004eaa80097057d2e to your computer and use it in GitHub Desktop.

OpenShift supports wildcard routes but it is not enabled by default. If you create a route for *.domain.com without enabling it, you will see a Rejected status for your route.

To enable wildcard route, you need to edit default IngressController in openshift-ingress-operator namespace and add the following to the spec.

# oc -n openshift-ingress-operator edit ingresscontroller default

spec:
...
  routeAdmission:
    wildcardPolicy: WildcardsAllowed

When you edit IngressController, router pods in openshift-ingress will be restarted to apply the changes.

Details: https://docs.openshift.com/container-platform/4.7/networking/ingress-operator.html#using-wildcard-routes_configuring-ingress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment