Default domain name settings

    You can change the default domain by modifying the config-domain ConfigMap.

    Warning

    Customizing a domain using this ConfigMap affects your cluster globally. If you want to customize the domain of an individual Service, use instead.

    1. Edit the file to replace example.com with the domain you want to use, then remove the key and save your changes. In this example, mydomain.com is configured as the domain for all routes:

    If you have an existing deployment, Knative reconciles the change made to the ConfigMap, and automatically updates the host name for all of the deployed Services and Routes.

    1. Deploy an app to your cluster.
    2. Retrieve the URL for the Route:

    To make your domain publicly accessible, you must update your DNS provider to point to the IP address for your service ingress.

    1. Create a wildcard record for the namespace and custom domain to the ingress IP Address, which would enable hostnames for multiple services in the same namespace to work without creating additional DNS entries.

    2. After the domain update has propagated, you can access your app by using the fully qualified domain name of the deployed route.