Skip to content

Instantly share code, notes, and snippets.

@saiyam1814
Last active October 21, 2024 05:08
Show Gist options
  • Save saiyam1814/603b47666f68c530ac2809a98b66b6cc to your computer and use it in GitHub Desktop.
Save saiyam1814/603b47666f68c530ac2809a98b66b6cc to your computer and use it in GitHub Desktop.
containerdays2024
## Instaling vcluster
curl -L -o vcluster "https://github.com/loft-sh/vcluster/releases/download/v0.20.1/vcluster-linux-amd64" && sudo install -c -m 0755 vcluster /usr/local/bin && rm -f vcluster
## Installing Falco
helm repo add falcosecurity https://falcosecurity.github.io/charts
helm repo update
helm upgrade --install falco falcosecurity/falco --namespace falco --create-namespace
## Create vCluster
kubectl create namespace vcluster
vcluster create ssh -n vcluster
## Install ssh
helm repo add securecodebox https://charts.securecodebox.io/
helm repo update
helm install my-dummy-ssh securecodebox/dummy-ssh --version 3.14.3
kubectl exec -it <podname> -- /bin/bash
passwd root
cat /etc/shadow
kubectl port-forward svc/my-dummy-ssh 5555:22
ssh -p 5555 [email protected]
## Check host cluster logs for falco
kubectl logs -f daemonset/falco -n falco | grep shadow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment