0

I was handed a kubernetes cluster to manage. But in the same node, I can see running docker containers (via docker ps) that I could not able to find/relate in the pods/deployments (via kubectl get pods/deployments).

I have tried kubectl describe and docker inspect but could not pick out any differentiating parameters.

How to differentiate which is which?

himekami
  • 1,419
  • 3
  • 13
  • 21
  • where is the issue? If there any pods then you will get it by `kubectl get pods`. You got nothing means there is no pod. – dahiya_boy May 17 '21 at 08:28
  • If you destroy a node and create a new one, the new node will probably only have Kubernetes-managed pods. – David Maze May 17 '21 at 11:20
  • show example, we will explain you where from there containers go. E.g, like @coderanger mentioned, here is a bit info about technical [pause containers](https://stackoverflow.com/questions/63020184/difference-between-kubernetes-metrics-metrics-resource-v1alpha1-and-metrics/63520661#63520661) – Vit May 18 '21 at 07:42

1 Answers1

1

There will be many. At a minimum you'll see all the pod sandbox pause containers which are normally not visible. Plus possibly anything you run directly such as the control plane if not using static pods.

coderanger
  • 52,400
  • 4
  • 52
  • 75