Difference between revisions of "Kubectl logs -n kube-system"

From wikieduonline
Jump to navigation Jump to search
Line 8: Line 8:
  
 
  kubectl logs -n kube-system aws-node-w75dq  -c aws-node aws-eks-nodeagent  
 
  kubectl logs -n kube-system aws-node-w75dq  -c aws-node aws-eks-nodeagent  
  error: only one of -c or an inline [CONTAINER] arg is allowed
+
  [[error: only one of -c]] or an inline [CONTAINER] arg is allowed
  
 
== See also ==
 
== See also ==

Revision as of 12:37, 22 February 2024

kubectl logs -n kube-system


kubectl logs -n kube-system aws-node-123 
error: a container name must be specified for pod aws-node-w75dq, choose one of: [aws-node aws-eks-nodeagent] or one of the init 
containers: aws-vpc-cni-init
kubectl logs -n kube-system aws-node-w75dq  -c aws-node aws-eks-nodeagent 
error: only one of -c or an inline [CONTAINER] arg is allowed

See also

Advertising: