Maksym Prokopov personal blog
Idea is a something worth sharing

Useful Kubernetes tools and tips

01.01.0001

Unlike docker-compose sometimes kubectl provides you better tooling for docker container access.

Let me share with you my useful findings.

With port-forward, you can easily connect to pods service and debug it.

kubectl port-forward podname port

For example

kubectl port-forward sharepass-78d566f866-4dvv5 3000

kubectl port-forward sharepass-78d566f866–4dvv5 3000
Forwarding from 127.0.0.1:3000 -> 3000
Forwarding from [::1]:3000 -> 3000
Handling connection for 3000
Handling connection for 3000

This will forward port 3000 to localhost, so you can open URL http://localhost:3000 and enjoy access to your service.

Read More…

Why is my dev docker container so slow on macOS?

01.01.0001

TLDR: because of the networking layer and how docker volumes implemented.