File tree 2 files changed +44
-0
lines changed
2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -293,6 +293,47 @@ kubectl explain pod
293
293
kubectl explain pod.spec
294
294
```
295
295
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
+
296
337
### Get Nodes
297
338
298
339
```
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ ls * .yml | grep -v ' values.yml$' | xargs kubeval --strict
You can’t perform that action at this time.
0 commit comments