Skip to content
Snippets Groups Projects
Commit bf2f1f42 authored by Sören Henning's avatar Sören Henning
Browse files

Merge branch 'store-results-in-volume' into adjust-benchmark-def-for-operator

parents 5c0bcc69 1db0c811
No related branches found
No related tags found
2 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!152Adjust Benchmark Definitions for Operator
Pipeline #3774 passed
{{- if .Values.benchmarkCRD.create -}} {{- if .Values.operator.benchmarkCRD.create -}}
apiVersion: apiextensions.k8s.io/v1 apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
......
{{- if .Values.operator.executionCRD.create -}}
apiVersion: apiextensions.k8s.io/v1 apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
...@@ -126,3 +127,4 @@ spec: ...@@ -126,3 +127,4 @@ spec:
subresources: subresources:
status: {} status: {}
scope: Namespaced scope: Namespaced
{{- end }}
...@@ -19,8 +19,8 @@ spec: ...@@ -19,8 +19,8 @@ spec:
runAsUser: 0 # Set the permissions for write access to the volumes. runAsUser: 0 # Set the permissions for write access to the volumes.
containers: containers:
- name: theodolite - name: theodolite
image: ghcr.io/cau-se/theodolite:theodolite-kotlin-latest image: "{{ .Values.operator.image }}:{{ .Values.operator.imageTag }}"
imagePullPolicy: Always imagePullPolicy: "{{ .Values.operator.imagePullPolicy }}"
env: env:
- name: NAMESPACE - name: NAMESPACE
value: {{ .Release.Namespace }} value: {{ .Release.Namespace }}
...@@ -31,8 +31,10 @@ spec: ...@@ -31,8 +31,10 @@ spec:
- name: RESULTS_FOLDER - name: RESULTS_FOLDER
value: "results" value: "results"
volumeMounts: volumeMounts:
{{- if .Values.operator.resultsVolume.enabled }}
- name: theodolite-pv-storage - name: theodolite-pv-storage
mountPath: "/deployments/results" mountPath: "/deployments/results"
{{- end }}
- name: benchmark-resources-uc1-kstreams - name: benchmark-resources-uc1-kstreams
mountPath: /deployments/benchmark-resources/uc1-kstreams mountPath: /deployments/benchmark-resources/uc1-kstreams
- name: benchmark-resources-uc2-kstreams - name: benchmark-resources-uc2-kstreams
...@@ -49,17 +51,22 @@ spec: ...@@ -49,17 +51,22 @@ spec:
mountPath: /deployments/benchmark-resources/uc3-flink mountPath: /deployments/benchmark-resources/uc3-flink
- name: benchmark-resources-uc4-flink - name: benchmark-resources-uc4-flink
mountPath: /deployments/benchmark-resources/uc4-flink mountPath: /deployments/benchmark-resources/uc4-flink
- name: lag-analysis {{- if .Values.operator.sloChecker.lagTrend.enabled }}
image: ghcr.io/cau-se/theodolite-slo-checker-lag-trend:theodolite-kotlin-latest - name: lag-trend-slo-checker
imagePullPolicy: Always image: "{{ .Values.operator.sloChecker.lagTrend.image }}:{{ .Values.operator.sloChecker.lagTrend.imageTag }}"
imagePullPolicy: "{{ .Values.operator.sloChecker.lagTrend.imagePullPolicy }}"
ports: ports:
- containerPort: 80 - containerPort: 80
name: analysis name: analysis
env: env:
- name: LOG_LEVEL - name: LOG_LEVEL
value: INFO value: INFO
{{- end }}
{{- if and .Values.operator.resultsVolume.enabled .Values.operator.resultsVolume.accessSidecar.enabled }}
- name: results-access - name: results-access
image: busybox:stable image: busybox:stable
image: "{{ .Values.operator.resultsVolume.accessSidecar.image }}:{{ .Values.operator.resultsVolume.accessSidecar.imageTag }}"
imagePullPolicy: "{{ .Values.operator.resultsVolume.accessSidecar.imagePullPolicy }}"
command: command:
- sh - sh
- -c - -c
...@@ -67,10 +74,13 @@ spec: ...@@ -67,10 +74,13 @@ spec:
volumeMounts: volumeMounts:
- mountPath: /results - mountPath: /results
name: theodolite-pv-storage name: theodolite-pv-storage
{{- end }}
volumes: volumes:
{{- if .Values.operator.resultsVolume.enabled }}
- name: theodolite-pv-storage - name: theodolite-pv-storage
persistentVolumeClaim: persistentVolumeClaim:
claimName: theodolite-pv-claim claimName: {{ .Values.operator.resultsVolume.persistentVolumeClaim.name | quote }}
{{- end }}
- name: benchmark-resources-uc1-kstreams - name: benchmark-resources-uc1-kstreams
configMap: configMap:
name: benchmark-resources-uc1-kstreams name: benchmark-resources-uc1-kstreams
......
...@@ -246,12 +246,33 @@ prometheus: ...@@ -246,12 +246,33 @@ prometheus:
operator: operator:
enabled: true enabled: true
image: ghcr.io/cau-se/theodolite
imageTag: theodolite-kotlin-latest
imagePullPolicy: Always
executionCRD: executionCRD:
create: true create: true
benchmarkCRD: benchmarkCRD:
create: true create: true
sloChecker:
lagTrend:
enabled: true
image: ghcr.io/cau-se/theodolite-slo-checker-lag-trend
imageTag: theodolite-kotlin-latest
imagePullPolicy: Always
resultsVolume:
enabled: true
persistentVolumeClaim:
name: theodolite-pv-claim
accessSidecar:
enabled: true
image: busybox
imageTag: stable
imagePullPolicy: IfNotPresent
serviceAccount: serviceAccount:
create: true create: true
......
...@@ -252,7 +252,7 @@ data: ...@@ -252,7 +252,7 @@ data:
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "sum by(group, topic) (kafka_consumergroup_group_lag > 0)", "expr": "sum by(group, topic) (kafka_consumergroup_group_lag >= 0)",
"format": "time_series", "format": "time_series",
"intervalFactor": 1, "intervalFactor": 1,
"legendFormat": "{{topic}}", "legendFormat": "{{topic}}",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment