@@ -12,40 +12,9 @@ Automatically scale an Ingress Controller to dynamically meet routing performanc
12
12
. You have the OpenShift CLI (`oc` ) installed.
13
13
. You have access to an {product-title} cluster as a user with the `cluster-admin` role.
14
14
. You have the Custom Metrics Autoscaler Operator installed.
15
+ . You are in the `openshift-ingress-operator` project namespace.
15
16
16
17
.Procedure
17
- . Create a project in the `openshift-ingress-operator` namespace by running the following command:
18
- +
19
- [source,terminal]
20
- ----
21
- $ oc project openshift-ingress-operator
22
- ----
23
-
24
- . Enable OpenShift monitoring for user-defined projects by creating and applying a config map:
25
-
26
- .. Create a new `ConfigMap` object, `cluster-monitoring-config.yaml`:
27
- +
28
- .cluster-monitoring-config.yaml
29
- [source,yaml]
30
- ----
31
- apiVersion: v1
32
- kind: ConfigMap
33
- metadata:
34
- name: cluster-monitoring-config
35
- namespace: openshift-monitoring
36
- data:
37
- config.yaml: |
38
- enableUserWorkload: true <1>
39
- ----
40
- +
41
- <1> When set to `true` , the `enableUserWorkload` parameter enables monitoring for user-defined projects in a cluster.
42
-
43
- .. Apply the config map by running the following command:
44
- +
45
- [source,terminal]
46
- ----
47
- $ oc apply -f cluster-monitoring-config.yaml
48
- ----
49
18
50
19
. Create a service account to authenticate with Thanos by running the following command:
51
20
+
@@ -184,7 +153,7 @@ spec:
184
153
- type: prometheus
185
154
metricType: AverageValue
186
155
metadata:
187
- serverAddress: https://< example- cluster> :9091 <3>
156
+ serverAddress: https://thanos-querier.openshift-monitoring.svc. cluster.local :9091 <3>
188
157
namespace: openshift-ingress-operator <4>
189
158
metricName: 'kube-node-role'
190
159
threshold: '1'
@@ -195,7 +164,7 @@ spec:
195
164
----
196
165
<1> The custom resource that you are targeting. In this case, the Ingress Controller.
197
166
<2> Optional: The maximum number of replicas. If you omit this field, the default maximum is set to 100 replicas.
198
- <3> The cluster address and port .
167
+ <3> The Thanos service endpoint in the `openshift-monitoring` namespace .
199
168
<4> The Ingress Operator namespace.
200
169
<5> This expression evaluates to however many worker nodes are present in the deployed cluster.
201
170
+
0 commit comments