Configuring Knative by using the Operator

    Any updates to ConfigMaps which are applied manually are overwritten by the Operator. However, modifying the Knative custom resources allows you to set values for these ConfigMaps.

    All Knative ConfigMaps are created in the same namespace as the custom resource that they apply to. For example, if the KnativeServing custom resource is created in the knative-serving namespace, all Knative Serving ConfigMaps are also created in this namespace.

    You can specify that the custom resource uses the config-domain ConfigMap as follows:

    1. apiVersion: operator.knative.dev/v1beta1
    2. kind: KnativeServing
    3. metadata:
    4. spec:
    5. config:
    6. domain:
    7. selector:
    8. app: prod
    9. example.com: ""
    10. autoscaler: