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

Replace wildcard kafkaConfigs with delete actions

parent 29b0a99f
Branches
No related tags found
No related merge requests found
Pipeline #13202 passed
Showing
with 63 additions and 96 deletions
...@@ -26,6 +26,16 @@ spec: ...@@ -26,6 +26,16 @@ spec:
container: "zookeeper-client" container: "zookeeper-client"
command: ["bash", "-c", "bin/zkCli.sh -server $ZOOKEEPER_SERVER deleteall /app-theodolite-uc1-application-1"] command: ["bash", "-c", "bin/zkCli.sh -server $ZOOKEEPER_SERVER deleteall /app-theodolite-uc1-application-1"]
timeoutSeconds: 60 timeoutSeconds: 60
- delete:
selector:
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
nameRegex: ".*samza.*"
- delete:
selector:
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
nameRegex: ".*uc1-application.*"
loadGenerator: loadGenerator:
resources: resources:
- configMap: - configMap:
...@@ -81,10 +91,3 @@ spec: ...@@ -81,10 +91,3 @@ spec:
threshold: 2000 threshold: 2000
externalSloUrl: "http://localhost:80/evaluate-slope" externalSloUrl: "http://localhost:80/evaluate-slope"
warmup: 60 # in seconds warmup: 60 # in seconds
kafkaConfig:
bootstrapServer: "theodolite-kafka-kafka-bootstrap:9092"
topics:
- name: ".*samza.*"
removeOnly: true
- name: ".*uc1-application.*"
removeOnly: true
\ No newline at end of file
...@@ -105,8 +105,3 @@ spec: ...@@ -105,8 +105,3 @@ spec:
repetitionAggregation: median repetitionAggregation: median
operator: lte operator: lte
threshold: 100 threshold: 100
kafkaConfig:
bootstrapServer: "theodolite-kafka-kafka-bootstrap:9092"
topics:
- name: "theodolite-.*"
removeOnly: True
...@@ -27,6 +27,16 @@ spec: ...@@ -27,6 +27,16 @@ spec:
container: "zookeeper-client" container: "zookeeper-client"
command: ["bash", "-c", "bin/zkCli.sh -server $ZOOKEEPER_SERVER deleteall /app-theodolite-uc2-application-1"] command: ["bash", "-c", "bin/zkCli.sh -server $ZOOKEEPER_SERVER deleteall /app-theodolite-uc2-application-1"]
timeoutSeconds: 60 timeoutSeconds: 60
- delete:
selector:
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
nameRegex: ".*samza.*"
- delete:
selector:
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
nameRegex: ".*uc2-application.*"
loadGenerator: loadGenerator:
resources: resources:
- configMap: - configMap:
...@@ -82,10 +92,3 @@ spec: ...@@ -82,10 +92,3 @@ spec:
threshold: 2000 threshold: 2000
externalSloUrl: "http://localhost:80/evaluate-slope" externalSloUrl: "http://localhost:80/evaluate-slope"
warmup: 60 # in seconds warmup: 60 # in seconds
kafkaConfig:
bootstrapServer: "theodolite-kafka-kafka-bootstrap:9092"
topics:
- name: ".*samza.*"
removeOnly: true
- name: ".*uc2-application.*"
removeOnly: true
\ No newline at end of file
...@@ -105,8 +105,3 @@ spec: ...@@ -105,8 +105,3 @@ spec:
repetitionAggregation: median repetitionAggregation: median
operator: lte operator: lte
threshold: 100 threshold: 100
kafkaConfig:
bootstrapServer: "theodolite-kafka-kafka-bootstrap:9092"
topics:
- name: "theodolite-.*"
removeOnly: True
...@@ -80,8 +80,3 @@ spec: ...@@ -80,8 +80,3 @@ spec:
repetitionAggregation: median repetitionAggregation: median
operator: lte operator: lte
threshold: 100 threshold: 100
kafkaConfig:
bootstrapServer: "theodolite-kafka-kafka-bootstrap:9092"
topics:
- name: "theodolite-.*"
removeOnly: True
...@@ -18,6 +18,12 @@ spec: ...@@ -18,6 +18,12 @@ spec:
- "uc2-kstreams-service.yaml" - "uc2-kstreams-service.yaml"
- "uc2-jmx-configmap.yaml" - "uc2-jmx-configmap.yaml"
- "uc2-service-monitor.yaml" - "uc2-service-monitor.yaml"
afterActions:
- delete:
selector:
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
nameRegex: "^theodolite-.*"
loadGenerator: loadGenerator:
resources: resources:
- configMap: - configMap:
...@@ -85,14 +91,3 @@ spec: ...@@ -85,14 +91,3 @@ spec:
repetitionAggregation: median repetitionAggregation: median
operator: lte operator: lte
threshold: 100 threshold: 100
kafkaConfig:
bootstrapServer: "theodolite-kafka-kafka-bootstrap:9092"
topics:
# - name: "input"
# numPartitions: 100
# replicationFactor: 1
# - name: "output"
# numPartitions: 100
# replicationFactor: 1
- name: "theodolite-.*"
removeOnly: True
...@@ -100,8 +100,3 @@ spec: ...@@ -100,8 +100,3 @@ spec:
threshold: 2000 threshold: 2000
externalSloUrl: "http://localhost:80/evaluate-slope" externalSloUrl: "http://localhost:80/evaluate-slope"
warmup: 60 # in seconds warmup: 60 # in seconds
kafkaConfig:
bootstrapServer: "theodolite-kafka-kafka-bootstrap:9092"
topics:
- name: "theodolite-.*"
removeOnly: True
...@@ -27,6 +27,16 @@ spec: ...@@ -27,6 +27,16 @@ spec:
container: "zookeeper-client" container: "zookeeper-client"
command: ["bash", "-c", "bin/zkCli.sh -server $ZOOKEEPER_SERVER deleteall /app-theodolite-uc3-application-1"] command: ["bash", "-c", "bin/zkCli.sh -server $ZOOKEEPER_SERVER deleteall /app-theodolite-uc3-application-1"]
timeoutSeconds: 60 timeoutSeconds: 60
- delete:
selector:
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
nameRegex: ".*samza.*"
- delete:
selector:
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
nameRegex: ".*uc3-application.*"
loadGenerator: loadGenerator:
resources: resources:
- configMap: - configMap:
...@@ -89,10 +99,3 @@ spec: ...@@ -89,10 +99,3 @@ spec:
threshold: 2000 threshold: 2000
externalSloUrl: "http://localhost:80/evaluate-slope" externalSloUrl: "http://localhost:80/evaluate-slope"
warmup: 60 # in seconds warmup: 60 # in seconds
kafkaConfig:
bootstrapServer: "theodolite-kafka-kafka-bootstrap:9092"
topics:
- name: ".*samza.*"
removeOnly: true
- name: ".*uc3-application.*"
removeOnly: true
\ No newline at end of file
...@@ -100,8 +100,3 @@ spec: ...@@ -100,8 +100,3 @@ spec:
threshold: 2000 threshold: 2000
externalSloUrl: "http://localhost:80/evaluate-slope" externalSloUrl: "http://localhost:80/evaluate-slope"
warmup: 60 # in seconds warmup: 60 # in seconds
kafkaConfig:
bootstrapServer: "theodolite-kafka-kafka-bootstrap:9092"
topics:
- name: "theodolite-.*"
removeOnly: True
...@@ -75,8 +75,3 @@ spec: ...@@ -75,8 +75,3 @@ spec:
threshold: 2000 threshold: 2000
externalSloUrl: "http://localhost:80/evaluate-slope" externalSloUrl: "http://localhost:80/evaluate-slope"
warmup: 60 # in seconds warmup: 60 # in seconds
kafkaConfig:
bootstrapServer: "theodolite-kafka-kafka-bootstrap:9092"
topics:
- name: "theodolite-.*"
removeOnly: True
...@@ -18,6 +18,12 @@ spec: ...@@ -18,6 +18,12 @@ spec:
- "uc3-kstreams-service.yaml" - "uc3-kstreams-service.yaml"
- "uc3-jmx-configmap.yaml" - "uc3-jmx-configmap.yaml"
- "uc3-service-monitor.yaml" - "uc3-service-monitor.yaml"
afterActions:
- delete:
selector:
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
nameRegex: "^theodolite-.*"
loadGenerator: loadGenerator:
resources: resources:
- configMap: - configMap:
...@@ -80,8 +86,3 @@ spec: ...@@ -80,8 +86,3 @@ spec:
threshold: 2000 threshold: 2000
externalSloUrl: "http://localhost:80/evaluate-slope" externalSloUrl: "http://localhost:80/evaluate-slope"
warmup: 60 # in seconds warmup: 60 # in seconds
kafkaConfig:
bootstrapServer: "theodolite-kafka-kafka-bootstrap:9092"
topics:
- name: "theodolite-.*"
removeOnly: True
...@@ -108,8 +108,3 @@ spec: ...@@ -108,8 +108,3 @@ spec:
repetitionAggregation: median repetitionAggregation: median
operator: lte operator: lte
threshold: 100 threshold: 100
kafkaConfig:
bootstrapServer: "theodolite-kafka-kafka-bootstrap:9092"
topics:
- name: "theodolite-.*"
removeOnly: True
...@@ -29,6 +29,21 @@ spec: ...@@ -29,6 +29,21 @@ spec:
container: "zookeeper-client" container: "zookeeper-client"
command: ["bash", "-c", "bin/zkCli.sh -server $ZOOKEEPER_SERVER deleteall /app-theodolite-uc4-application-1"] command: ["bash", "-c", "bin/zkCli.sh -server $ZOOKEEPER_SERVER deleteall /app-theodolite-uc4-application-1"]
timeoutSeconds: 60 timeoutSeconds: 60
- delete:
selector:
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
nameRegex: "^theodolite-.*"
- delete:
selector:
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
nameRegex: ".*samza.*"
- delete:
selector:
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
nameRegex: ".*uc4-application.*"
loadGenerator: loadGenerator:
resources: resources:
- configMap: - configMap:
...@@ -85,12 +100,3 @@ spec: ...@@ -85,12 +100,3 @@ spec:
threshold: 2000 threshold: 2000
externalSloUrl: "http://localhost:80/evaluate-slope" externalSloUrl: "http://localhost:80/evaluate-slope"
warmup: 60 # in seconds warmup: 60 # in seconds
kafkaConfig:
bootstrapServer: "theodolite-kafka-kafka-bootstrap:9092"
topics:
- name: "theodolite-.*"
removeOnly: True
- name: ".*samza.*"
removeOnly: true
- name: ".*uc4-application.*"
removeOnly: true
\ No newline at end of file
...@@ -108,8 +108,3 @@ spec: ...@@ -108,8 +108,3 @@ spec:
repetitionAggregation: median repetitionAggregation: median
operator: lte operator: lte
threshold: 100 threshold: 100
kafkaConfig:
bootstrapServer: "theodolite-kafka-kafka-bootstrap:9092"
topics:
- name: "theodolite-.*"
removeOnly: True
...@@ -83,8 +83,3 @@ spec: ...@@ -83,8 +83,3 @@ spec:
repetitionAggregation: median repetitionAggregation: median
operator: lte operator: lte
threshold: 100 threshold: 100
kafkaConfig:
bootstrapServer: "theodolite-kafka-kafka-bootstrap:9092"
topics:
- name: "theodolite-.*"
removeOnly: True
...@@ -20,6 +20,12 @@ spec: ...@@ -20,6 +20,12 @@ spec:
- "uc4-kstreams-service.yaml" - "uc4-kstreams-service.yaml"
- "uc4-jmx-configmap.yaml" - "uc4-jmx-configmap.yaml"
- "uc4-service-monitor.yaml" - "uc4-service-monitor.yaml"
afterActions:
- delete:
selector:
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
nameRegex: "^theodolite-.*"
loadGenerator: loadGenerator:
resources: resources:
- configMap: - configMap:
...@@ -88,8 +94,3 @@ spec: ...@@ -88,8 +94,3 @@ spec:
repetitionAggregation: median repetitionAggregation: median
operator: lte operator: lte
threshold: 100 threshold: 100
kafkaConfig:
bootstrapServer: "theodolite-kafka-kafka-bootstrap:9092"
topics:
- name: "theodolite-.*"
removeOnly: True
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment