Skip to content
Snippets Groups Projects
Commit 5aad40b6 authored by Björn Vonheiden's avatar Björn Vonheiden Committed by Sören Henning
Browse files

Enable volumes in the theodolite script

Add persistenVolume and persistentVolumeClaim to have a persistent
storage for the resulst of the theodolite job.
parent 3f52eec9
No related branches found
No related tags found
No related merge requests found
apiVersion: v1
kind: PersistentVolume
metadata:
name: theodolite-pv-volume
labels:
type: local
spec:
storageClassName: theodolite
capacity:
storage: 100m
accessModes:
- ReadWriteOnce
hostPath:
path: "</your/path/to/results/folder>"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: theodolite-pv-claim
spec:
storageClassName: theodolite
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100m
......@@ -5,35 +5,44 @@ metadata:
spec:
template:
spec:
volumes:
- name: theodolite-pv-storage
persistentVolumeClaim:
claimName: theodolite-pv-claim
containers:
- name: theodolite
image: bvonheid/theodolite:latest
# imagePullPolicy: Never # Used to pull "own" local image
env:
- name: UC
value: "1"
- name: LOADS
value: "13206, 19635"
- name: INSTANCES
value: "1, 2"
- name: DURATION
value: "3"
- name: PARTITIONS
value: "30"
# - name: COMMIT_MS
# value: ""
# - name: SEARCH_STRATEGY
# value: ""
# - name: CPU_LIMIT
# value: ""
# - name: MEMORY_LIMIT
# value: ""
- name: PROMETHEUS_BASE_URL
value: "http://prometheus-operated:9090"
# - name: NAMESPACE
# value: "default"
- name: PYTHONUNBUFFERED
value: "1"
- name: theodolite
image: bvonheid/theodolite:latest
# imagePullPolicy: Never # Used to pull "own" local image
env:
- name: UC
value: "1"
- name: LOADS
value: "13206, 19635"
- name: INSTANCES
value: "1, 2"
- name: DURATION
value: "3"
- name: PARTITIONS
value: "30"
# - name: COMMIT_MS
# value: ""
# - name: SEARCH_STRATEGY
# value: ""
# - name: CPU_LIMIT
# value: ""
# - name: MEMORY_LIMIT
# value: ""
- name: PROMETHEUS_BASE_URL
value: "http://prometheus-operated:9090"
# - name: NAMESPACE
# value: "default"
- name: RESULT_PATH
value: "results"
- name: PYTHONUNBUFFERED
value: "1"
volumeMounts:
- mountPath: "/app/results"
name: theodolite-pv-storage
restartPolicy: Never
backoffLimit: 4
......
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