mirror of
https://github.com/helm/charts.git
synced 2026-08-23 14:27:18 +00:00
145 lines
5.0 KiB
YAML
145 lines
5.0 KiB
YAML
## Hazelcast image version
|
|
## ref: https://hub.docker.com/r/hazelcast/hazelcast-kubernetes/tags/
|
|
##
|
|
image:
|
|
# repository is the Hazelcast image name
|
|
repository: "hazelcast/hazelcast"
|
|
# tag is the Hazelcast image tag
|
|
tag: "3.11.2"
|
|
# pullPolicy is the Docker image pull policy
|
|
# It's recommended to change this to 'Always' if the image tag is 'latest'
|
|
# ref: http://kubernetes.io/docs/user-guide/images/#updating-images
|
|
#
|
|
pullPolicy: IfNotPresent
|
|
# pullSecrets is an array of docker-registry secret names
|
|
# Secrets must be manually created in the namespace.
|
|
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
|
|
# pullSecrets:
|
|
# - myRegistryKeySecretName
|
|
|
|
# Cluster settings
|
|
cluster:
|
|
# memberCount is the number Hazelcast members
|
|
memberCount: 2
|
|
|
|
# Hazelcast properties
|
|
hazelcast:
|
|
# rest is a flag used to enable REST endpoints for Hazelcast member
|
|
rest: true
|
|
# javaOpts are additional JAVA_OPTS properties for Hazelcast member
|
|
javaOpts:
|
|
# configurationFiles are Hazelcast configuration files
|
|
configurationFiles:
|
|
hazelcast.xml: |-
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.10.xsd"
|
|
xmlns="http://www.hazelcast.com/schema/config"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
|
|
<properties>
|
|
<property name="hazelcast.discovery.enabled">true</property>
|
|
</properties>
|
|
<network>
|
|
<join>
|
|
<multicast enabled="false"/>
|
|
<kubernetes enabled="true">
|
|
<service-name>${serviceName}</service-name>
|
|
<namespace>${namespace}</namespace>
|
|
<resolve-not-ready-addresses>true</resolve-not-ready-addresses>
|
|
</kubernetes>
|
|
</join>
|
|
</network>
|
|
</hazelcast>
|
|
|
|
|
|
# nodeSelector is an array of Hazelcast Node labels for POD assignments
|
|
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
|
|
nodeSelector: {}
|
|
|
|
# graceful shutdown properties
|
|
gracefulShutdown:
|
|
# enabled is a flag used to enable Graceful Shutdown
|
|
enabled: true
|
|
# maxWaitSeconds is the maximum time to wait for the Hazelcast POD to shut down
|
|
maxWaitSeconds: 600
|
|
|
|
# Hazelcast Liveness probe
|
|
livenessProbe:
|
|
# enabled is a flag used to enable liveness probe
|
|
enabled: true
|
|
# initialDelaySeconds is a delay before liveness probe is initiated
|
|
initialDelaySeconds: 30
|
|
# periodSeconds decides how often to perform the probe
|
|
periodSeconds: 10
|
|
# timeoutSeconds decides when the probe times out
|
|
timeoutSeconds: 10
|
|
# successThreshold is the minimum consecutive successes for the probe to be considered successful after having failed
|
|
successThreshold: 1
|
|
# failureThreshold is the minimum consecutive failures for the probe to be considered failed after having succeeded
|
|
failureThreshold: 10
|
|
|
|
# Hazelcast Readiness probe
|
|
readinessProbe:
|
|
# enabled is a flag used to enable readiness probe
|
|
enabled: true
|
|
# initialDelaySeconds is a delay before readiness probe is initiated
|
|
initialDelaySeconds: 30
|
|
# periodSeconds decides how often to perform the probe
|
|
periodSeconds: 10
|
|
# timeoutSeconds decides when the probe times out
|
|
timeoutSeconds: 10
|
|
# successThreshold is the minimum consecutive successes for the probe to be considered successful after having failed
|
|
successThreshold: 1
|
|
# failureThreshold is the minimum consecutive failures for the probe to be considered failed after having succeeded
|
|
failureThreshold: 10
|
|
|
|
# Configure resource requests and limits
|
|
# ref: http://kubernetes.io/docs/user-guide/compute-resources/
|
|
#
|
|
# resources:
|
|
# requests:
|
|
# memory: 256Mi
|
|
# cpu: 100m
|
|
|
|
# Hazelcast Service properties
|
|
service:
|
|
# type defines the Kubernetes service type ('ClusterIP', 'LoadBalancer', or 'NodePort')
|
|
type: ClusterIP
|
|
# port is the Kubernetes service port
|
|
port: 5701
|
|
# clusterIP set to None makes the service headless
|
|
# It is required if DNS Lookup is used (https://github.com/hazelcast/hazelcast-kubernetes#dns-lookup)
|
|
# clusterIP: "None"
|
|
|
|
# Role-based Access Control
|
|
rbac:
|
|
# Specifies whether RBAC resources should be created
|
|
# It is not required if DNS Lookup is used (https://github.com/hazelcast/hazelcast-kubernetes#dns-lookup)
|
|
create: true
|
|
|
|
serviceAccount:
|
|
# Specifies whether a ServiceAccount should be created
|
|
create: true
|
|
# The name of the ServiceAccount to use.
|
|
# If not set and create is true, a name is generated using the fullname template
|
|
name:
|
|
|
|
# Default security-context to run unprivileged
|
|
securityContext:
|
|
fsGroup: 65534
|
|
runAsUser: 65534
|
|
runAsNonRoot: true
|
|
readOnlyRootFilesystem: true
|
|
allowPrivilegeEscalation: false
|
|
defaultAllowPrivilegeEscalation: false
|
|
|
|
# Allows to enable a Prometheus to scrape pods, implemented for Hazelcast version >= 3.12 (or 'latest')
|
|
metrics:
|
|
enabled: false
|
|
service:
|
|
type: ClusterIP
|
|
port: 8080
|
|
annotations:
|
|
prometheus.io/scrape: "true"
|
|
prometheus.io/path: "/metrics"
|