You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The {ServerlessOperatorName} generates the network policies by default. To disable the default network policy generation, you can add the `serverless.openshift.io/disable-istio-net-policies-generation` annotation in the `KnativeEventing` and `KnativeServing` custom resources (CRs).
10
+
11
+
.Prerequisites
12
+
13
+
* You have one of the following permissions to access the cluster:
14
+
** Cluster administrator permissions on {ocp-product-title}
15
+
** Cluster administrator permissions on {rosa-product-title}
16
+
** Dedicated administrator permissions on {dedicated-product-title}
17
+
* You have installed the OpenShift CLI (`oc`).
18
+
* You have access to a project with the appropriate roles and permissions to create applications and other workloads.
19
+
* You have installed the {ServerlessOperatorName}, Knative Serving, and Knative Eventing on your cluster.
20
+
* You have installed {SMProductName} with the mTLS functionality enabled.
21
+
22
+
.Procedure
23
+
24
+
* Add the `serverless.openshift.io/disable-istio-net-policies-generation: "true"` annotation to your Knative custom resources.
25
+
+
26
+
[NOTE]
27
+
====
28
+
The {ServerlessOperatorName} generates the required network policies by default. When you configure `ServiceMeshControlPlane` with `manageNetworkPolicy: false`, you must disable the default network policy generation to ensure proper event delivery. To disable the default network policy generation, you can add the `serverless.openshift.io/disable-istio-net-policies-generation` annotation in the `KnativeEventing` and `KnativeServing` custom resources (CRs).
29
+
====
30
+
31
+
.. Annotate the `KnativeEventing` CR by running the following command:
= Enabling Knative Serving metrics when using Service Mesh with mTLS
7
+
= Enabling Knative Serving and Knative Eventing metrics when using Service Mesh with mTLS
8
8
9
-
If Service Mesh is enabled with mTLS, metrics for Knative Serving are disabled by default, because Service Mesh prevents Prometheus from scraping metrics. This section shows how to enable Knative Serving metrics when using Service Mesh and mTLS.
9
+
If Service Mesh is enabled with Mutual Transport Layer Security (mTLS), metrics for Knative Serving and Knative Eventing are disabled by default, because Service Mesh prevents Prometheus from scraping metrics. You can enable Knative Serving and Knative Eventing metrics when using Service Mesh and mTLS.
10
10
11
11
.Prerequisites
12
12
13
-
* You have installed the {ServerlessOperatorName} and Knative Serving on your cluster.
13
+
* You have one of the following permissions to access the cluster:
14
+
** Cluster administrator permissions on {ocp-product-title}
15
+
** Cluster administrator permissions on {rosa-product-title}
16
+
** Dedicated administrator permissions on {dedicated-product-title}
17
+
* You have installed the OpenShift CLI (`oc`).
18
+
* You have access to a project with the appropriate roles and permissions to create applications and other workloads.
19
+
* You have installed the {ServerlessOperatorName}, Knative Serving, and Knative Eventing on your cluster.
14
20
* You have installed {SMProductName} with the mTLS functionality enabled.
15
21
16
-
* You have cluster administrator permissions on {ocp-product-title}, or you have cluster or dedicated administrator permissions on {rosa-product-title} or {dedicated-product-title}.
17
-
18
-
* Install the OpenShift CLI (`oc`).
19
-
* You have created a project or have access to a project with the appropriate roles and permissions to create applications and other workloads.
20
-
21
22
.Procedure
22
23
23
24
. Specify `prometheus` as the `metrics.backend-destination` in the `observability` spec of the Knative Serving custom resource (CR):
This step prevents metrics from being disabled by default.
41
+
+
42
+
[NOTE]
43
+
====
44
+
When you configure `ServiceMeshControlPlane` with `manageNetworkPolicy: false`, you must use the annotation on KnativeEventing to ensure proper event delivery.
45
+
====
39
46
40
-
. Apply the following network policy to allow traffic from the Prometheus namespace:
47
+
+
48
+
The same mechanism is used for Knative Eventing. To enable metrics for Knative Eventing, you need to specify `prometheus` as the `metrics.backend-destination` in the `observability` spec of the Knative Eventing custom resource (CR) as follows:
0 commit comments