Skip to content
Snippets Groups Projects
Commit 9606426b authored by Philipp S. Sommer's avatar Philipp S. Sommer
Browse files

Merge branch 'add-many-files-pvc' into 'main'

implement the useManyFiles-PVC option

See merge request !37
parents 5333f3e0 e82d9f43
No related branches found
No related tags found
1 merge request!37implement the useManyFiles-PVC option
Pipeline #279062 passed
......@@ -44,6 +44,16 @@ jobTemplate:
topologyKey: kubernetes.io/hostname
{% raw %}{{- end }}{% endraw %}
{%- endif %}
{%- raw %}
{{- if .Values.useManyFilesPVC }}
securityContext:
fsGroupChangePolicy: OnRootMismatch
seLinuxOptions:
type: spc_t
serviceAccountName: manyfilespvc
serviceAccount: manyfilespvc
{{- end }}
{%- endraw %}
containers:
- name: {%raw %}{{ .name | quote }}{% endraw %}
{%- raw %}
......
......@@ -34,6 +34,16 @@ metadata:
spec:
affinity: {{ "{{-" }} include "{{ cookiecutter.template_base_name }}.affinity" . | nindent 4 {{ "}}" }}
{%- raw %}
{{- if .Values.useManyFilesPVC }}
securityContext:
fsGroupChangePolicy: OnRootMismatch
seLinuxOptions:
type: spc_t
serviceAccountName: manyfilespvc
serviceAccount: manyfilespvc
{{- end }}
{%- endraw %}
containers:
- name: {% raw %}{{ .Values.baseName }}{% endraw %}
{%- raw %}
......
......@@ -208,6 +208,18 @@ cronJobs: {}
# failedJobsHistoryLimit: 1
{%- endif %}
{%- if cookiecutter.__include_deployment != "no" or cookiecutter.__include_cronjobs == "yes" or cookiecutter.__include_workers == "yes" %}
# useManyFilesPVC is a boolean. If true, we expect that the cluster-admin added
# a `manyfilespvc` serviceaccount. You should use this option when you expect
# that a PVC mounted on the container contains houndreds of thousands of files,
# it uses `seLinuxOptions: {type: spc_t}` in the `securityContext`.
#
# See https://access.redhat.com/solutions/6221251 for information on how this
# is implemented
useManyFilesPVC: false
{%- endif %}
{%- if cookiecutter.__include_workers == "yes" %}
# workers is a mapping from worker name to container options
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment