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:
apiVersion: operator.knative.dev/v1beta1
kind: KnativeServing
metadata:
spec:
config:
domain:
selector:
app: prod
example.com: ""
autoscaler: