63 lines
1.0 KiB
YAML
63 lines
1.0 KiB
YAML
# test rules kubernetes
|
|
# test tags kubernetes
|
|
# test exit-status 2
|
|
|
|
metadata:
|
|
name: example
|
|
labels: {}
|
|
spec:
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: test
|
|
image: foo
|
|
imagePullPolicy: Always
|
|
resources:
|
|
limits:
|
|
cpu: 4000m
|
|
memory: 5Gi
|
|
requests:
|
|
cpu: 4000m
|
|
memory: 5Gi
|
|
|
|
---
|
|
|
|
metadata:
|
|
name: example
|
|
labels: {}
|
|
spec:
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: test
|
|
image: foo
|
|
imagePullPolicy: Always
|
|
resources:
|
|
limits:
|
|
cpu: 200m
|
|
# missing memory
|
|
requests:
|
|
cpu: 100m
|
|
# same rule
|
|
|
|
---
|
|
|
|
metadata:
|
|
name: example
|
|
# missing labels
|
|
spec:
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: test
|
|
image: foo
|
|
imagePullPolicy: Always
|
|
resources:
|
|
limits:
|
|
cpu: 4000m
|
|
memory: 5Gi
|
|
requests:
|
|
cpu: 4000m
|
|
memory: 5Gi
|
|
|