Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for read-only root filesystem and enable by default #235

Merged
merged 10 commits into from
Nov 30, 2023
9 changes: 6 additions & 3 deletions kiali-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,14 @@ spec:
allowPrivilegeEscalation: false
privileged: false
runAsNonRoot: true
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
{{- end }}
volumeMounts:
- mountPath: /tmp/ansible-operator/runner
name: runner
- mountPath: /tmp
name: tmp
env:
- name: WATCH_NAMESPACE
value: {{ .Values.watchNamespace | default "\"\"" }}
Expand Down Expand Up @@ -109,6 +110,8 @@ spec:
{{- else }}
value: "/etc/ansible/ansible.cfg"
{{- end }}
- name: ANSIBLE_LOCAL_TEMP
value: "/tmp/ansible/tmp"
eli-gc marked this conversation as resolved.
Show resolved Hide resolved
{{- if .Values.env }}
{{- toYaml .Values.env | nindent 8 }}
{{- end }}
Expand All @@ -120,7 +123,7 @@ spec:
{{- toYaml .Values.resources | nindent 10 }}
{{- end }}
volumes:
- name: runner
- name: tmp
emptyDir: {}
affinity:
{{- toYaml .Values.affinity | nindent 8 }}
Expand Down
Loading