Skip to content
Snippets Groups Projects
Commit ad3ae041 authored by Benedikt Wetzel's avatar Benedikt Wetzel Committed by Lorenz Boguhn
Browse files

Set permissions correct and clean up

parent 20336c26
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!122Update Theodolite Kubernetes Job,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
...@@ -5,6 +5,8 @@ metadata: ...@@ -5,6 +5,8 @@ metadata:
spec: spec:
template: template:
spec: spec:
securityContext:
runAsUser: 0
containers: containers:
- name: lag-analysis - name: lag-analysis
image: ghcr.io/cau-se/theodolite-slo-checker-lag-trend:theodolite-kotlin-latest image: ghcr.io/cau-se/theodolite-slo-checker-lag-trend:theodolite-kotlin-latest
...@@ -12,8 +14,9 @@ spec: ...@@ -12,8 +14,9 @@ spec:
- containerPort: 80 - containerPort: 80
name: analysis name: analysis
- name: theodolite - name: theodolite
image: lorenzboguhn/thedolite #ghcr.io/cau-se/theodolite:theodolite-kotlin-latest image: benediktwetzel/theodolite-test #ghcr.io/cau-se/theodolite:theodolite-kotlin-latest
imagePullPolicy: Always imagePullPolicy: Always
# command: ["/bin/sh", "-ec", "while :; do echo '.'; sleep 5 ; done"]
env: env:
- name: NAMESPACE - name: NAMESPACE
value: theodolite-she value: theodolite-she
......
...@@ -5,47 +5,51 @@ metadata: ...@@ -5,47 +5,51 @@ metadata:
spec: spec:
template: template:
spec: spec:
volumes: securityContext:
- name: theodolite-pv-storage runAsUser: 0
persistentVolumeClaim:
claimName: theodolite-pv-claim
containers: containers:
- name: lag-analysis
image: ghcr.io/cau-se/theodolite-slo-checker-lag-trend:theodolite-kotlin-latest
ports:
- containerPort: 80
name: analysis
- name: theodolite - name: theodolite
image: ghcr.io/cau-se/theodolite:latest image: lorenzboguhn/thedolite #benediktwetzel/theodolite-test #ghcr.io/cau-se/theodolite:theodolite-kotlin-latest
# imagePullPolicy: Never # Used to pull "own" local image imagePullPolicy: Always
env: env:
- name: UC # mandatory - name: NAMESPACE
value: "1" value: theodolite-she
- name: LOADS # mandatory - name: MODE
value: "100000, 200000" value: yaml-executor
- name: INSTANCES # mandatory - name: THEODOLITE_EXECUTION
value: "1, 2, 3" value: /etc/execution/example-execution-yaml-resource.yaml
# - name: DURATION - name: THEODOLITE_BENCHMARK
# value: "5" value: /etc/benchmark/example-benchmark-yaml-resource.yaml
# - name: PARTITIONS - name: THEODOLITE_APP_RESOURCES
# value: "40" value: /etc/app-resources
# - name: DOMAIN_RESTRICTION
# value: "True"
# - name: SEARCH_STRATEGY
# value: "linear-search"
# - name: CPU_LIMIT
# value: "1000m"
# - name: MEMORY_LIMIT
# value: "4Gi"
- name: PROMETHEUS_BASE_URL
value: "http://prometheus-operated:9090"
# - name: NAMESPACE
# value: "default"
# - name: CONFIGURATIONS
# value: "COMMIT_INTERVAL_MS=100, NUM_STREAM_THREADS=1"
- name: RESULT_PATH
value: "results"
- name: PYTHONUNBUFFERED # Enable logs in Kubernetes
value: "1"
volumeMounts: volumeMounts:
- mountPath: "/app/results" - mountPath: "/deployments/results"
name: theodolite-pv-storage name: theodolite-pv-storage
- mountPath: "/etc/app-resources"
name: app-resources
- mountPath: "/etc/benchmark"
name: benchmark
- mountPath: "/etc/execution"
name: execution
restartPolicy: Never restartPolicy: Never
# Uncomment if RBAC is enabled and configured # Uncomment if RBAC is enabled and configured
# serviceAccountName: theodolite serviceAccountName: theodolite
volumes:
- name: theodolite-pv-storage
persistentVolumeClaim:
claimName: theodolite-pv-claim
- name: app-resources
configMap:
name: app-resources-configmap
- name: benchmark
configMap:
name: benchmark-configmap
- name: execution
configMap:
name: execution-configmap
backoffLimit: 4 backoffLimit: 4
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment