Enforces that a CPU request is specified for every container.
Note that this policy is part of the following security standards:
bsi/containerization
: BSI IT-Grundschutz "Containerisierung": Section: SYS.1.6.A15apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80
+ resources:
+ requests:
+ cpu: 1
securitytower.io/policy.exclusion.enforcecpurequest
as on the example below.
apiVersion: apps/v1 kind: Deployment metadata: name: your-deployment annotations: securitytower.io/policy.exclusion.enforcecpurequest: |- This pod consumes an unpredictable amount of CPU. ...