Skip to content

Commit

Permalink
[en] Correct incorrect expressions
Browse files Browse the repository at this point in the history
Signed-off-by: xin.li <xin.li@daocloud.io>
  • Loading branch information
my-git9 committed Jan 20, 2024
1 parent 2df0642 commit 5fcc71a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/en/docs/tasks/debug/debug-application/debug-pods.md
Expand Up @@ -109,15 +109,15 @@ If your pod is not behaving as you expected, it may be that there was an error i
pod description (e.g. `mypod.yaml` file on your local machine), and that the error
was silently ignored when you created the pod. Often a section of the pod description
is nested incorrectly, or a key name is typed incorrectly, and so the key is ignored.
For example, if you misspelled `command` as `command` then the pod will be created but
For example, if you misspelled `command` as `commnd` then the pod will be created but
will not use the command line you intended it to use.

The first thing to do is to delete your pod and try creating it again with the `--validate` option.
For example, run `kubectl apply --validate -f mypod.yaml`.
If you misspelled `command` as `command` then will give an error like this:
If you misspelled `command` as `commnd` then will give an error like this:

```shell
I0805 10:43:25.129850 46757 schema.go:126] unknown field: command
I0805 10:43:25.129850 46757 schema.go:126] unknown field: commnd
I0805 10:43:25.129973 46757 schema.go:129] this may be a false alarm, see https://github.com/kubernetes/kubernetes/issues/6842
pods/mypod
```
Expand Down

0 comments on commit 5fcc71a

Please sign in to comment.