securityContext in prometheus-operator needs to be configurable (#9595)

the current securityContext is fixed. it needs to be configurable

Signed-off-by: gangseok.lee <gangseok.lee@samsung.com>
This commit is contained in:
Kangseok Thomas Lee
2018-12-02 23:02:06 -08:00
committed by Kubernetes Prow Robot
parent 72747c6ebc
commit c93be5e2af
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ name: prometheus-operator
sources:
- https://github.com/coreos/prometheus-operator
- https://coreos.com/operators/prometheus
version: 0.1.28
version: 0.1.29
appVersion: "0.25.0"
home: https://github.com/coreos/prometheus-operator
keywords:
+1
View File
@@ -81,6 +81,7 @@ The following tables lists the configurable parameters of the prometheus-operato
| `prometheusOperator.service.nodePort` | Port to expose prometheus operator service on each node | `38080` |
| `prometheusOperator.service.annotations` | Annotations to be added to the prometheus operator service | `{}` |
| `prometheusOperator.resources` | Resource limits for prometheus operator | `{}` |
| `prometheusOperator.securityContext` | SecurityContext for prometheus operator | `{"runAsNonRoot": true, "runAsUser": 65534}` |
| `prometheusOperator.nodeSelector` | Prometheus operator node selector https://kubernetes.io/docs/user-guide/node-selection/ | `{}` |
| `prometheusOperator.tolerations` | Tolerations for use with node taints https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ | `[]` |
| `prometheusOperator.affinity` | Assign the prometheus operator to run on specific nodes https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | `{}` |
@@ -44,9 +44,10 @@ spec:
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
{{- if .Values.prometheusOperator.securityContext }}
securityContext:
runAsNonRoot: true
runAsUser: 65534
{{ toYaml .Values.prometheusOperator.securityContext | indent 8 }}
{{- end }}
serviceAccountName: {{ template "prometheus-operator.operator.serviceAccountName" . }}
{{- with .Values.prometheusOperator.nodeSelector }}
nodeSelector:
+4
View File
@@ -530,6 +530,10 @@ prometheusOperator:
# - e2e-az1
# - e2e-az2
securityContext:
runAsNonRoot: true
runAsUser: 65534
## Prometheus-operator image
##
image: