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: doc/user-guide.md
+22-5Lines changed: 22 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -178,7 +178,24 @@ solution in the "operator-test" project
178
178
Deploying the *APIManager* custom resource (see section above) creates a default tenant.
179
179
Optionally, you may create other tenants deploying **Tenant custom resource** objects.
180
180
181
-
To deploy a new tenant in your 3scale instance, create a new YAML file with the following content:
181
+
To deploy a new tenant in your 3scale instance, first, create secret to store admin password:
182
+
183
+
```sh
184
+
$ cat ecorp-admin-secret.yaml
185
+
apiVersion: v1
186
+
kind: Secret
187
+
metadata:
188
+
name: ecorp-admin-secret
189
+
type: Opaque
190
+
stringData:
191
+
admin_password: <admin password value>
192
+
193
+
194
+
$ oc create -f ecorp-admin-secret.yaml
195
+
secret/ecorp-admin-secret created
196
+
```
197
+
198
+
then, create a new Tenant CR YAML file with the following content:
182
199
183
200
```yaml
184
201
apiVersion: capabilities.3scale.net/v1alpha1
@@ -201,7 +218,7 @@ spec:
201
218
202
219
To look at more information on what the Tenant Custom Resource fields and
203
220
possible values are refer to
204
-
the [Tenant CRD Reference](tenant-crd-reference.md) documentation.
221
+
the [Tenant CRD Reference](tenant-reference.md) documentation.
205
222
206
223
```sh
207
224
export NAMESPACE="operator-test"
@@ -266,7 +283,7 @@ spec:
266
283
267
284
In all the Selectors (metric, plan, mappingrules...) we use a specific label "api: api01", you can change that and add as many labels and play with the selectors to cover really complex scenarios.
268
285
269
-
We should add a Plan:
286
+
We should add a Plan:
270
287
271
288
```yaml
272
289
apiVersion: capabilities.3scale.net/v1alpha1
@@ -303,7 +320,7 @@ spec:
303
320
304
321
```
305
322
306
-
A simple limit with a limit of 10 hits per day for the previous metric:
323
+
A simple limit with a limit of 10 hits per day for the previous metric:
307
324
308
325
```yaml
309
326
apiVersion: capabilities.3scale.net/v1alpha1
@@ -356,7 +373,7 @@ As you can see, the binding object will reference the `ecorp-tenant-secret` and
356
373
Now, navigate to your new created 3scale Tenant, and check that everything has been created!
357
374
358
375
For more information, check the reference doc: [Capabilities CRD Reference](api-crd-reference.md)
0 commit comments