Skip to content

Commit cb63c26

Browse files
authored
Merge pull request #1795 from prafull01/kb-editmove
✨ Add the liveness and readiness probe in the manager deployment
2 parents b22ff12 + 316767f commit cb63c26

File tree

4 files changed

+48
-0
lines changed

4 files changed

+48
-0
lines changed

pkg/plugin/v3/scaffolds/internal/templates/config/manager/config.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,18 @@ spec:
7878
name: manager
7979
securityContext:
8080
allowPrivilegeEscalation: false
81+
livenessProbe:
82+
httpGet:
83+
path: /readyz
84+
port: 9443
85+
initialDelaySeconds: 15
86+
periodSeconds: 20
87+
readinessProbe:
88+
httpGet:
89+
path: /healthz
90+
port: 9443
91+
initialDelaySeconds: 5
92+
periodSeconds: 10
8193
resources:
8294
limits:
8395
cpu: 100m

testdata/project-v3-addon/config/manager/manager.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ spec:
3333
name: manager
3434
securityContext:
3535
allowPrivilegeEscalation: false
36+
livenessProbe:
37+
httpGet:
38+
path: /readyz
39+
port: 9443
40+
initialDelaySeconds: 15
41+
periodSeconds: 20
42+
readinessProbe:
43+
httpGet:
44+
path: /healthz
45+
port: 9443
46+
initialDelaySeconds: 5
47+
periodSeconds: 10
3648
resources:
3749
limits:
3850
cpu: 100m

testdata/project-v3-multigroup/config/manager/manager.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ spec:
3333
name: manager
3434
securityContext:
3535
allowPrivilegeEscalation: false
36+
livenessProbe:
37+
httpGet:
38+
path: /readyz
39+
port: 9443
40+
initialDelaySeconds: 15
41+
periodSeconds: 20
42+
readinessProbe:
43+
httpGet:
44+
path: /healthz
45+
port: 9443
46+
initialDelaySeconds: 5
47+
periodSeconds: 10
3648
resources:
3749
limits:
3850
cpu: 100m

testdata/project-v3/config/manager/manager.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ spec:
3333
name: manager
3434
securityContext:
3535
allowPrivilegeEscalation: false
36+
livenessProbe:
37+
httpGet:
38+
path: /readyz
39+
port: 9443
40+
initialDelaySeconds: 15
41+
periodSeconds: 20
42+
readinessProbe:
43+
httpGet:
44+
path: /healthz
45+
port: 9443
46+
initialDelaySeconds: 5
47+
periodSeconds: 10
3648
resources:
3749
limits:
3850
cpu: 100m

0 commit comments

Comments
 (0)