Skip to content

Commit

Permalink
Updated kube-bench and falco install/configure instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
Swapnil Kulkarni committed Jan 13, 2021
1 parent 02343f9 commit 8202cc6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions 00-cluster-prep/setup_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ apt-get -y install linux-headers-$(uname -r)
apt-get install -y etcd-client vim build-essential bash-completion binutils apparmor-utils falco docker.io kubelet=${KUBE_VERSION}-00 kubeadm=${KUBE_VERSION}-00 kubectl=${KUBE_VERSION}-00 kubernetes-cni=0.8.7-00 trivy

### install kube-bench
curl -L https://github.com/aquasecurity/kube-bench/releases/download/v0.3.1/kube-bench_0.3.1_linux_amd64.deb -o /tmp/kube-bench_0.3.1_linux_amd64.deb
sudo apt install /tmp/kube-bench_0.3.1_linux_amd64.deb -f
curl -L https://github.com/aquasecurity/kube-bench/releases/download/v0.3.1/kube-bench_0.3.1_linux_amd64.tar.gz -o /tmp/kube-bench_0.3.1_linux_amd64.tar.gz
mkdir -p /tmp/kube-bench
tar -xzf /tmp/kube-bench_0.3.1_linux_amd64.tar.gz -C /tmp/kube-bench
cp /tmp/kube-bench/kube-bench /usr/local/bin/kube-bench
mkdir -p /etc/kube-bench
cp -Rf /tmp/kube-bench/cfg /etc/kube-bench/
rm -rf /tmp/kube-bench*


Expand All @@ -68,6 +72,10 @@ systemctl restart docker
# start docker on reboot
systemctl enable docker

#stop and disable falco
systemctl disable falco
systemctl stop falco

docker info | grep -i "storage"
docker info | grep -i "cgroup"

Expand Down

0 comments on commit 8202cc6

Please sign in to comment.