Skip to content
Snippets Groups Projects
Commit 81d7b0b2 authored by Mark's avatar Mark
Browse files

Merge branch '305-use-prometheus-default-securitycontext' into 'master'

Resolve "Use prometheus' default securityContext"

Closes #305

See merge request openappstack/openappstack!117
parents ae877752 fa9ef6aa
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,25 @@
- servicemonitor.crd.yaml
- podmonitor.crd.yaml
- name: Get prometheus PV name
tags:
- prometheus
shell: "kubectl -n oas get pvc prometheus-prometheus-oas-{{ release_name }}-prometheus-promet-prometheus-0 -o=jsonpath='{.spec.volumeName}'"
register: prometheus_pv_name
failed_when: false
changed_when: false
# Needed because previously we ran prometheus as root
- name: Ensure prometheus volume is accessible by the prometheus pod
tags:
- prometheus
file:
dest: "{{ data_directory }}/local-storage/{{ prometheus_pv_name.stdout }}"
owner: '1000'
group: '2000'
recurse: true
when: prometheus_pv_name.stdout
- name: Apply storage helmfile
tags:
- helmfile
......
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