Skip to content
Snippets Groups Projects
Commit d313c0d4 authored by Björn Vonheiden's avatar Björn Vonheiden
Browse files

Add kustomaziation and patch file for use cases

Add kustomaziation and patch files to replace in a later step
the usage of sed in the application sh files.
parent 2a6beb56
No related branches found
No related tags found
No related merge requests found
Showing
with 201 additions and 32 deletions
...@@ -23,13 +23,13 @@ spec: ...@@ -23,13 +23,13 @@ spec:
- name: KAFKA_BOOTSTRAP_SERVERS - name: KAFKA_BOOTSTRAP_SERVERS
value: "my-confluent-cp-kafka:9092" value: "my-confluent-cp-kafka:9092"
- name: COMMIT_INTERVAL_MS - name: COMMIT_INTERVAL_MS
value: "{{KAFKA_STREAMS_COMMIT_INTERVAL_MS}}" value: 100
- name: JAVA_OPTS - name: JAVA_OPTS
value: "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=5555" value: "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=5555"
resources: resources:
limits: limits:
memory: "{{MEMORY_LIMIT}}" memory: 4Gi
cpu: "{{CPU_LIMIT}}" cpu: 1000m
- name: prometheus-jmx-exporter - name: prometheus-jmx-exporter
image: "solsson/kafka-prometheus-jmx-exporter@sha256:6f82e2b0464f50da8104acd7363fb9b995001ddff77d248379f8788e78946143" image: "solsson/kafka-prometheus-jmx-exporter@sha256:6f82e2b0464f50da8104acd7363fb9b995001ddff77d248379f8788e78946143"
command: command:
...@@ -50,4 +50,4 @@ spec: ...@@ -50,4 +50,4 @@ spec:
volumes: volumes:
- name: jmx-config - name: jmx-config
configMap: configMap:
name: aggregation-jmx-configmap name: aggregation-jmx-configmap
\ No newline at end of file
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: titan-ccp-aggregation name: titan-ccp-aggregation
labels: labels:
app: titan-ccp-aggregation app: titan-ccp-aggregation
spec: spec:
#type: NodePort #type: NodePort
selector: selector:
app: titan-ccp-aggregation app: titan-ccp-aggregation
ports: ports:
- name: http - name: http
port: 80 port: 80
targetPort: 80 targetPort: 80
......
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app: titan-ccp-aggregation
# Use all resources to compose them into one file
resources:
- aggregation-deployment.yaml
- aggregation-service.yaml
- service-monitor.yaml
- jmx-configmap.yaml
patchesStrategicMerge:
- set_paramters.yaml # Patch setting the resource parameters
apiVersion: apps/v1
kind: Deployment
metadata:
name: titan-ccp-aggregation
spec:
template:
spec:
containers:
- name: uc1-application
env:
- name: COMMIT_INTERVAL_MS
value: 100
resources:
limits:
memory: 4Gi
cpu: 1000m
...@@ -7,7 +7,7 @@ spec: ...@@ -7,7 +7,7 @@ spec:
matchLabels: matchLabels:
app: titan-ccp-load-generator app: titan-ccp-load-generator
serviceName: titan-ccp-load-generator serviceName: titan-ccp-load-generator
replicas: {{INSTANCES}} replicas: 1
template: template:
metadata: metadata:
labels: labels:
...@@ -16,16 +16,15 @@ spec: ...@@ -16,16 +16,15 @@ spec:
terminationGracePeriodSeconds: 0 terminationGracePeriodSeconds: 0
containers: containers:
- name: workload-generator - name: workload-generator
image: soerenhenning/uc1-wg:latest image: soerenhenning/uc1-wg:latest
env: env:
- name: KAFKA_BOOTSTRAP_SERVERS - name: KAFKA_BOOTSTRAP_SERVERS
value: "my-confluent-cp-kafka:9092" value: "my-confluent-cp-kafka:9092"
- name: NUM_SENSORS - name: NUM_SENSORS
value: "{{NUM_SENSORS}}" value: 25000
- name: POD_NAME - name: POD_NAME
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: metadata.name fieldPath: metadata.name
- name: INSTANCES - name: INSTANCES
value: "{{INSTANCES}}" value: 1
\ No newline at end of file
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app: titan-ccp-aggregation
# Use all resources to compose them into one file
resources:
- deployment.yaml
patchesStrategicMerge:
- set_paramters.yaml # Patch setting the parameters
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: titan-ccp-load-generator
spec:
replicas: 1
template:
spec:
containers:
- name: workload-generator
env:
- name: NUM_SENSORS
value: 25000
- name: INSTANCES
value: 1
...@@ -23,13 +23,13 @@ spec: ...@@ -23,13 +23,13 @@ spec:
- name: KAFKA_BOOTSTRAP_SERVERS - name: KAFKA_BOOTSTRAP_SERVERS
value: "my-confluent-cp-kafka:9092" value: "my-confluent-cp-kafka:9092"
- name: COMMIT_INTERVAL_MS - name: COMMIT_INTERVAL_MS
value: "{{KAFKA_STREAMS_COMMIT_INTERVAL_MS}}" value: 100
- name: JAVA_OPTS - name: JAVA_OPTS
value: "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=5555" value: "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=5555"
resources: resources:
limits: limits:
memory: "{{MEMORY_LIMIT}}" memory: 4Gi
cpu: "{{CPU_LIMIT}}" cpu: 1000m
- name: prometheus-jmx-exporter - name: prometheus-jmx-exporter
image: "solsson/kafka-prometheus-jmx-exporter@sha256:6f82e2b0464f50da8104acd7363fb9b995001ddff77d248379f8788e78946143" image: "solsson/kafka-prometheus-jmx-exporter@sha256:6f82e2b0464f50da8104acd7363fb9b995001ddff77d248379f8788e78946143"
command: command:
...@@ -50,4 +50,4 @@ spec: ...@@ -50,4 +50,4 @@ spec:
volumes: volumes:
- name: jmx-config - name: jmx-config
configMap: configMap:
name: aggregation-jmx-configmap name: aggregation-jmx-configmap
\ No newline at end of file
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app: titan-ccp-aggregation
# Use all resources to compose them into one file
resources:
- aggregation-deployment.yaml
- aggregation-service.yaml
- service-monitor.yaml
- jmx-configmap.yaml
patchesStrategicMerge:
- set_paramters.yaml # Patch setting the resource parameters
apiVersion: apps/v1
kind: Deployment
metadata:
name: titan-ccp-aggregation
spec:
template:
spec:
containers:
- name: uc2-application
env:
- name: COMMIT_INTERVAL_MS
value: 100
resources:
limits:
memory: 4Gi
cpu: 1000m
...@@ -15,7 +15,7 @@ spec: ...@@ -15,7 +15,7 @@ spec:
terminationGracePeriodSeconds: 0 terminationGracePeriodSeconds: 0
containers: containers:
- name: workload-generator - name: workload-generator
image: benediktwetzel/uc2-wg:latest image: benediktwetzel/uc2-wg:latest
env: env:
- name: KAFKA_BOOTSTRAP_SERVERS - name: KAFKA_BOOTSTRAP_SERVERS
value: "my-confluent-cp-kafka:9092" value: "my-confluent-cp-kafka:9092"
...@@ -24,5 +24,4 @@ spec: ...@@ -24,5 +24,4 @@ spec:
- name: NUM_SENSORS - name: NUM_SENSORS
value: "4" value: "4"
- name: NUM_NESTED_GROUPS - name: NUM_NESTED_GROUPS
value: "{{NUM_NESTED_GROUPS}}" value: 25000
\ No newline at end of file
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app: titan-ccp-aggregation
# Use all resources to compose them into one file
resources:
- deployment.yaml
patchesStrategicMerge:
- set_paramters.yaml # Patch setting the parameters
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: titan-ccp-load-generator
spec:
replicas: 1
template:
spec:
containers:
- name: workload-generator
env:
- name: NUM_NESTED_GROUPS
value: 25000
...@@ -25,13 +25,13 @@ spec: ...@@ -25,13 +25,13 @@ spec:
- name: KAFKA_WINDOW_DURATION_MINUTES - name: KAFKA_WINDOW_DURATION_MINUTES
value: "1" value: "1"
- name: COMMIT_INTERVAL_MS - name: COMMIT_INTERVAL_MS
value: "{{KAFKA_STREAMS_COMMIT_INTERVAL_MS}}" value: 100
- name: JAVA_OPTS - name: JAVA_OPTS
value: "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=5555" value: "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=5555"
resources: resources:
limits: limits:
memory: "{{MEMORY_LIMIT}}" memory: 4Gi
cpu: "{{CPU_LIMIT}}" cpu: 1000m
- name: prometheus-jmx-exporter - name: prometheus-jmx-exporter
image: "solsson/kafka-prometheus-jmx-exporter@sha256:6f82e2b0464f50da8104acd7363fb9b995001ddff77d248379f8788e78946143" image: "solsson/kafka-prometheus-jmx-exporter@sha256:6f82e2b0464f50da8104acd7363fb9b995001ddff77d248379f8788e78946143"
command: command:
...@@ -52,4 +52,4 @@ spec: ...@@ -52,4 +52,4 @@ spec:
volumes: volumes:
- name: jmx-config - name: jmx-config
configMap: configMap:
name: aggregation-jmx-configmap name: aggregation-jmx-configmap
\ No newline at end of file
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app: titan-ccp-aggregation
# Use all resources to compose them into one file
resources:
- aggregation-deployment.yaml
- aggregation-service.yaml
- service-monitor.yaml
- jmx-configmap.yaml
patchesStrategicMerge:
- set_paramters.yaml # Patch setting the resource parameters
apiVersion: apps/v1
kind: Deployment
metadata:
name: titan-ccp-aggregation
spec:
template:
spec:
containers:
- name: uc3-application
env:
- name: COMMIT_INTERVAL_MS
value: 100
resources:
limits:
memory: 4Gi
cpu: 1000m
...@@ -7,7 +7,7 @@ spec: ...@@ -7,7 +7,7 @@ spec:
matchLabels: matchLabels:
app: titan-ccp-load-generator app: titan-ccp-load-generator
serviceName: titan-ccp-load-generator serviceName: titan-ccp-load-generator
replicas: {{INSTANCES}} replicas: 1
template: template:
metadata: metadata:
labels: labels:
...@@ -16,16 +16,15 @@ spec: ...@@ -16,16 +16,15 @@ spec:
terminationGracePeriodSeconds: 0 terminationGracePeriodSeconds: 0
containers: containers:
- name: workload-generator - name: workload-generator
image: soerenhenning/uc3-wg:latest image: soerenhenning/uc3-wg:latest
env: env:
- name: KAFKA_BOOTSTRAP_SERVERS - name: KAFKA_BOOTSTRAP_SERVERS
value: "my-confluent-cp-kafka:9092" value: "my-confluent-cp-kafka:9092"
- name: NUM_SENSORS - name: NUM_SENSORS
value: "{{NUM_SENSORS}}" value: 25000
- name: POD_NAME - name: POD_NAME
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: metadata.name fieldPath: metadata.name
- name: INSTANCES - name: INSTANCES
value: "{{INSTANCES}}" value: 1
\ No newline at end of file
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app: titan-ccp-aggregation
# Use all resources to compose them into one file
resources:
- deployment.yaml
patchesStrategicMerge:
- set_paramters.yaml # Patch setting the parameters
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: titan-ccp-load-generator
spec:
replicas: 1
template:
spec:
containers:
- name: workload-generator
env:
- name: NUM_SENSORS
value: 25000
- name: INSTANCES
value: 1
...@@ -27,13 +27,13 @@ spec: ...@@ -27,13 +27,13 @@ spec:
- name: AGGREGATION_DURATION_ADVANCE - name: AGGREGATION_DURATION_ADVANCE
value: "1" value: "1"
- name: COMMIT_INTERVAL_MS - name: COMMIT_INTERVAL_MS
value: "{{KAFKA_STREAMS_COMMIT_INTERVAL_MS}}" value: 100
- name: JAVA_OPTS - name: JAVA_OPTS
value: "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=5555" value: "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=5555"
resources: resources:
limits: limits:
memory: "{{MEMORY_LIMIT}}" memory: 4Gi
cpu: "{{CPU_LIMIT}}" cpu: 1000m
- name: prometheus-jmx-exporter - name: prometheus-jmx-exporter
image: "solsson/kafka-prometheus-jmx-exporter@sha256:6f82e2b0464f50da8104acd7363fb9b995001ddff77d248379f8788e78946143" image: "solsson/kafka-prometheus-jmx-exporter@sha256:6f82e2b0464f50da8104acd7363fb9b995001ddff77d248379f8788e78946143"
command: command:
...@@ -54,4 +54,4 @@ spec: ...@@ -54,4 +54,4 @@ spec:
volumes: volumes:
- name: jmx-config - name: jmx-config
configMap: configMap:
name: aggregation-jmx-configmap name: aggregation-jmx-configmap
\ No newline at end of file
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