Lightning Talk - Ephemeral Containers on Kubernetes in 10 MInutes.pdf
NatanYellin
27 views
13 slides
Jun 22, 2024
Slide 1 of 13
1
2
3
4
5
6
7
8
9
10
11
12
13
About This Presentation
Kubernetes Ephemeral Containers - When you need them and how to use them to troubleshoot hardened containers
Size: 2.7 MB
Language: en
Added: Jun 22, 2024
Slides: 13 pages
Slide Content
About Me
Natan Yellin (LinkedIn, twitter)
CEO of Robusta.dev
For multi-cluster Kubernetes & Prometheus
Open Source projects
4
Ephemeral Containers
5
Troubleshoot pods
7
8
9
Containers missing the cmds we need
ping
netstat
gdb
jattach
strace/ltrace
py-spy
10
What are Ephemeral Containers
Special containers that can be attached at
runtime to already-running pods
Created from the cli (kubectl debug) instead of
yaml
You can have hardened containers and
troubleshoot them too
11
Demo
12
How it works
A linux containers is just one or more
processes on a node
... that have some isolated resources (cgroups,
linux namespaces, etc)
Creating a debug container starts a new
process on the node and sets a few settings
so the process has access to the same
resources
13
If you have another 10 minutes
Blog from Ivan Velichko (iximiuz) with all the
gotchas and how to work around them
Read the KEP
14