Skip to content

Commit

Permalink
Merge pull request kubernetes#44823 from my-git9/patch-13962
Browse files Browse the repository at this point in the history
Correct incorrect expressions for debug-pods
  • Loading branch information
k8s-ci-robot authored Jan 23, 2024
2 parents ca81744 + 5fcc71a commit 1ab4924
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
Original file line number Diff line number Diff line change
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 1ab4924

Please sign in to comment.