How do I edit a resource configuration with kubectl?

Viewed 26051

I've created a resource with: kubectl create -f example.yaml

How do I edit this resource with kubectl? Supposedly kubectl edit, but I'm not sure of the resource name, and kubectl edit example returns an error of:

the server doesn't have a resource type "example"
1 Answers
Related