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
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: uc4-application
env:
- name: COMMIT_INTERVAL_MS
value: 100
resources:
limits:
memory: 4Gi
cpu: 1000m
......@@ -20,5 +20,4 @@ spec:
- name: KAFKA_BOOTSTRAP_SERVERS
value: "my-confluent-cp-kafka:9092"
- name: NUM_SENSORS
value: "{{NUM_SENSORS}}"
\ No newline at end of file
value: 25000
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment