mirror of
https://github.com/bitnami/charts.git
synced 2026-08-10 14:15:55 +08:00
[bitnami/haproxy] feat: ✨ 🔒 Add readOnlyRootFilesystem support (#23912)
Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> Signed-off-by: Rafael Ríos Saavedra <rrios@vmware.com> Co-authored-by: Rafael Ríos Saavedra <rrios@vmware.com>
This commit is contained in:
co-authored by
Rafael Ríos Saavedra
parent
25fa32f224
commit
5b6732ca7b
@@ -28,4 +28,4 @@ maintainers:
|
|||||||
name: haproxy
|
name: haproxy
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/bitnami/charts/tree/main/bitnami/haproxy
|
- https://github.com/bitnami/charts/tree/main/bitnami/haproxy
|
||||||
version: 0.16.3
|
version: 0.17.0
|
||||||
|
|||||||
@@ -156,6 +156,7 @@ The command removes all the Kubernetes components associated with the chart and
|
|||||||
| `containerSecurityContext.enabled` | Enabled containers' Security Context | `true` |
|
| `containerSecurityContext.enabled` | Enabled containers' Security Context | `true` |
|
||||||
| `containerSecurityContext.seLinuxOptions` | Set SELinux options in container | `nil` |
|
| `containerSecurityContext.seLinuxOptions` | Set SELinux options in container | `nil` |
|
||||||
| `containerSecurityContext.runAsUser` | Set containers' Security Context runAsUser | `1001` |
|
| `containerSecurityContext.runAsUser` | Set containers' Security Context runAsUser | `1001` |
|
||||||
|
| `containerSecurityContext.runAsGroup` | Set containers' Security Context runAsGroup | `0` |
|
||||||
| `containerSecurityContext.runAsNonRoot` | Set container's Security Context runAsNonRoot | `true` |
|
| `containerSecurityContext.runAsNonRoot` | Set container's Security Context runAsNonRoot | `true` |
|
||||||
| `containerSecurityContext.privileged` | Set container's Security Context privileged | `false` |
|
| `containerSecurityContext.privileged` | Set container's Security Context privileged | `false` |
|
||||||
| `containerSecurityContext.readOnlyRootFilesystem` | Set container's Security Context readOnlyRootFilesystem | `false` |
|
| `containerSecurityContext.readOnlyRootFilesystem` | Set container's Security Context readOnlyRootFilesystem | `false` |
|
||||||
|
|||||||
@@ -165,6 +165,9 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: haproxy-conf
|
- name: haproxy-conf
|
||||||
mountPath: /bitnami/haproxy/conf
|
mountPath: /bitnami/haproxy/conf
|
||||||
|
- name: empty-dir
|
||||||
|
mountPath: /tmp
|
||||||
|
subPath: tmp-dir
|
||||||
{{- if .Values.extraVolumeMounts }}
|
{{- if .Values.extraVolumeMounts }}
|
||||||
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 12 }}
|
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -172,6 +175,8 @@ spec:
|
|||||||
{{- include "common.tplvalues.render" ( dict "value" .Values.sidecars "context" $) | nindent 8 }}
|
{{- include "common.tplvalues.render" ( dict "value" .Values.sidecars "context" $) | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: empty-dir
|
||||||
|
emptyDir: {}
|
||||||
- name: haproxy-conf
|
- name: haproxy-conf
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ include "haproxy.configMapName" . }}
|
name: {{ include "haproxy.configMapName" . }}
|
||||||
|
|||||||
@@ -398,6 +398,7 @@ podSecurityContext:
|
|||||||
## @param containerSecurityContext.enabled Enabled containers' Security Context
|
## @param containerSecurityContext.enabled Enabled containers' Security Context
|
||||||
## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
|
## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
|
||||||
## @param containerSecurityContext.runAsUser Set containers' Security Context runAsUser
|
## @param containerSecurityContext.runAsUser Set containers' Security Context runAsUser
|
||||||
|
## @param containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
|
||||||
## @param containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
|
## @param containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
|
||||||
## @param containerSecurityContext.privileged Set container's Security Context privileged
|
## @param containerSecurityContext.privileged Set container's Security Context privileged
|
||||||
## @param containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
|
## @param containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
|
||||||
@@ -409,6 +410,7 @@ containerSecurityContext:
|
|||||||
enabled: true
|
enabled: true
|
||||||
seLinuxOptions: null
|
seLinuxOptions: null
|
||||||
runAsUser: 1001
|
runAsUser: 1001
|
||||||
|
runAsGroup: 0
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
privileged: false
|
privileged: false
|
||||||
readOnlyRootFilesystem: false
|
readOnlyRootFilesystem: false
|
||||||
|
|||||||
Reference in New Issue
Block a user