forked from confluentinc/demo-scene
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathratings-processor-app-deployment.yaml
43 lines (42 loc) · 1.06 KB
/
ratings-processor-app-deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: ratings-processor
spec:
serviceName: ratings-processor
podManagementPolicy: Parallel
replicas: 1
selector:
matchLabels:
app: ratings-processor
template:
metadata:
labels:
app: ratings-processor
spec:
containers:
- name: ratings-processor
image: docker.io/gamussa/ratings-processor
ports:
- containerPort: 8080
env:
- name: SPRING_CONFIG_LOCATION
value: /mnt/app/application.properties
volumeMounts:
- name: spring-boot-ratings-processor-application-properties
mountPath: /mnt/app
resources:
requests:
memory: 512Mi # 768Mi
cpu: 500m # 1000m
volumes:
- name: spring-boot-ratings-processor-application-properties
secret:
secretName: spring-boot-ratings-processor-application-properties
---
apiVersion: v1
kind: Service
metadata:
name: ratings-processor
spec:
clusterIP: None