-
-
Notifications
You must be signed in to change notification settings - Fork 733
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
Heath Check Deployment is not Compatible with KIND #11
Comments
Yup. this is one of the limitation with KIND for this scenario. Will try to solve with KIND, for now https://katacoda.com/madhuakula/scenarios/kubernetes-goat If you have a PR, I am happy to review & merge. As this is know issue and part of the ROADMAP to fix |
Will work on this issue, please assign this to me |
This is not a fix, but an extremely hacky way to enable the same attack vector using KIND: create a KIND node using extraMounts, mounting the docker.sock of the host (assuming you're using docker as your host container runtime). The YAML description would be something like:
Then, comment out the If I have more time later I may play around a bit more to see if it is possible to do something a bit less hacky: I am thinking of using, e.g., ansible, to configure nodes to install Docker whenever you're running local instances like KIND or Minikube. |
Hey @macagr Thank you so much for the suggestion. I will try this out and see if it works. Please feel free to try it out and let me know. If you think there is a potentially better approach please feel free to make a pull request. Cheers! |
Hey @madhuakula, Thanks! I'll keep you informed if I find a way to make the implementation as agnostic as possible to the node container runtime. Edit: Just added a PR enabling Kind support using this idea. Cheers! |
KIND nodes by default uses
containerd
as the CRI directly instead of Dockerkubelet
command line:The same scenario can expose
containerd.sock
but exploitation will be a bit different. Either talk to it directly or start adockerd
oncontainerd.sock
and then usedocker
client.Error from Pod events:
The text was updated successfully, but these errors were encountered: