Merge pull request #668 from timricese/master

Add securityContext parameter to loadtester chart
This commit is contained in:
Stefan Prodan
2020-08-17 08:33:45 +03:00
committed by GitHub
3 changed files with 14 additions and 0 deletions
+2
View File
@@ -68,6 +68,8 @@ Parameter | Description | Default
`istio.tls.enabled` | Enable TLS in gateway ( TLS secrets should be in namespace ) | `false`
`istio.tls.httpsRedirect` | Redirect traffic to TLS port | `false`
`podPriorityClassName` | PriorityClass name for pod priority configuration | ""
`securityContext.enabled` | Add securityContext to container | ""
`securityContext.context` | securityContext to add | ""
Specify each parameter using the `--set key=value[,key=value]` argument to `helm upgrade`. For example,
@@ -32,6 +32,10 @@ spec:
{{- end }}
containers:
- name: {{ .Chart.Name }}
{{- if .Values.securityContext.enabled }}
securityContext:
{{ toYaml .Values.securityContext.context | indent 12 }}
{{- end }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
+8
View File
@@ -71,3 +71,11 @@ istio:
tls:
enabled: false
httpsRedirect: false
# when enabled, it will add a security context for the loadtester pod
securityContext:
enabled: false
context:
readOnlyRootFilesystem: true
runAsUser: 100
runAsGroup: 101