This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new 2a416325a fix(doc): pipe vs klb
2a416325a is described below
commit 2a416325ac657866ba12021f07cab9507256b7bd
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Thu Mar 13 17:35:19 2025 +0100
fix(doc): pipe vs klb
Closes #6083
---
docs/modules/ROOT/pages/scaling/binding.adoc | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/docs/modules/ROOT/pages/scaling/binding.adoc
b/docs/modules/ROOT/pages/scaling/binding.adoc
index 027e28e13..008de8adc 100644
--- a/docs/modules/ROOT/pages/scaling/binding.adoc
+++ b/docs/modules/ROOT/pages/scaling/binding.adoc
@@ -7,21 +7,21 @@ A Pipe can be scaled using the `kubectl scale` command, e.g.:
[source,console]
----
-$ kubectl scale klb <kamelet_binding_name> --replicas <number_of_replicas>
+$ kubectl scale pipe <kamelet_binding_name> --replicas <number_of_replicas>
----
This can also be achieved by editing the Pipe resource directly, e.g.:
[source,console]
----
-$ kubectl patch klb <kamelet_binding_name> -p
'{"spec":{"replicas":<number_of_replicas>}}'
+$ kubectl patch pipe <kamelet_binding_name> -p
'{"spec":{"replicas":<number_of_replicas>}}'
----
The Pipe also reports its number of replicas in the `.status.replicas` field,
e.g.:
[source,console]
----
-$ kubectl get klb <kamelet_binding_name> -o jsonpath='{.status.replicas}'
+$ kubectl get pipe <kamelet_binding_name> -o jsonpath='{.status.replicas}'
----
== Autoscaling with Knative
@@ -89,7 +89,7 @@ Scale bounds can be reset by removing the `.spec.replicas`
field from the Pipe,
[source,console]
----
-$ kubectl patch klb <kamelet_binding_name> --type=json -p='[{"op": "remove",
"path": "/spec/replicas"}]'
+$ kubectl patch pipe <kamelet_binding_name> --type=json -p='[{"op": "remove",
"path": "/spec/replicas"}]'
----
====
@@ -103,7 +103,7 @@ WARNING: the HPA can work when the Pipe replica field needs
to be specified. You
[source,console]
----
-$ kubectl autoscale klb <kamelet_binding_name> --min=2 --max=5 --cpu-percent=80
+$ kubectl autoscale pipe <kamelet_binding_name> --min=2 --max=5
--cpu-percent=80
----
Refer to the xref:scaling/integration.adoc[Integration scaling] guide for
information about using custom metrics.