Skip to content

Commit 0c38fe6

Browse files
committedFeb 4, 2020
Add Kubeval #79
1 parent 0ef24ae commit 0c38fe6

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
 

‎README.md

+41
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,47 @@ kubectl explain pod
293293
kubectl explain pod.spec
294294
```
295295

296+
### Kubeval
297+
298+
- Github: <https://github.com/instrumenta/kubeval>
299+
- Homepage: <https://kubeval.instrumenta.dev>
300+
301+
#### Install
302+
303+
Install instructions: <https://kubeval.instrumenta.dev/installation/>
304+
305+
Linux
306+
307+
```
308+
wget https://github.com/instrumenta/kubeval/releases/latest/download/kubeval-linux-amd64.tar.gz
309+
tar xf kubeval-linux-amd64.tar.gz
310+
sudo cp kubeval /usr/local/bin
311+
```
312+
313+
Mac
314+
315+
```
316+
brew tap instrumenta/instrumenta
317+
brew install kubeval
318+
```
319+
320+
#### Usage
321+
322+
```
323+
kubeval <file>
324+
kubeval --strict <file>
325+
```
326+
327+
Example
328+
329+
```
330+
kubeval 01_pod.yml
331+
kubeval --strict 01_pod.yml
332+
333+
# Validate all Kubernetes YAMLs
334+
./kubeval.sh
335+
```
336+
296337
### Get Nodes
297338

298339
```

‎kubeval.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
ls *.yml | grep -v 'values.yml$' | xargs kubeval --strict

0 commit comments

Comments
 (0)
Please sign in to comment.