# kubectl get deployments. my-nginx -o yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "3"
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"extensions/v1beta1","kind":"Deployment","metadata":{"annotations":{},"name":"my-nginx","namespace":"default"},"spec":{"template":{"metadata":{"labels":{"app":"my-nginx"}},"spec":{"containers":[{"image":"nginx:1.13.12","name":"my-nginx","ports":[{"containerPort":80}]}]}}}}
# kubectl get deployments. my-nginx -o go-template='{{.metadata.annotations.deployment.kubernetes.io/revision}}'
error: error parsing template {{.metadata.annotations.deployment.kubernetes.io/revision}}, template: output:1: bad character U+002F '/'