Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kube-bench
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
aquasecurity
kube-bench
Commits
97623aea
Commit
97623aea
authored
6 years ago
by
Abubakr-Sadik Nii Nai Davis
Browse files
Options
Downloads
Patches
Plain Diff
Update kubernetes node benchmark to check kubelet systemd unitfile.
Also clean up the config file for 1.11 a bit.
parent
ed218394
No related branches found
Branches containing commit
Tags
38.142.5
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cfg/1.11/config.yaml
+2
-20
2 additions, 20 deletions
cfg/1.11/config.yaml
cfg/1.11/node.yaml
+4
-4
4 additions, 4 deletions
cfg/1.11/node.yaml
with
6 additions
and
24 deletions
cfg/1.11/config.yaml
+
2
−
20
View file @
97623aea
...
...
@@ -9,39 +9,21 @@
master
:
apiserver
:
confs
:
-
/etc/kubernetes/manifests/kube-apiserver.yaml
-
/etc/kubernetes/manifests/kube-apiserver.manifest
defaultconf
:
/etc/kubernetes/manifests/kube-apiserver.yaml
scheduler
:
confs
:
-
/etc/kubernetes/manifests/kube-scheduler.yaml
-
/etc/kubernetes/manifests/kube-scheduler.manifest
defaultconf
:
/etc/kubernetes/manifests/kube-scheduler.yaml
controllermanager
:
confs
:
-
/etc/kubernetes/manifests/kube-controller-manager.yaml
-
/etc/kubernetes/manifests/kube-controller-manager.manifest
defaultconf
:
/etc/kubernetes/manifests/kube-controller-manager.yaml
etcd
:
confs
:
-
/etc/kubernetes/manifests/etcd.yaml
-
/etc/kubernetes/manifests/etcd.manifest
defaultconf
:
/etc/kubernetes/manifests/etcd.yaml
node
:
kubelet
:
confs
:
-
/etc/systemd/system/kubelet.service.d/10-kubeadm.conf
-
/etc/kubernetes/kubelet.conf
defaultconf
:
/etc/systemd/system/kubelet.service.d/10-kubeadm.conf
defaultconf
:
/etc/kubernetes/kubelet.conf
defaultsvc
:
/etc/systemd/system/kubelet.service.d/10-kubeadm.conf
proxy
:
confs
:
-
/etc/kubernetes/addons/kube-proxy-daemonset.yaml
defaultconf
:
/etc/kubernetes/addons/kube-proxy-daemonset.yaml
This diff is collapsed.
Click to expand it.
cfg/1.11/node.yaml
+
4
−
4
View file @
97623aea
...
...
@@ -362,7 +362,7 @@ groups:
-
id
:
2.2.3
text
:
"
Ensure
that
the
kubelet
service
file
permissions
are
set
to
644
or
more
restrictive
(Scored)"
audit
:
"
/bin/sh
-c
'if
test
-e
$kubelet
conf
;
then
stat
-c
%a
$kubelet
conf
;
fi'"
audit
:
"
/bin/sh
-c
'if
test
-e
$kubelet
svc
;
then
stat
-c
%a
$kubelet
svc
;
fi'"
tests
:
bin_op
:
or
test_items
:
...
...
@@ -384,12 +384,12 @@ groups:
remediation
:
|
Run the below command (based on the file location on your system) on the each worker
node. For example,
chmod 755 $kubelet
conf
chmod 755 $kubelet
svc
scored
:
true
-
id
:
2.2.4
text
:
"
Ensure
that
the
kubelet
service
file
ownership
is
set
to
root:root
(Scored)"
audit
:
"
/bin/sh
-c
'if
test
-e
$kubelet
conf
;
then
stat
-c
%U:%G
$kubelet
conf
;
fi'"
audit
:
"
/bin/sh
-c
'if
test
-e
$kubelet
svc
;
then
stat
-c
%U:%G
$kubelet
svc
;
fi'"
tests
:
test_items
:
-
flag
:
"
root:root"
...
...
@@ -397,7 +397,7 @@ groups:
remediation
:
|
Run the below command (based on the file location on your system) on the each worker
node. For example,
chown root:root $kubelet
conf
chown root:root $kubelet
svc
scored
:
true
-
id
:
2.2.5
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment