forked from kuberhealthy/kuberhealthy
-
Notifications
You must be signed in to change notification settings - Fork 4
/
deployment-check.yaml
87 lines (87 loc) · 1.62 KB
/
deployment-check.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
apiVersion: comcast.github.io/v1
kind: KuberhealthyCheck
metadata:
name: deployment
namespace: kuberhealthy
spec:
runInterval: 10m
timeout: 15m
podSpec:
containers:
- name: deployment
image: kuberhealthy/deployment-check:v1.9.0
imagePullPolicy: IfNotPresent
env:
- name: CHECK_DEPLOYMENT_REPLICAS
value: "4"
- name: CHECK_DEPLOYMENT_ROLLING_UPDATE
value: "true"
resources:
requests:
cpu: 25m
memory: 15Mi
limits:
cpu: 1
restartPolicy: Never
serviceAccountName: deployment-sa
terminationGracePeriodSeconds: 60
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: deployment-check-rb
namespace: kuberhealthy
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: deployment-service-role
subjects:
- kind: ServiceAccount
name: deployment-sa
namespace: kuberhealthy
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: deployment-service-role
namespace: kuberhealthy
rules:
- apiGroups:
- "apps"
resources:
- deployments
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- services
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- watch
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: deployment-sa
namespace: kuberhealthy