1
0
Fork 0

rules(kubernetes): ensure deployments have replica counts

This commit is contained in:
ssube 2019-06-15 20:53:39 -05:00
parent 4604a1da62
commit 53018cfc01
1 changed files with 25 additions and 1 deletions

View File

@ -65,4 +65,28 @@ rules:
properties:
cpu:
type: string
pattern: "[0-9]{3}m"
pattern: "[0-9]{3}m"
- name: kubernetes-deployment-replicas
desc: deployments must specify a replica count
level: info
tags:
- important
select: '$'
filter:
type: object
properties:
kind:
type: string
const: Deployment
check:
type: object
properties:
spec:
type: object
properties:
replica:
type: number
minimum: 1