Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only first container discovered in multicontainer pod #2

Open
posuch opened this issue Aug 27, 2019 · 0 comments
Open

only first container discovered in multicontainer pod #2

posuch opened this issue Aug 27, 2019 · 0 comments

Comments

@posuch
Copy link

posuch commented Aug 27, 2019

deployment

from here

2 containers in pod - 1st nginx, 2nd debian

[root@osboxes externalscripts]# kubectl get pods --all-namespaces -o=jsonpath='{range .items[]}{"\n"}{.metadata.name}{":\t"}{range .spec.containers[]}{.image}{", "}{end}{end}' |sort | grep mc1

mc1: nginx, debian,

dicovery script output contains only 1st container

/k8s_discovery.pl '/root/.minikube/config/kube.conf' 'containers' 'kube-system' '10.0.2.15' | jq

{
  "{#NAMESPACE}": "kube-system",
  "{#CONTAINER}": "1st",
  "{#NAME}": "mc1"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant