mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
Comments go above the sample line in kubectl docs.
This commit is contained in:
@@ -48,17 +48,17 @@ will be lost along with the rest of the resource.
|
||||
|
||||
Examples:
|
||||
|
||||
$ kubectl delete -f pod.json
|
||||
// Delete a pod using the type and ID specified in pod.json.
|
||||
$ kubectl delete -f pod.json
|
||||
|
||||
$ cat pod.json | kubectl delete -f -
|
||||
// Delete a pod based on the type and ID in the JSON passed into stdin.
|
||||
$ cat pod.json | kubectl delete -f -
|
||||
|
||||
$ kubectl delete pods,services -l name=myLabel
|
||||
// Delete pods and services with label name=myLabel.
|
||||
$ kubectl delete pods,services -l name=myLabel
|
||||
|
||||
$ kubectl delete pod 1234-56-7890-234234-456456
|
||||
// Delete a pod with ID 1234-56-7890-234234-456456.`,
|
||||
// Delete a pod with ID 1234-56-7890-234234-456456.
|
||||
$ kubectl delete pod 1234-56-7890-234234-456456`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
cmdNamespace, err := f.DefaultNamespace(cmd)
|
||||
checkErr(err)
|
||||
|
||||
Reference in New Issue
Block a user