Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an easy way to "mount" k8s config map entries on a client machine?

I am debugging an app running in a k8s pod using telepresence. That app mounts several different config maps and I have to mimic it on my client machine, which is annoying, because these config maps may change from time to time.

Is there a way to "mount" these config maps on my client machine? I could probably write a script that does it, but I do not want to invent a wheel.

like image 622
mark Avatar asked Sep 19 '25 08:09

mark


1 Answers

I recommend checking out mirrord:

https://mirrord.dev

It makes a local process mimic a running pod, including environment variables, so should cover your config map use case. It also proxies incoming and outgoing traffic and file access, but this can be disabled via configuration if not required.

like image 96
Eyal B Avatar answered Sep 21 '25 02:09

Eyal B