Skip to content

Instantly share code, notes, and snippets.

@yankay
Created May 24, 2022 07:49
Show Gist options
  • Select an option

  • Save yankay/dee8f655837f7aa8a45d57bbc851757b to your computer and use it in GitHub Desktop.

Select an option

Save yankay/dee8f655837f7aa8a45d57bbc851757b to your computer and use it in GitHub Desktop.
快速运行 CIS-benchmark
wget https://ghproxy.com/github.com/aquasecurity/kube-bench/blob/main/job.yaml
cat job.yaml | sed 's/image: aquasec/image: docker.m.daocloud.io\/aquasec/g' > jobm.yaml
kubectl apply -f jobm.yaml
kubectl get pods
kubectl logs kube-bench-j76s9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment