Skip to content

Commit

Permalink
add kubectl scale option back
Browse files Browse the repository at this point in the history
  • Loading branch information
kmetin committed Jan 17, 2024
1 parent c970107 commit 8854a2f
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/modules/ROOT/pages/scaling-upgrading.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
= Scaling and Upgrading a Hazelcast Deployment

To scale an existing Hazelcast deployment, modify the yaml definition you used to deploy Hazelcast cluster by updating `clusterSize` field and re-apply it again.
To scale an existing Hazelcast deployment, there are two options:

- Modify the yaml definition you used to deploy Hazelcast cluster by updating `clusterSize` field and re-apply it again:
Assuming the following is the existing configuration:

Expand All @@ -26,6 +28,20 @@ spec:
clusterSize: 5
----

- To scale an existing Hazelcast deployment, use the following command:
[source,shell]
----
kubectl scale hazelcast <name> --replicas <replica-count>
----

Example:

[source,shell]
----
kubectl scale hazelcast hazelcast-sample --replicas 5
----

== Upgrading

Before upgrade, we recommend you to check xref:hazelcast:maintain-cluster:rolling-upgrades.adoc#hazelcast-members-compatibility-guarantees[Rolling Upgrades].
Expand Down

0 comments on commit 8854a2f

Please sign in to comment.