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

added support for security context #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
12 changes: 10 additions & 2 deletions activemq-artemis/templates/master-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ spec:
port: core
initialDelaySeconds: 10
periodSeconds: 10
{{- if .Values.containerSecurityContext }}
securityContext:
{{ toYaml .Values.containerSecurityContext | indent 10 }}
{{- end }}
volumeMounts:
- name: data
mountPath: /var/lib/artemis/data
Expand All @@ -107,6 +111,10 @@ spec:
mountPath: /opt/configure-common
- name: configure-master
mountPath: /opt/configure-master
{{- if .Values.podSecurityContext }}
securityContext:
{{ toYaml .Values.podSecurityContext | indent 8 }}
{{- end }}
volumes:
- name: config-override
emptyDir: {}
Expand All @@ -126,7 +134,7 @@ spec:
resources:
requests:
storage: {{ .Values.persistence.size }}
{{- else}}
{{- else }}
- name: data
emptyDir: {}
{{- end}}
{{- end }}
10 changes: 9 additions & 1 deletion activemq-artemis/templates/slave-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ spec:
port: core
initialDelaySeconds: 10
periodSeconds: 10
{{- if .Values.containerSecurityContext }}
securityContext:
{{ toYaml .Values.containerSecurityContext | indent 10 }}
{{- end }}
volumeMounts:
- name: data
mountPath: /var/lib/artemis/data
Expand All @@ -87,6 +91,10 @@ spec:
mountPath: /opt/configure-common
- name: configure-slave
mountPath: /opt/configure-slave
{{- if .Values.podSecurityContext }}
securityContext:
{{ toYaml .Values.podSecurityContext | indent 8 }}
{{- end }}
volumes:
- name: config-override
emptyDir: {}
Expand All @@ -106,7 +114,7 @@ spec:
resources:
requests:
storage: {{ .Values.persistence.size }}
{{- else}}
{{- else }}
- name: data
emptyDir: {}
{{- end}}
5 changes: 5 additions & 0 deletions activemq-artemis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ resources:
loadbalancer:
enabled: true

# podSecurityContext allows setting security context for the pod: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
# podSecurityContext:
# containerSecurityContext allows setting security context for the container: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
# containerSecurityContext:

## Prometheus Exporters / Metrics
##
prometheus:
Expand Down