Skip to content

Commit

Permalink
chore(doc): hpa default behavior
Browse files Browse the repository at this point in the history
Closes #3132
  • Loading branch information
squakez committed Sep 15, 2023
1 parent fabe30b commit f4c7174
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/modules/ROOT/pages/scaling/binding.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ A Pipe can automatically scale based on its CPU utilization and custom metrics u

For example, executing the following command creates an _autoscaler_ for the Pipe, with target CPU utilization set to 80%, and the number of replicas between 2 and 5:

WARNING: the HPA can work when the Pipe replica field needs to be specified. You need to scale the Pipe via `kubectl scale pipe my-pipe --replicas 1` or edit the `.spec.replicas` field of your Pipe to 1. This is due to a link:https://github.com/kubernetes/kubernetes/issues/111781[Kubernetes behavior which does not allow an empty value on the resource to scale].

[source,console]
----
$ kubectl autoscale klb <kamelet_binding_name> --min=2 --max=5 --cpu-percent=80
Expand Down
2 changes: 2 additions & 0 deletions docs/modules/ROOT/pages/scaling/integration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ spec:
averageValue: 1k
----

WARNING: the HPA can work when the Integration replica field needs to be specified. You need to scale the Integration via `kubectl scale it my-it --replicas 1` or edit the `.spec.replicas` field of your Integration to 1. This is due to a link:https://github.com/kubernetes/kubernetes/issues/111781[Kubernetes behavior which does not allow an empty value on the resource to scale].

More information can be found in https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/[Horizontal Pod Autoscaler] from the Kubernetes documentation.

NOTE: HPA can also be used with Knative, by installing the https://knative.dev/docs/install/install-extensions/#install-optional-serving-extensions[HPA autoscaling Serving extension].

0 comments on commit f4c7174

Please sign in to comment.