1
0
Fork 0
salty-dog/test/examples/kubernetes-resources-some.yml

63 lines
1.0 KiB
YAML
Raw Normal View History

# test rules kubernetes
# test tags kubernetes
# test exit-status 2
metadata:
name: example
labels: {}
spec:
template:
spec:
containers:
- name: test
image: foo
imagePullPolicy: Always
2019-06-25 13:19:16 +00:00
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:
2019-06-25 13:19:16 +00:00
cpu: 200m
# missing memory
requests:
2019-06-25 13:19:16 +00:00
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