Skip to content

Commit 527bcb0

Browse files
committed
Added labels, modified container image,added rolling update
1 parent 956d69d commit 527bcb0

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

manifests/kubernetes/login-service.yaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ kind: Service
1515
metadata:
1616
name: login-service
1717
namespace: microforge-dev-ns
18+
labels:
19+
app: login-service
1820
spec:
1921
selector:
2022
app: login-service
@@ -33,6 +35,11 @@ metadata:
3335
app: login-service
3436
spec:
3537
replicas: 1
38+
strategy:
39+
type: RollingUpdate
40+
rollingUpdate:
41+
maxSurge: 1
42+
maxUnavailable: 0
3643
selector:
3744
matchLabels:
3845
app: login-service
@@ -43,9 +50,23 @@ spec:
4350
spec:
4451
containers:
4552
- name: login-service
46-
image: manojmdocker14/microforge-login-service:v1.2.0
53+
image: manojmdocker14/microforge-login-service:v1.1.0
4754
ports:
4855
- containerPort: 8081
56+
livenessProbe:
57+
httpGet:
58+
path: /actuator/health
59+
port: 8081
60+
initialDelaySeconds: 70
61+
periodSeconds: 20
62+
timeoutSeconds: 10
63+
readinessProbe:
64+
httpGet:
65+
path: /actuator/health
66+
port: 8081
67+
initialDelaySeconds: 30
68+
periodSeconds: 10
69+
timeoutSeconds: 5
4970
env:
5071
- name: DB_HOST
5172
value: login-mysql

0 commit comments

Comments
 (0)