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

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
  
  
  [[kubectl logs]] -n kube-system aws-node-123  
+
  [[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  
 
  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]]
 
  [[containers]]: [[aws-vpc-cni-init]]

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: