redhat-scholars / kubernetes-tutorial

Kubernetes Tutorial for https://dn.dev/master
https://redhat-scholars.github.io/kubernetes-tutorial/
Apache License 2.0
362 stars 193 forks source link

In working through homework for class one for resources I ran into a syntax error #2

Closed yazug closed 4 years ago

yazug commented 4 years ago

Describe the pod

PODNAME=$(kubectl get pod  -l app=myboot -o name)
kubectl describe pod $PODNAME
$ kubectl describe pod $PODNAME
error: there is no need to specify a resource type as a separate argument when passing arguments in resource/name form (e.g. 'kubectl get resource/<resource_name>' instead of 'kubectl get resource resource/<resource_name>'
$ echo $PODNAME
pod/myboot-66d7d57687-qwnnf

$ kubectl describe $PODNAME
Name:         myboot-66d7d57687-qwnnf                                                                                  
Namespace:    myspace                                                                                                                                                                                                                         
Priority:     0
...