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
This service is called as the OPA cluster suffixed with `-lb`. This entrypoint can be used if latency (e.g. no network requests) is less important.
23
+
This service is called as the OPA cluster suffixed with `-cluster`. This entrypoint can be used if latency (e.g. no network requests) is less important.
24
24
Evaluating complicated rego rules may take some time depending on the provided resources, and can be the limiting factor in e.g. bulk requests.
25
-
Therefore, using this service, every Pod in the cluster is utilized to evaluate policies than instead e.g. just one.
25
+
Therefore, using this service, every Pod in the cluster is utilized to evaluate policies (via round robin). This allows better parallelism when
26
+
evaluating policies, but results in network roundtrips.
26
27
27
-
If the `metadata.name` is `opa`, this service is called `opa-lb`.
28
+
If the `metadata.name` is `opa`, this service is called `opa-cluster`.
Copy file name to clipboardExpand all lines: docs/modules/opa/pages/reference/discovery.adoc
+47-5Lines changed: 47 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,14 +26,15 @@ metadata:
26
26
spec:
27
27
[...]
28
28
----
29
-
<1> The name of the OPA cluster, which is also the name of the created discovery ConfigMap.
30
-
<2> The namespace of the discovery ConfigMap.
29
+
<1> The name of the OPA cluster, which is used in the created discovery ConfigMaps.
30
+
<2> The namespace of the discovery ConfigMaps.
31
31
32
-
The resulting discovery ConfigMap is `{namespace}/{clusterName}`.
32
+
Currently, three discovery ConfigMaps are provided.
33
33
34
-
== Contents
34
+
=== (DEPRECATED) Internal Traffic Policy `Local`
35
35
36
-
The `{namespace}/{clusterName}` discovery ConfigMap contains the following fields where `{clusterName}` represents the name and `{namespace}` the namespace of the cluster:
36
+
The discovery ConfigMap `{namespace}/{clusterName}` contains the following fields where `{clusterName}` represents the name and `{namespace}` the namespace of the cluster.
37
+
This is deprecated and only kept for backwards compatibitliy. Users are adviced to switch to `{namespace}/{clusterName}-local`, which is the identical replacement.
37
38
38
39
`OPA`::
39
40
====
@@ -49,3 +50,44 @@ In order to query policies you have to configure your product and its OPA URL as
The discovery ConfigMap `{namespace}/{clusterName}-local` contains the following fields where `{clusterName}-local` represents the name and `{namespace}` the namespace of the cluster.
57
+
Using this discovery service, requests from one Node will always reach the OPA Pod on the same Node. This allows for low latency authorization queriers.
58
+
59
+
`OPA`::
60
+
====
61
+
A connection string for cluster internal OPA requests.
62
+
Provided the cluster example above, the connection string is created as follows:
This connection string points to the base URL (and web UI) of the OPA cluster.
68
+
In order to query policies you have to configure your product and its OPA URL as follows, given the bundle package name `{packageName}` and the policy name `{policyName}`:
The discovery ConfigMap `{namespace}/{clusterName}-cluster` contains the following fields where `{clusterName}-cluster` represents the name and `{namespace}` the namespace of the cluster.
77
+
Using this discovery service, requests to OPA are distributed over all available OPA Pods, improving parallelism when evaluating policies but slightly increasing the latency of each single query
78
+
to due additional network requests.
79
+
80
+
`OPA`::
81
+
====
82
+
A connection string for cluster internal OPA requests.
83
+
Provided the cluster example above, the connection string is created as follows:
This connection string points to the base URL (and web UI) of the OPA cluster.
89
+
In order to query policies you have to configure your product and its OPA URL as follows, given the bundle package name `{packageName}` and the policy name `{policyName}`:
0 commit comments