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

[stable/hazelcast] Add missing LOGGING_LEVEL env variables (#88) #19944

Merged
merged 1 commit into from
Jan 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stable/hazelcast/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: hazelcast
version: 2.9.2
version: 2.10.0
appVersion: "3.12.4"
tillerVersion: ">=2.7.2"
kubeVersion: ">=1.9.0-0"
Expand Down
6 changes: 6 additions & 0 deletions stable/hazelcast/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ their default values.
|`+hazelcast.javaOpts+` |Additional JAVA_OPTS properties for Hazelcast member
|`+nil+`

|`+hazelcast.loggingLevel+` |Level of Hazelcast logs (SEVERE, WARNING, INFO, CONFIG, FINE, FINER, and FINEST); note that changing this value requires setting `securityContext.runAsUser` to `0` and `securityContext.readOnlyRootFilesystem` to `false`
|`+nil+`

|`+hazelcast.existingConfigMap+` |ConfigMap which contains Hazelcast
configuration file(s) that are used instead hazelcast.yaml embedded into
values.yaml |`+nil+`
Expand Down Expand Up @@ -195,6 +198,9 @@ Center containers |`+65534+`
|`+securityContext.fsGroup+` |Group ID associated with the Hazelcast and
Management Center container |`+65534+`

|`+securityContext.readOnlyRootFilesystem+` | Enables readOnlyRootFilesystem in
the Hazelcast security context |`true`

|`+metrics.enabled+` |Turn on and off JMX Prometheus metrics available at
`+/metrics+` |`+false+`

Expand Down
6 changes: 5 additions & 1 deletion stable/hazelcast/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,16 @@ spec:
{{- end }}
- name: JAVA_OPTS
value: "-Dhazelcast.config=/data/hazelcast/hazelcast.yaml -DserviceName={{ template "hazelcast.serviceName" . }} -Dnamespace={{ .Release.Namespace }} -Dhazelcast.mancenter.enabled={{ .Values.mancenter.enabled }} -Dhazelcast.mancenter.url=http://{{ template "mancenter.fullname" . }}:{{ .Values.mancenter.service.port }}/hazelcast-mancenter {{ 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 }}"
{{- if .Values.hazelcast.loggingLevel }}
- name: LOGGING_LEVEL
value: {{ .Values.hazelcast.loggingLevel }}
{{- end }}
{{- if .Values.securityContext.enabled }}
securityContext:
runAsNonRoot: {{ if eq (int .Values.securityContext.runAsUser) 0 }}false{{ else }}true{{ end }}
runAsUser: {{ .Values.securityContext.runAsUser }}
privileged: false
readOnlyRootFilesystem: true
readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }}
allowPrivilegeEscalation: false
capabilities:
drop:
Expand Down
9 changes: 7 additions & 2 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.12.4"
tag: "3.12.5"
# 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 @@ -26,8 +26,11 @@ cluster:
hazelcast:
# javaOpts are additional JAVA_OPTS properties for Hazelcast member
javaOpts:
# loggingLevel is the level of Hazelcast logs (SEVERE, WARNING, INFO, CONFIG, FINE, FINER, and FINEST)
# Note that changing this value requires setting securityContext.runAsUser to 0 and securityContext.readOnlyRootFilesystem to false
# loggingLevel:
# existingConfigMap defines a ConfigMap which contains Hazelcast configuration file(s) that are used instead hazelcast.yaml configuration below
# existingConfigMap
# existingConfigMap:
# yaml is the Hazelcast YAML configuration file
yaml:
hazelcast:
Expand Down Expand Up @@ -170,6 +173,8 @@ securityContext:
runAsUser: 65534
# fsGroup is the group ID associated with the container
fsGroup: 65534
# readOnlyRootFilesystem is a flag to enable readOnlyRootFilesystem for the Hazelcast security context
readOnlyRootFilesystem: true

# Allows to enable a Prometheus to scrape pods, implemented for Hazelcast version >= 3.12 (or 'latest')
metrics:
Expand Down