Kubernetes pod hostPort vs hostNetwork

Jbn1233
Aug 9, 2024

--

TDIL;

hostPort:

adm@nicklh-worker1:~$ sudo netstat -anp|grep 8080
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 1964/crio

hostNetwork:

adm@nicklh-worker3:~$ sudo netstat -anp|grep 8080
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 1841523/nginx: mast

Can not make it clearer.

That’s all.

--

--

Jbn1233
Jbn1233

Written by Jbn1233

Very short and simple notes for CKA/SRE and may not works on your environment | jbn1233@gmail.com | Bangkok, Thailand |

No responses yet