How to create a k8s custom pod with a specific configuration?

94 Views Asked by At

i have to say that my question is a little confusing but i'll try to be as clear as possible:

in docker there is a command to run a container and make it use another container's network the command is : docker run --net=container so basically, i want to make k8s execute that command to create a pod, is that possible ? or is there any other alternative command for that in k8s ?

in another words, what command does the k8s api-server execute to create containers on worker nodes?

there is a lot of questions over there lol, i hope you will understand what i want to say ...

1

There are 1 best solutions below

1
panas007 On

I am not sure if i understand what you want but if you want to capture a pod's traffic network you can use a service mesh like Istio or Linkerd

I worked with Istio and you can have metrics for all traffic within a cluster