diff --git a/execution/helm/templates/theodolite/crd-benchmark.yaml b/execution/helm/templates/theodolite/crd-benchmark.yaml index 798950bc05be9ebb6361445619d8a7cb1b9aeff7..084480e1f9e2ef827fb145cd823bbd2f68a20bac 100644 --- a/execution/helm/templates/theodolite/crd-benchmark.yaml +++ b/execution/helm/templates/theodolite/crd-benchmark.yaml @@ -1,4 +1,4 @@ -{{- if .Values.benchmarkCRD.create -}} +{{- if .Values.operator.benchmarkCRD.create -}} apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -116,4 +116,4 @@ spec: subresources: status: {} scope: Namespaced -{{- end }} \ No newline at end of file +{{- end }} diff --git a/execution/helm/templates/theodolite/crd-execution.yaml b/execution/helm/templates/theodolite/crd-execution.yaml index a1052262fb41c26e0e58b72ded3d8b3c24c40a8d..d9212e0e0576bb54ffcaf51a227e47f42894a742 100644 --- a/execution/helm/templates/theodolite/crd-execution.yaml +++ b/execution/helm/templates/theodolite/crd-execution.yaml @@ -1,3 +1,4 @@ +{{- if .Values.operator.executionCRD.create -}} apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -125,4 +126,5 @@ spec: jsonPath: .metadata.creationTimestamp subresources: status: {} - scope: Namespaced \ No newline at end of file + scope: Namespaced +{{- end }} diff --git a/execution/helm/templates/theodolite/theodolite-operator.yaml b/execution/helm/templates/theodolite/theodolite-operator.yaml index ddb711b45a4fa08166d31e04544a3c775f3ff7c4..b53be726292dee4fdcea3f589b381a1081d89381 100644 --- a/execution/helm/templates/theodolite/theodolite-operator.yaml +++ b/execution/helm/templates/theodolite/theodolite-operator.yaml @@ -19,8 +19,8 @@ spec: runAsUser: 0 # Set the permissions for write access to the volumes. containers: - name: theodolite - image: ghcr.io/cau-se/theodolite:theodolite-kotlin-latest - imagePullPolicy: Always + image: "{{ .Values.operator.image }}:{{ .Values.operator.imageTag }}" + imagePullPolicy: "{{ .Values.operator.imagePullPolicy }}" env: - name: NAMESPACE value: {{ .Release.Namespace }} @@ -31,8 +31,10 @@ spec: - name: RESULTS_FOLDER value: "results" volumeMounts: + {{- if .Values.operator.resultsVolume.enabled }} - name: theodolite-pv-storage mountPath: "/deployments/results" + {{- end }} - name: benchmark-resources-uc1-kstreams mountPath: /deployments/benchmark-resources/uc1-kstreams - name: benchmark-resources-uc2-kstreams @@ -49,17 +51,22 @@ spec: mountPath: /deployments/benchmark-resources/uc3-flink - name: benchmark-resources-uc4-flink mountPath: /deployments/benchmark-resources/uc4-flink - - name: lag-analysis - image: ghcr.io/cau-se/theodolite-slo-checker-lag-trend:theodolite-kotlin-latest - imagePullPolicy: Always + {{- if .Values.operator.sloChecker.lagTrend.enabled }} + - name: lag-trend-slo-checker + image: "{{ .Values.operator.sloChecker.lagTrend.image }}:{{ .Values.operator.sloChecker.lagTrend.imageTag }}" + imagePullPolicy: "{{ .Values.operator.sloChecker.lagTrend.imagePullPolicy }}" ports: - containerPort: 80 name: analysis env: - name: LOG_LEVEL value: INFO + {{- end }} + {{- if and .Values.operator.resultsVolume.enabled .Values.operator.resultsVolume.accessSidecar.enabled }} - name: results-access image: busybox:stable + image: "{{ .Values.operator.resultsVolume.accessSidecar.image }}:{{ .Values.operator.resultsVolume.accessSidecar.imageTag }}" + imagePullPolicy: "{{ .Values.operator.resultsVolume.accessSidecar.imagePullPolicy }}" command: - sh - -c @@ -67,10 +74,13 @@ spec: volumeMounts: - mountPath: /results name: theodolite-pv-storage + {{- end }} volumes: + {{- if .Values.operator.resultsVolume.enabled }} - name: theodolite-pv-storage persistentVolumeClaim: - claimName: theodolite-pv-claim + claimName: {{ .Values.operator.resultsVolume.persistentVolumeClaim.name | quote }} + {{- end }} - name: benchmark-resources-uc1-kstreams configMap: name: benchmark-resources-uc1-kstreams diff --git a/execution/helm/values.yaml b/execution/helm/values.yaml index d245e37e6f50d3874a1a5c06bd0156009777a999..4b970bf868092bca5571cb1ea0ba2360945c8ebf 100644 --- a/execution/helm/values.yaml +++ b/execution/helm/values.yaml @@ -245,12 +245,33 @@ prometheus: ### operator: enabled: true + + image: ghcr.io/cau-se/theodolite + imageTag: theodolite-kotlin-latest + imagePullPolicy: Always -executionCRD: - create: true + executionCRD: + create: true + benchmarkCRD: + 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 -benchmarkCRD: - create: true serviceAccount: create: true diff --git a/execution/infrastructure/grafana/dashboard-config-map.yaml b/execution/infrastructure/grafana/dashboard-config-map.yaml index e858ffe7dfdd4fbcdf1592b0f564c305969f6af5..c9a328d3195a7c0cc26527df190e29f82b7a628a 100644 --- a/execution/infrastructure/grafana/dashboard-config-map.yaml +++ b/execution/infrastructure/grafana/dashboard-config-map.yaml @@ -252,7 +252,7 @@ data: "steppedLine": false, "targets": [ { - "expr": "sum by(group, topic) (kafka_consumergroup_group_lag > 0)", + "expr": "sum by(group, topic) (kafka_consumergroup_group_lag >= 0)", "format": "time_series", "intervalFactor": 1, "legendFormat": "{{topic}}",