-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspringboot-multimodule-deployment.yml
42 lines (40 loc) · 1.09 KB
/
springboot-multimodule-deployment.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: springboot-multimodule-deployment
namespace: ajprakash
labels:
app: springboot-multimodule-deployment
spec:
replicas: 3
volumes:
- name: mongo-pv-storage
persistentVolumeClaim:
claimName: demo-vol1-claim-wsc
selector:
matchLabels:
app: springboot-multimodule
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template:
metadata:
labels:
app: springboot-multimodule
spec:
containers:
- name: mongo-db
image: mongo
volumeMounts:
- mountPath: "/usr/local/mongo/data"
name: mongo-pv-storage
- name: mongo-service
image: ajprakash/springboot-mongo
args: [ "--spring.data.mongodb.database=user_db","--spring.data.mongodb.port=27017","--spring.data.mongodb.host=localhost" ]
- name: user-service
image: ajprakash/springboot-sampleapp
ports:
- containerPort: 8080
args: [ "--db.host=localhost", "--db.port=8102" ]