$ kubectl get pod nginx-pod -o yaml -> pod-definition.yaml Error from server . . .

Robin Sharma:
$ kubectl get pod nginx-pod -o yaml -> pod-definition.yaml
Error from server (NotFound): pods “-” not found

Sathish Puranika K:
Are you trying to deploy the pod or get the pod status?

Robin Sharma:
actually i am trying to extract pod defnition to a file

chris resnik:
see my reply to your other message

chris resnik:
it’s a problem with the command

chris resnik:
-> instead of >

Robin Sharma:
:slightly_smiling_face:

Robin Sharma:
Thanks a lot

Sathish Puranika K:
kubectl get po podname -o yaml should work

Robin Sharma:
Actually I have been using that -> operator for lambda expressions in java

chris resnik:
good luck using java on the ckad exam :slightly_smiling_face: