mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-05 19:21:37 +00:00
Add munger to verify kubectl -f targets, fix docs
This commit is contained in:
@@ -71,7 +71,7 @@ The [`command`](containers.md#containers-and-commands) overrides the Docker cont
|
||||
|
||||
This pod can be created using the `create` command:
|
||||
```bash
|
||||
$ kubectl create -f hello-world.yaml
|
||||
$ kubectl create -f ./hello-world.yaml
|
||||
pods/hello-world
|
||||
```
|
||||
`kubectl` prints the resource type and name of the resource created when successful.
|
||||
@@ -80,7 +80,7 @@ pods/hello-world
|
||||
|
||||
If you’re not sure you specified the resource correctly, you can ask `kubectl` to validate it for you:
|
||||
```bash
|
||||
$ kubectl create -f hello-world.yaml --validate
|
||||
$ kubectl create -f ./hello-world.yaml --validate
|
||||
```
|
||||
|
||||
Let’s say you specified `entrypoint` instead of `command`. You’d see output as follows:
|
||||
|
Reference in New Issue
Block a user