Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
updates to hazelcast 3.12.1 and adds YAML configuration support
Browse files Browse the repository at this point in the history
Signed-off-by: Mesut Celik <[email protected]>
  • Loading branch information
Mesut Celik committed Jun 25, 2019
1 parent 8e09a65 commit e58efa6
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 28 deletions.
4 changes: 2 additions & 2 deletions stable/hazelcast/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: hazelcast
version: 1.3.3
appVersion: "3.11.2"
version: 1.4.0
appVersion: "3.12.1"
description: Hazelcast IMDG is the most widely used in-memory data grid with hundreds of thousands of installed clusters around the world. It offers caching solutions ensuring that data is in the right place when it’s needed for optimal performance.
keywords:
- hazelcast
Expand Down
4 changes: 3 additions & 1 deletion stable/hazelcast/templates/config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.hazelcast.configurationFiles }}
{{- if or .Values.hazelcast.configurationFiles .Values.hazelcast.yaml }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -13,4 +13,6 @@ data:
{{ $key }}: |-
{{ $val | indent 4}}
{{- end }}
hazelcast.yaml: |-
{{ toYaml .Values.hazelcast.yaml | indent 4 }}
{{- end -}}
2 changes: 1 addition & 1 deletion stable/hazelcast/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ spec:
value: "{{ .Values.metrics.service.port }}"
{{- end }}
- name: JAVA_OPTS
value: "-Dhazelcast.rest.enabled={{ .Values.hazelcast.rest }} -Dhazelcast.config=/data/hazelcast/hazelcast.xml -DserviceName={{ template "hazelcast.fullname" . }} -Dnamespace={{ .Release.Namespace }} {{ if .Values.gracefulShutdown.enabled }}-Dhazelcast.shutdownhook.policy=GRACEFUL -Dhazelcast.shutdownhook.enabled=true -Dhazelcast.graceful.shutdown.max.wait={{ .Values.gracefulShutdown.maxWaitSeconds }} {{ end }} {{ if .Values.metrics.enabled }}-Dhazelcast.jmx=true{{ end }} {{ .Values.hazelcast.javaOpts }}"
value: "-Dhazelcast.rest.enabled={{ .Values.hazelcast.rest }} -Dhazelcast.config=/data/hazelcast/hazelcast.yaml -DserviceName={{ template "hazelcast.fullname" . }} -Dnamespace={{ .Release.Namespace }} {{ if .Values.gracefulShutdown.enabled }}-Dhazelcast.shutdownhook.policy=GRACEFUL -Dhazelcast.shutdownhook.enabled=true -Dhazelcast.graceful.shutdown.max.wait={{ .Values.gracefulShutdown.maxWaitSeconds }} {{ end }} {{ if .Values.metrics.enabled }}-Dhazelcast.jmx=true{{ end }} {{ .Values.hazelcast.javaOpts }}"
serviceAccountName: {{ template "hazelcast.serviceAccountName" . }}
volumes:
- name: hazelcast-storage
Expand Down
39 changes: 15 additions & 24 deletions stable/hazelcast/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ image:
# repository is the Hazelcast image name
repository: "hazelcast/hazelcast"
# tag is the Hazelcast image tag
tag: "3.11.2"
tag: "3.12"
# 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
Expand All @@ -28,29 +28,20 @@ hazelcast:
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>
# yaml is the Hazelcast YAML configuration file
yaml:
hazelcast:
network:
join:
multicast:
enabled: false
kubernetes:
enabled: true
service-name: ${serviceName}
namespace: ${namespace}
resolve-not-ready-addresses: true
# configurationFiles are any additional Hazelcast configuration files
# configurationFiles:

# nodeSelector is an array of Hazelcast Node labels for POD assignments
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
Expand Down

0 comments on commit e58efa6

Please sign in to comment.