[incubator/druid] Add securityContext and fix local storage mounting path (#23561)

* add securityContext into statefulset yaml

Signed-off-by: AWaterColorPen <hellis@foxmail.com>

* change volume mounts path

Signed-off-by: AWaterColorPen <hellis@foxmail.com>
This commit is contained in:
Hellis
2020-09-29 08:07:26 -07:00
committed by GitHub
parent d792245e71
commit ddb9644b45
5 changed files with 19 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 0.19.0
description: Apache Druid is a high performance real-time analytics database.
name: druid
version: 0.2.12
version: 0.2.13
home: https://druid.apache.org/
icon: https://druid.apache.org/img/favicon.png
maintainers:
+2
View File
@@ -126,6 +126,7 @@ The following table lists the configurable parameters of the Druid chart and the
| `historical.resources` | historical node resources requests & limits | `{}` |
| `historical.podAnnotations` | historical Deployment annotations | `{}` |
| `historical.nodeSelector` | node labels for historical pod assignment | `{}` |
| `historical.securityContext` | custom security context for historical containers | `{ fsGroup: 1000 }` |
| `historical.tolerations` | historical tolerations | `[]` |
| `historical.config` | historical node private config such as `JAVA_OPTS` | |
| `historical.persistence.enabled` | historical persistent enabled/disabled | `true` |
@@ -147,6 +148,7 @@ The following table lists the configurable parameters of the Druid chart and the
| `middleManager.resources` | middleManager node resources requests & limits | `{}` |
| `middleManager.podAnnotations` | middleManager Deployment annotations | `{}` |
| `middleManager.nodeSelector` | Node labels for middleManager pod assignment | `{}` |
| `middleManager.securityContext` | custom security context for middleManager containers | `{ fsGroup: 1000 }` |
| `middleManager.tolerations` | middleManager tolerations | `[]` |
| `middleManager.config` | middleManager private config such as `JAVA_OPTS` | |
| `middleManager.persistence.enabled` | middleManager persistent enabled/disabled | `true` |
@@ -60,6 +60,10 @@ spec:
nodeSelector:
{{ toYaml .Values.historical.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.historical.securityContext }}
securityContext:
{{ toYaml .Values.historical.securityContext | indent 8 }}
{{- end }}
{{- if .Values.historical.tolerations }}
tolerations:
{{ toYaml .Values.historical.tolerations | indent 8 }}
@@ -97,7 +101,7 @@ spec:
- containerPort: {{ .Values.historical.port }}
name: http
volumeMounts:
- mountPath: /var/druid/
- mountPath: /opt/druid/var/druid/
name: data
{{- if .Values.gCloudStorage.enabled }}
- name: google-cloud-key
@@ -60,6 +60,10 @@ spec:
nodeSelector:
{{ toYaml .Values.middleManager.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.middleManager.securityContext }}
securityContext:
{{ toYaml .Values.middleManager.securityContext | indent 8 }}
{{- end }}
{{- if .Values.middleManager.tolerations }}
tolerations:
{{ toYaml .Values.middleManager.tolerations | indent 8 }}
@@ -97,7 +101,7 @@ spec:
- containerPort: {{ .Values.middleManager.port }}
name: http
volumeMounts:
- mountPath: /var/druid/
- mountPath: /opt/druid/var/druid/
name: data
{{- if .Values.gCloudStorage.enabled }}
- name: google-cloud-key
+6
View File
@@ -205,6 +205,9 @@ historical:
nodeSelector: {}
securityContext:
fsGroup: 1000
tolerations: []
resources: {}
@@ -284,6 +287,9 @@ middleManager:
nodeSelector: {}
securityContext:
fsGroup: 1000
tolerations: []
resources: {}