mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Added kubeval notes to the knowledge base
This commit is contained in:
19
knowledge base/kubeval.md
Normal file
19
knowledge base/kubeval.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# Kubeval
|
||||
|
||||
Validates one or more Kubernetes configuration files.
|
||||
|
||||
## TL;DR
|
||||
|
||||
```shell
|
||||
$ kubeval my-invalid-rc.yaml || echo "Validation failed" >&2
|
||||
WARN - my-invalid-rc.yaml contains an invalid ReplicationController - spec.replicas: Invalid type. Expected: integer, given: string
|
||||
Validation failed
|
||||
```
|
||||
|
||||
## Further readings
|
||||
|
||||
- [Kubeval]
|
||||
- [Validating kubernetes YAML files with kubeval]
|
||||
|
||||
[kubeval]: https://www.kubeval.com
|
||||
[validating kubernetes yaml files with kubeval]: https://learnk8s.io/validating-kubernetes-yaml#kubeval
|
||||
Reference in New Issue
Block a user