rules(kubernetes): ensure deployments have replica counts
This commit is contained in:
parent
4604a1da62
commit
53018cfc01
|
@ -66,3 +66,27 @@ rules:
|
||||||
cpu:
|
cpu:
|
||||||
type: string
|
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
|
Loading…
Reference in New Issue