Radoslaw Czajkowski:
okay so it looks properly
Radoslaw Czajkowski:
what containers does this pod have (names)?
Radoslaw Czajkowski:
k logs webapp-mysql-dd… -c webapp-mysql -n=beta?
Akhil Addagulla:
Session got closed let me re-open it
Radoslaw Czajkowski:
okay, so it works properly
Radoslaw Czajkowski:
you used -l flag which is used as a label selector
Radoslaw Czajkowski:
hence, no resources found with such labels
Akhil Addagulla:
okay but if I use --previous it giving me error. Check my first screenshot second command
Radoslaw Czajkowski:
So It just not found previously terminated container which is a normal thing
Akhil Addagulla:
okay
Radoslaw Czajkowski:
You need to have a container terminated and then started new
Radoslaw Czajkowski:
To have previous logs
Akhil Addagulla:
I noticed now my container did not even restarted
Radoslaw Czajkowski:
So it explains why no terminated container was found
Akhil Addagulla:
okay. One last question here
k logs -f podname --namespace=<name>
Is not showing much error to troubleshoot
Akhil Addagulla:
I can’t understand what’s the issue here??
Akhil Addagulla:
Can you please help me to understand?