A tool for validating Kubernetes YAML configurations with detailed feedback and recommendations.
The following Kubernetes resource types are supported for validation:
- Pod
- Deployment
- Service
- ConfigMap
- Secret
- PersistentVolumeClaim
- StatefulSet
- ReplicaSet
- DaemonSet
- Job
- CronJob
- Ingress
- NetworkPolicy
- ServiceAccount
- Role
- RoleBinding
- ClusterRole
- ClusterRoleBinding
ابزاری برای اعتبارسنجی پیکربندیهای YAML کوبرنتیز با بازخورد و توصیههای دقیق.
انواع منابع کوبرنتیز زیر برای اعتبارسنجی پشتیبانی میشوند:
- Pod
- Deployment
- Service
- ConfigMap
- Secret
- PersistentVolumeClaim
- StatefulSet
- ReplicaSet
- DaemonSet
- Job
- CronJob
- Ingress
- NetworkPolicy
- ServiceAccount
- Role
- RoleBinding
- ClusterRole
- ClusterRoleBinding
$ kubeval my-invalid-rc.yaml
WARN - fixtures/my-invalid-rc.yaml contains an invalid ReplicationController - spec.replicas: Invalid type. Expected: [integer,null], given: string
$ echo $?
1
For full usage and installation instructions see kubeval.com.