Skip to content
Snippets Groups Projects
Commit ca39299d authored by Björn Vonheiden's avatar Björn Vonheiden
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 c89df09f
No related branches found
No related tags found
1 merge request!59Further Configuration Options for Kafka Streams
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: ...@@ -5,35 +5,44 @@ metadata:
spec: spec:
template: template:
spec: spec:
volumes:
- name: theodolite-pv-storage
persistentVolumeClaim:
claimName: theodolite-pv-claim
containers: containers:
- name: theodolite - name: theodolite
image: bvonheid/theodolite:latest image: bvonheid/theodolite:latest
# imagePullPolicy: Never # Used to pull "own" local image # imagePullPolicy: Never # Used to pull "own" local image
env: env:
- name: UC - name: UC
value: "1" value: "1"
- name: LOADS - name: LOADS
value: "13206, 19635" value: "13206, 19635"
- name: INSTANCES - name: INSTANCES
value: "1, 2" value: "1, 2"
- name: DURATION - name: DURATION
value: "3" value: "3"
- name: PARTITIONS - name: PARTITIONS
value: "30" value: "30"
# - name: COMMIT_MS # - name: COMMIT_MS
# value: "" # value: ""
# - name: SEARCH_STRATEGY # - name: SEARCH_STRATEGY
# value: "" # value: ""
# - name: CPU_LIMIT # - name: CPU_LIMIT
# value: "" # value: ""
# - name: MEMORY_LIMIT # - name: MEMORY_LIMIT
# value: "" # value: ""
- name: PROMETHEUS_BASE_URL - name: PROMETHEUS_BASE_URL
value: "http://prometheus-operated:9090" value: "http://prometheus-operated:9090"
# - name: NAMESPACE # - name: NAMESPACE
# value: "default" # value: "default"
- name: PYTHONUNBUFFERED - name: RESULT_PATH
value: "1" value: "results"
- name: PYTHONUNBUFFERED
value: "1"
volumeMounts:
- mountPath: "/app/results"
name: theodolite-pv-storage
restartPolicy: Never restartPolicy: Never
backoffLimit: 4 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