mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
add securityContext and podSecurityContex (#15357)
Signed-off-by: Yurii Polishchuk <yuriy.pol@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
4457417c0a
commit
c6d0075ca1
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: fluent-bit
|
||||
version: 2.4.0
|
||||
version: 2.4.1
|
||||
appVersion: 1.2.1
|
||||
description: Fast and Lightweight Log/Data Forwarder for Linux, BSD and OSX
|
||||
keywords:
|
||||
|
||||
@@ -119,6 +119,8 @@ The following table lists the configurable parameters of the Fluent-Bit chart an
|
||||
| `serviceAccount.name` | The name of the ServiceAccount to use. | `NULL` |
|
||||
| `rawConfig` | Raw contents of fluent-bit.conf | `@INCLUDE fluent-bit-service.conf`<br>`@INCLUDE fluent-bit-input.conf`<br>`@INCLUDE fluent-bit-filter.conf`<br>` @INCLUDE fluent-bit-output.conf` |
|
||||
| `resources` | Pod resource requests & limits | `{}` |
|
||||
| `securityContext` | [Security settings for a container](https://kubernetes.io/docs/concepts/policy/security-context) | `{}` |
|
||||
| `podSecurityContext` | [Security settings for a pod](https://kubernetes.io/docs/concepts/policy/security-context) | `{}` |
|
||||
| `hostNetwork` | Use host's network | `false` |
|
||||
| `dnsPolicy` | Specifies the dnsPolicy to use | `ClusterFirst` |
|
||||
| `priorityClassName` | Specifies the priorityClassName to use | `NULL` |
|
||||
|
||||
@@ -24,6 +24,10 @@ spec:
|
||||
{{ toYaml .Values.podAnnotations | indent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.podSecurityContext }}
|
||||
securityContext:
|
||||
{{ toYaml .Values.podSecurityContext | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.priorityClassName }}
|
||||
priorityClassName: "{{ .Values.priorityClassName }}"
|
||||
{{- end }}
|
||||
@@ -52,6 +56,10 @@ spec:
|
||||
{{- if .Values.extraPorts }}
|
||||
{{ toYaml .Values.extraPorts | indent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.securityContext }}
|
||||
securityContext:
|
||||
{{ toYaml .Values.securityContext | indent 10 }}
|
||||
{{- end }}
|
||||
volumeMounts:
|
||||
- name: varlog
|
||||
|
||||
@@ -269,3 +269,15 @@ serviceAccount:
|
||||
# The name of the ServiceAccount to use.
|
||||
# If not set and create is true, a name is generated using the fullname template
|
||||
name:
|
||||
|
||||
## Specifies security settings for a container
|
||||
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
|
||||
securityContext: {}
|
||||
# securityContext:
|
||||
# privileged: true
|
||||
|
||||
## Specifies security settings for a pod
|
||||
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
|
||||
podSecurityContext: {}
|
||||
# podSecurityContext:
|
||||
# runAsUser: 1000
|
||||
|
||||
Reference in New Issue
Block a user