-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CIS Benchmark plugin blog post #1002
Conversation
Signed-off-by: Jonas Rosland <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1002 +/- ##
=========================================
- Coverage 48.39% 48.29% -0.1%
=========================================
Files 76 76
Lines 5377 5377
=========================================
- Hits 2602 2597 -5
- Misses 2619 2622 +3
- Partials 156 158 +2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯 Thanks @jonasrosland !
$ sonobuoy gen plugin \ | ||
--name kube-bench-worker \ | ||
--image=schnake/kube-bench:v0.2.0-demo \ | ||
--cmd=/bin/sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--cmd=/bin/sh | |
--cmd=/bin/sh \ |
--name kube-bench-worker \ | ||
--image=schnake/kube-bench:v0.2.0-demo \ | ||
--cmd=/bin/sh | ||
--args=-c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--args=-c | |
--arg=-c \ |
--image=schnake/kube-bench:v0.2.0-demo \ | ||
--cmd=/bin/sh | ||
--args=-c | ||
--args=”kube-bench --version 1.13 --outputfile /tmp/results/output.xml --junit ; echo -n /tmp/results/output.xml > /tmp/results/done” \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--args=”kube-bench --version 1.13 --outputfile /tmp/results/output.xml --junit ; echo -n /tmp/results/output.xml > /tmp/results/done” \ | |
--arg="kube-bench --version 1.13 --outputfile /tmp/results/output.xml --junit ; echo -n /tmp/results/output.xml > /tmp/results/done" \ |
Each of these things can be done manually, or with the following command: | ||
|
||
``` | ||
$ cat kub-bench-worker.yaml | \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ cat kub-bench-worker.yaml | \ | |
$ cat kube-bench-worker.yaml | \ |
|
||
``` | ||
$ cat kub-bench-worker.yaml | \ | ||
sed ‘/kube-bench-worker/kube-bench-master/’ | \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I tried this out but these sed
commands don't work for me. I think they should be:
sed ‘/kube-bench-worker/kube-bench-master/’ | \ | |
sed 's/kube-bench-worker/kube-bench-master/g' | \ |
``` | ||
$ cat kub-bench-worker.yaml | \ | ||
sed ‘/kube-bench-worker/kube-bench-master/’ | \ | ||
sed ‘/- kube-bench/- kube-bench master/’ | \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sed ‘/- kube-bench/- kube-bench master/’ | \ | |
sed 's/- kube-bench/- kube-bench master/g' | \ |
$ cat kub-bench-worker.yaml | \ | ||
sed ‘/kube-bench-worker/kube-bench-master/’ | \ | ||
sed ‘/- kube-bench/- kube-bench master/’ | \ | ||
sed ‘/Exists/DoesNotExist/’ > kube-bench-master.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sed ‘/Exists/DoesNotExist/’ > kube-bench-master.yaml | |
sed 's/Exists/DoesNotExist/g' > kube-bench-master.yaml |
This adds the CIS Benchmark plugin blog post.
Signed-off-by: Jonas Rosland [email protected]