-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathapp-deployment-green.yml
More file actions
35 lines (35 loc) · 890 Bytes
/
app-deployment-green.yml
File metadata and controls
35 lines (35 loc) · 890 Bytes
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: bankapp-green
spec:
replicas: 1
selector:
matchLabels:
app: bankapp
version: green
template:
metadata:
labels:
app: bankapp
version: green
spec:
containers:
- name: bankapp
image: adijaiswal/bankapp:green # Adjust the image tag for the green version
ports:
- containerPort: 8080
env:
- name: SPRING_DATASOURCE_URL
value: jdbc:mysql://mysql-service:3306/bankappdb?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
- name: SPRING_DATASOURCE_USERNAME
value: root
- name: SPRING_DATASOURCE_PASSWORD
value: Test@123
resources:
requests:
memory: "500Mi"
cpu: "500m"
limits:
memory: "1000Mi"
cpu: "1000m"