-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CN-1037]: add doc for scaling and upgrading (#145)
- Loading branch information
Kutluhan Metin
authored
Dec 19, 2023
1 parent
e8acb23
commit 70afc92
Showing
4 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: hazelcast.com/v1alpha1 | ||
kind: Hazelcast | ||
metadata: | ||
name: hazelcast-sample | ||
spec: | ||
clusterSize: 3 | ||
repository: 'docker.io/hazelcast/hazelcast' | ||
version: '5.2.4-slim' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
= Scaling and Upgrading a Hazelcast Deployment | ||
|
||
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 | ||
|
||
To upgrade your existing deployment to a newer version, you need to update `spec.version` field and re-apply. For example: | ||
|
||
Assuming the following is the existing configuration: | ||
|
||
[source,yaml,subs="attributes+"] | ||
---- | ||
include::ROOT:example$/hazelcast-5.2.4.yaml[] | ||
---- | ||
|
||
and you want to upgrade your hazelcast version to {page-latest-supported-hazelcast}, you need to apply the following: | ||
|
||
|
||
Assuming the following is the existing configuration: | ||
|
||
[source,yaml,subs="attributes+"] | ||
---- | ||
include::ROOT:example$/hazelcast.yaml[] | ||
---- | ||
|