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
Copy file name to clipboardExpand all lines: modules/ossm-mixer-policy-1x.adoc
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ In previous versions of {ProductName}, Mixer’s policy enforcement was enabled
10
10
.Prerequisites
11
11
* Access to the {product-title} Command-line Interface (CLI) also known as `oc`.
12
12
13
+
NOTE: The examples use <istio-system> as the control plane namespace. Replace this value with the namespace where you deployed the Service Mesh Control Plane (SMCP).
13
14
14
15
.Procedure
15
16
@@ -19,14 +20,14 @@ In previous versions of {ProductName}, Mixer’s policy enforcement was enabled
19
20
+
20
21
[source,terminal]
21
22
----
22
-
$ oc get cm -n istio-system istio -o jsonpath='{.data.mesh}' | grep disablePolicyChecks
23
+
$ oc get cm -n <istio-system> istio -o jsonpath='{.data.mesh}' | grep disablePolicyChecks
23
24
----
24
25
25
26
. If `disablePolicyChecks: true`, edit the {ProductShortName} ConfigMap:
26
27
+
27
28
[source,terminal]
28
29
----
29
-
$ oc edit cm -n istio-system istio
30
+
$ oc edit cm -n <istio-system> istio
30
31
----
31
32
32
33
. Locate `disablePolicyChecks: true` within the ConfigMap and change the value to `false`.
Copy file name to clipboardExpand all lines: modules/ossm-mixer-policy.adoc
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ In previous versions of {ProductName}, Mixer’s policy enforcement was enabled
10
10
.Prerequisites
11
11
* Access to the {product-title} Command-line Interface (CLI) also known as `oc`.
12
12
13
+
NOTE: The examples use <istio-system> as the control plane namespace. Replace this value with the namespace where you deployed the Service Mesh Control Plane (SMCP).
13
14
14
15
.Procedure
15
16
@@ -19,14 +20,14 @@ In previous versions of {ProductName}, Mixer’s policy enforcement was enabled
19
20
+
20
21
[source,terminal]
21
22
----
22
-
$ oc get cm -n istio-system istio -o jsonpath='{.data.mesh}' | grep disablePolicyChecks
23
+
$ oc get cm -n <istio-system> istio -o jsonpath='{.data.mesh}' | grep disablePolicyChecks
23
24
----
24
25
25
26
. If `disablePolicyChecks: true`, edit the {ProductShortName} ConfigMap:
26
27
+
27
28
[source,terminal]
28
29
----
29
-
$ oc edit cm -n istio-system istio
30
+
$ oc edit cm -n <istio-system> istio
30
31
----
31
32
32
33
. Locate `disablePolicyChecks: true` within the ConfigMap and change the value to `false`.
Copy file name to clipboardExpand all lines: modules/ossm-threescale-integrate-1x.adoc
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,12 +24,15 @@ To configure the 3scale Istio Adapter, refer to {ProductName} custom resources f
24
24
25
25
[NOTE]
26
26
====
27
-
Pay particular attention to the `kind: handler` resource. You must update this with your 3scale credentials and the service ID of the API you want to manage.
27
+
Pay particular attention to the `kind: handler` resource. You must update this with your 3scale account credentials. You can optionally add a `service_id` to a handler, but this is kept for backwards compatibility only, since it would render the handler only useful for one service in your 3scale account. If you add `service_id` to a handler, enabling 3scale for other services requires you to create more handlers with different `service_ids`.
28
28
====
29
29
30
-
. Modify the handler configuration with your 3scale configuration.
30
+
Use a single handler per 3scale account by following the steps below:
31
+
32
+
.Procedure
33
+
34
+
. Create a handler for your 3scale account and specify your account credentials. Omit any service identifier.
31
35
+
32
-
.Handler configuration example
33
36
[source,yaml]
34
37
----
35
38
apiVersion: "config.istio.io/v1alpha2"
@@ -39,15 +42,18 @@ Pay particular attention to the `kind: handler` resource. You must update this w
Optionally, you can provide a `backend_url` field within the _params_ section to override the URL provided by the 3scale configuration. This may be useful if the adapter runs on the same cluster as the 3scale on-premise instance, and you wish to leverage the internal cluster DNS.
50
-
52
+
+
53
+
. Edit or patch the Deployment resource of any services belonging to your 3scale account as follows:
54
+
.. Add the `"service-mesh.3scale.net/service-id"` label with a value corresponding to a valid `service_id`.
55
+
.. Add the `"service-mesh.3scale.net/credentials"` label with its value being the _name of the handler resource_ from step 1.
56
+
. Do step 2 to link it to your 3scale account credentials and to its service identifier, whenever you intend to add more services.
51
57
. Modify the rule configuration with your 3scale configuration to dispatch the rule to the threescale handler.
Copy file name to clipboardExpand all lines: modules/ossm-threescale-integrate.adoc
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,12 +27,15 @@ To configure the 3scale Istio Adapter, refer to {ProductName} custom resources f
27
27
28
28
[NOTE]
29
29
====
30
-
Pay particular attention to the `kind: handler` resource. You must update this with your 3scale credentials and the service ID of the API you want to manage.
30
+
Pay particular attention to the `kind: handler` resource. You must update this with your 3scale account credentials. You can optionally add a `service_id` to a handler, but this is kept for backwards compatibility only, since it would render the handler only useful for one service in your 3scale account. If you add `service_id` to a handler, enabling 3scale for other services requires you to create more handlers with different `service_ids`.
31
31
====
32
32
33
-
. Modify the handler configuration with your 3scale configuration.
33
+
Use a single handler per 3scale account by following the steps below:
34
+
35
+
.Procedure
36
+
37
+
. Create a handler for your 3scale account and specify your account credentials. Omit any service identifier.
34
38
+
35
-
.Handler configuration example
36
39
[source,yaml]
37
40
----
38
41
apiVersion: "config.istio.io/v1alpha2"
@@ -42,15 +45,18 @@ Pay particular attention to the `kind: handler` resource. You must update this w
Optionally, you can provide a `backend_url` field within the _params_ section to override the URL provided by the 3scale configuration. This may be useful if the adapter runs on the same cluster as the 3scale on-premise instance, and you wish to leverage the internal cluster DNS.
53
-
55
+
+
56
+
. Edit or patch the Deployment resource of any services belonging to your 3scale account as follows:
57
+
.. Add the `"service-mesh.3scale.net/service-id"` label with a value corresponding to a valid `service_id`.
58
+
.. Add the `"service-mesh.3scale.net/credentials"` label with its value being the _name of the handler resource_ from step 1.
59
+
. Do step 2 to link it to your 3scale account credentials and to its service identifier, whenever you intend to add more services.
54
60
. Modify the rule configuration with your 3scale configuration to dispatch the rule to the threescale handler.
Copy file name to clipboardExpand all lines: modules/ossm-threescale-manifests.adoc
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,12 @@
6
6
[id="ossm-threescale-manifests_{context}"]
7
7
= Generating manifests from a deployed adapter
8
8
9
+
[NOTE]
10
+
====
11
+
* `NAME` is an identifier you use to identify with the service you are managing with 3scale.
12
+
* The `CREDENTIALS_NAME` reference is an identifier that corresponds to the `match` section in the rule configuration. This is automatically set to the `NAME` identifier if you are using the CLI tool.
13
+
* Its value does not need to be anything specific: the label value should just match the contents of the rule. See link:https://github.com/3scale/3scale-istio-adapter/blob/v2.X/README.md#routing-service-traffic-through-the-adapter[Routing service traffic through the adapter] for more information.
14
+
====
9
15
10
16
. Run this command to generate manifests from a deployed adapter in the `istio-system` namespace:
Copy file name to clipboardExpand all lines: modules/ossm-threescale-templates.adoc
+18-5Lines changed: 18 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,14 +6,27 @@
6
6
[id="ossm-threescale-templates_{context}"]
7
7
= Generate templates from URL examples
8
8
9
-
* This example generates templates allowing the token, URL pair to be shared by multiple services as a single handler:
9
+
[NOTE]
10
+
====
11
+
* Run the following commands via `oc exec` from the 3scale adapter container image in xref:ossm-threescale-manifests_{context}[Generating manifests from a deployed adapter].
12
+
* Use the `3scale-config-gen` command to help avoid YAML syntax and indentation errors.
13
+
* You can omit the `--service` if you use the annotations.
14
+
* This command must be invoked from within the container image via `oc exec`.
15
+
====
16
+
17
+
.Procedure
18
+
19
+
* Use the `3scale-config-gen` command to autogenerate templates files allowing the token, URL pair to be shared by multiple services as a single handler:
0 commit comments