forked from kuberhealthy/kuberhealthy
-
Notifications
You must be signed in to change notification settings - Fork 4
/
pod-status-check-clusterscope.yaml
66 lines (66 loc) · 1.46 KB
/
pod-status-check-clusterscope.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
---
# Source: kuberhealthy/templates/khcheck-pod-status.yaml
apiVersion: comcast.github.io/v1
kind: KuberhealthyCheck
metadata:
name: pod-status
namespace: kuberhealthy
spec:
runInterval: 5m
timeout: 15m
podSpec:
securityContext:
runAsUser: 999
fsGroup: 999
containers:
- env:
- name: SKIP_DURATION
value: "10m"
image: kuberhealthy/pod-status-check:v1.3.0
imagePullPolicy: IfNotPresent
name: main
resources:
requests:
cpu: 10m
memory: 50Mi
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
serviceAccountName: pod-status-sa
---
# Source: kuberhealthy/templates/khcheck-pod-status.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: pod-status-check-rb
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: pod-status-role
subjects:
- kind: ServiceAccount
name: pod-status-sa
namespace: kuberhealthy
---
# Source: kuberhealthy/templates/khcheck-pod-status.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: pod-status-role
rules:
- apiGroups:
- ""
resources:
- namespaces
- pods
verbs:
- get
- list
- watch
---
# Source: kuberhealthy/templates/khcheck-pod-status.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: pod-status-sa
namespace: kuberhealthy