Kubernetes container labels

We are in the process of creating a new instance of filebeat where we switch the container runtime to containerd, and we previously searched for a label in the docker container, but since we switched to containerd, we would like to access the labels in the container, but we couldn't find a way, we only could get the labels of the pod but not the containers in it. Is there a way to get the lables of the containers inside the pod and use them for a condition?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.