Skip to content

Commit 857c07e

Browse files
authored
Merge pull request #57039 from mburke5678/cma-typos
HPA with custom metrics typo, 4.10, 4.11 & 4.12
2 parents 19e6511 + 5b05d36 commit 857c07e

4 files changed

+9
-9
lines changed

modules/nodes-pods-autoscaling-custom-creating-trigger-auth.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ kind: Secret
2222
metadata:
2323
name: my-secret
2424
data:
25-
user-name: <base64_username>
26-
password: <base64_password>
25+
user-name: <base64_USER_NAME>
26+
password: <base64_USER_PASSWORD>
2727
----
2828
2929
.Procedure
@@ -47,7 +47,7 @@ spec:
4747
key: USER_NAME
4848
- parameter: password
4949
name: my-secret
50-
key: PASSWORD
50+
key: USER_PASSWORD
5151
----
5252

5353
.. Create the `TriggerAuthentication` object:

modules/nodes-pods-autoscaling-custom-creating-workload.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ metadata:
8080
namespace: my-namespace
8181
spec:
8282
scaleTargetRef:
83-
api: apps/v1 <3>
83+
apiVersion: apps/v1 <3>
8484
name: example-deployment <4>
8585
kind: Deployment <5>
8686
envSourceContainerName: .spec.template.spec.containers[0] <6>

modules/nodes-pods-autoscaling-custom-trigger-auth.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ spec:
2929
key: USER_NAME <5>
3030
- parameter: password
3131
name: my-secret
32-
key: PASSWORD
32+
key: USER_PASSWORD
3333
----
3434
<1> Specifies the namespace of the object you want to scale.
3535
<2> Specifies that this trigger authentication uses a secret for authorization.
@@ -48,10 +48,10 @@ spec:
4848
secretTargetRef: <2>
4949
- parameter: user-name <3>
5050
name: secret-name <4>
51-
key: user-name <5>
52-
- parameter: password
51+
key: USER_NAME <5>
52+
- parameter: user-password
5353
name: secret-name
54-
key: user-name
54+
key: USER_PASSWORD
5555
----
5656
<1> Note that no namespace is used with a cluster trigger authentication.
5757
<2> Specifies that this trigger authentication uses a secret for authorization.

modules/nodes-pods-autoscaling-custom-trigger.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ spec:
5656
<4> Specifies the name to identify the metric in the `external.metrics.k8s.io` API. If you are using more than one trigger, all metric names must be unique.
5757
<5> Specifies the value to start scaling for.
5858
<6> Specifies the Prometheus query to use.
59-
<7> Specifies the authentication method to use. Prometheus scalers support bearer authentication, basic authentication, or TLS authentication. You configure the specific authentication parameters in a trigger authentication, as discussed in a following section. As needed, you can also use a secret.
59+
<7> Specifies the authentication method to use. Prometheus scalers support bearer authentication (`bearer`), basic authentication (`basic`), or TLS authentication (`tls`). You configure the specific authentication parameters in a trigger authentication, as discussed in a following section. As needed, you can also use a secret.
6060
<8> Optional: Passes the `X-Scope-OrgID` header to multi-tenant link:https://cortexmetrics.io/[Cortex] or link:https://grafana.com/oss/mimir/[Mimir] storage for Prometheus. This parameter is required only with multi-tenant Prometheus storage, to indicate which data Prometheus should return.
6161
<9> Optional: Specifies how the trigger should proceed if the Prometheus target is lost.
6262
* If `true`, the trigger continues to operate if the Prometheus target is lost. This is the default.

0 commit comments

Comments
 (0)