By default, Management Center persists metrics to a persistent volume. You can turn this off by disabling persistence.
Management Center collects and report metrics data for connected Hazelcast clusters. See Monitoring for more information.
Configure Management Center persistence
Operator supports the following configuration for Management Center persistence.
| Field | Description |
|---|---|
|
When true, Management Center will use a Persistent Volume Claim (PVC) to store data. |
|
Size of the PVC. |
|
Name of an existing PVC to use. If left blank, Management Center will request a new PVC. By default, Management Center data is persisted to the |
|
Storage class for the PVC. |
StatefulSet does not support updates to the volumeClaimTemplates field, so the persistence field should be set only at the creation of the custom resource. Any update to the persistence field will not affect Management Center.
|
Example configuration
The following example configuration assigns a Kubernetes Persistent Volume with a size of 10GiB:
apiVersion: hazelcast.com/v1alpha1
kind: ManagementCenter
metadata:
name: managementcenter
spec:
repository: "hazelcast/management-center"
licenseKeySecretName: hazelcast-license-key
hazelcastClusters:
- address: hazelcast
name: dev
persistence:
enabled: true
size: 10Gi