-
Notifications
You must be signed in to change notification settings - Fork 289
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
Able to display specific container log in a pod #1187
Comments
Hey @mts-dyt, have you tried to specify which container you want the logs from? $ kubectl logs -h
...
-c, --container='':
Print the logs of this container Example: kubectl logs -n kube-system -c lb-tcp-80 svclb-traefik-e82aa45a-qq7hp on test-cluster
+ trap exit TERM INT
+ echo 10.43.211.164
+ grep -Eq :
+ cat /proc/sys/net/ipv4/ip_forward
+ '[' 1 '!=' 1 ]
+ iptables -t nat -I PREROUTING '!' -s 10.43.211.164/32 -p TCP --dport 80 -j DNAT --to 10.43.211.164:80
+ iptables -t nat -I POSTROUTING -d 10.43.211.164/32 -p TCP -j MASQUERADE
+ '[' '!' -e /pause ]
+ mkfifo /pause |
Hey @mts-dyt, |
hi @pkosiec |
Hey @mts-dyt, |
Overview
Select the container when executing
kubectl logs <pod>
Acceptance Criteria
Reason
When we have multiple containers in a pod, it is always displayed the logs of the first container
The text was updated successfully, but these errors were encountered: