1+ checks :
2+ # resources
3+ cpuRequestsMissing : warning
4+ cpuLimitsMissing : warning
5+ memoryRequestsMissing : warning
6+ memoryLimitsMissing : warning
7+ # images
8+ tagNotSpecified : error
9+ pullPolicyNotAlways : ignore
10+ imageRegistry : warning
11+ # healthChecks
12+ readinessProbeMissing : warning
13+ livenessProbeMissing : warning
14+ # networking
15+ hostNetworkSet : warning
16+ hostPortSet : warning
17+ # security
18+ hostIPCSet : error
19+ hostPIDSet : error
20+ notReadOnlyRootFileSystem : warning
21+ privilegeEscalationAllowed : error
22+ runAsRootAllowed : warning
23+ runAsPrivileged : error
24+ dangerousCapabilities : error
25+ insecureCapabilities : warning
26+
27+ customChecks :
28+ resourceLimits :
29+ containers :
30+ exclude :
31+ - initContainer
32+ successMessage : Resource limits are within the required range
33+ failureMessage : Resource limits should be within the required range
34+ category : Resources
35+ target : Container
36+ schema :
37+ ' $schema ' : http://json-schema.org/draft-07/schema
38+ type : object
39+ required :
40+ - resources
41+ properties :
42+ resources :
43+ type : object
44+ required :
45+ - limits
46+ properties :
47+ limits :
48+ type : object
49+ required :
50+ - memory
51+ - cpu
52+ properties :
53+ memory :
54+ type : string
55+ resourceMinimum : 100M
56+ resourceMaximum : 6G
57+ cpu :
58+ type : string
59+ resourceMinimum : 100m
60+ resourceMaximum : " 2"
61+ imageRegistry :
62+ successMessage : Image comes from allowed registries
63+ failureMessage : Image should not be from disallowed registry
64+ category : Images
65+ target : Container
66+ schema :
67+ ' $schema ' : http://json-schema.org/draft-07/schema
68+ type : object
69+ properties :
70+ image :
71+ type : string
72+ not :
73+ pattern : ^quay.io
74+
75+ controllersToScan :
76+ - Deployments
77+ - StatefulSets
78+ - DaemonSets
79+ - CronJobs
80+ - Jobs
81+ - ReplicationControllers
82+ exemptions :
83+ - controllerNames :
84+ - dns-controller
85+ - datadog-datadog
86+ - kube-flannel-ds
87+ - kube2iam
88+ - aws-iam-authenticator
89+ - datadog
90+ - kube2iam
91+ rules :
92+ - hostNetworkSet
93+ - controllerNames :
94+ - aws-iam-authenticator
95+ - aws-cluster-autoscaler
96+ - kube-state-metrics
97+ - dns-controller
98+ - external-dns
99+ - dnsmasq
100+ - autoscaler
101+ - kubernetes-dashboard
102+ - install-cni
103+ - kube2iam
104+ rules :
105+ - readinessProbeMissing
106+ - livenessProbeMissing
107+ - controllerNames :
108+ - aws-iam-authenticator
109+ - nginx-ingress-controller
110+ - nginx-ingress-default-backend
111+ - aws-cluster-autoscaler
112+ - kube-state-metrics
113+ - dns-controller
114+ - external-dns
115+ - kubedns
116+ - dnsmasq
117+ - autoscaler
118+ - tiller
119+ - kube2iam
120+ rules :
121+ - runAsRootAllowed
122+ - controllerNames :
123+ - aws-iam-authenticator
124+ - nginx-ingress-controller
125+ - nginx-ingress-default-backend
126+ - aws-cluster-autoscaler
127+ - kube-state-metrics
128+ - dns-controller
129+ - external-dns
130+ - kubedns
131+ - dnsmasq
132+ - autoscaler
133+ - tiller
134+ - kube2iam
135+ rules :
136+ - notReadOnlyRootFileSystem
137+ - controllerNames :
138+ - cert-manager
139+ - dns-controller
140+ - kubedns
141+ - dnsmasq
142+ - autoscaler
143+ rules :
144+ - cpuRequestsMissing
145+ - cpuLimitsMissing
146+ - memoryRequestsMissing
147+ - memoryLimitsMissing
148+ - controllerNames :
149+ - kube2iam
150+ rules :
151+ - runAsPrivileged
0 commit comments