-
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.
Add doc for container resources (#154)
--------- Co-authored-by: rebekah-lawrence <[email protected]> Co-authored-by: Hasan Çelik <[email protected]> Co-authored-by: Serdar Ozmen <[email protected]>
- Loading branch information
1 parent
a478bc7
commit 7298e59
Showing
5 changed files
with
86 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: hazelcast.com/v1alpha1 | ||
kind: Hazelcast | ||
metadata: | ||
name: hazelcast | ||
spec: | ||
clusterSize: 3 | ||
repository: 'docker.io/hazelcast/hazelcast-enterprise' | ||
licenseKeySecretName: hazelcast-license-key | ||
resources: | ||
requests: | ||
memory: "64Mi" | ||
cpu: "250m" | ||
limits: | ||
memory: "128Mi" | ||
cpu: "500m" |
16 changes: 16 additions & 0 deletions
16
docs/modules/ROOT/examples/management-center-resources.yaml
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,16 @@ | ||
apiVersion: hazelcast.com/v1alpha1 | ||
kind: ManagementCenter | ||
metadata: | ||
name: mancenter | ||
spec: | ||
hazelcastClusters: | ||
- address: hazelcast | ||
name: dev | ||
resources: | ||
requests: | ||
memory: "64Mi" | ||
cpu: "250m" | ||
limits: | ||
memory: "128Mi" | ||
cpu: "500m" | ||
|
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,17 @@ | ||
apiVersion: hazelcast.com/v1alpha1 | ||
kind: Hazelcast | ||
metadata: | ||
name: hazelcast | ||
spec: | ||
clusterSize: 3 | ||
repository: 'docker.io/hazelcast/hazelcast-enterprise' | ||
licenseKeySecretName: hazelcast-license-key | ||
agent: | ||
repository: hazelcast/platform-operator-agent | ||
resources: | ||
requests: | ||
memory: "64Mi" | ||
cpu: "250m" | ||
limits: | ||
memory: "128Mi" | ||
cpu: "500m" |
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 @@ | ||
= Configuring Container Resources | ||
|
||
:description: pass:q[You can configure resources for Hazelcast, sidecar agent, and Management Center containers.] | ||
|
||
{description} | ||
|
||
You can find detailed information about resources in the link:https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/[Resource Management for Pods and Containers] Kubernetes documentation. | ||
|
||
== Configuring Resources for Hazelcast | ||
|
||
You can configure resources for Hazelcast containers using the `resources` field of the CRD `spec`. | ||
|
||
.Example configuration | ||
[source,yaml,subs="attributes+"] | ||
---- | ||
include::ROOT:example$/hazelcast-resources.yaml[] | ||
---- | ||
|
||
== Configuring Resources for Sidecar | ||
|
||
You can configure resources for sidecar containers using the `agent.resources` field of the CRD `spec`. | ||
|
||
.Example configuration | ||
[source,yaml,subs="attributes+"] | ||
---- | ||
include::ROOT:example$/sidecar-resources.yaml[] | ||
---- | ||
|
||
== Configuring Resources for Management Center | ||
|
||
You can configure resources for Management Center containers using the `resources` field of the CRD `spec`. | ||
|
||
.Example configuration | ||
[source,yaml,subs="attributes+"] | ||
---- | ||
include::ROOT:example$/management-center-resources.yaml[] | ||
---- |