Skip to content

Commit 09ae03d

Browse files
authored
Merge pull request #68594 from jldohmann/OCPBUGS-18769
OCPBUGS-18769: autoscaler fixes
2 parents 1d3362b + 807e28d commit 09ae03d

File tree

1 file changed

+3
-34
lines changed

1 file changed

+3
-34
lines changed

modules/nw-autoscaling-ingress-controller.adoc

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -12,40 +12,9 @@ Automatically scale an Ingress Controller to dynamically meet routing performanc
1212
. You have the OpenShift CLI (`oc`) installed.
1313
. You have access to an {product-title} cluster as a user with the `cluster-admin` role.
1414
. You have the Custom Metrics Autoscaler Operator installed.
15+
. You are in the `openshift-ingress-operator` project namespace.
1516

1617
.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-
----
4918

5019
. Create a service account to authenticate with Thanos by running the following command:
5120
+
@@ -184,7 +153,7 @@ spec:
184153
- type: prometheus
185154
metricType: AverageValue
186155
metadata:
187-
serverAddress: https://<example-cluster>:9091 <3>
156+
serverAddress: https://thanos-querier.openshift-monitoring.svc.cluster.local:9091 <3>
188157
namespace: openshift-ingress-operator <4>
189158
metricName: 'kube-node-role'
190159
threshold: '1'
@@ -195,7 +164,7 @@ spec:
195164
----
196165
<1> The custom resource that you are targeting. In this case, the Ingress Controller.
197166
<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.
199168
<4> The Ingress Operator namespace.
200169
<5> This expression evaluates to however many worker nodes are present in the deployed cluster.
201170
+

0 commit comments

Comments
 (0)