add info about old support for generators

pull/20107/head
Marcin Niemira 2020-04-21 19:01:40 +10:00
parent 560c5004d8
commit 67abb1b5ff
No known key found for this signature in database
GPG Key ID: 053E25BDC33ED6A3
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,10 @@ For `kubectl run` to satisfy infrastructure as code:
You can use the `--dry-run` flag to preview the object that would be sent to your cluster, without really submitting it.
{{< note >}}
Generators other than `pod` in `kubectl run` were deprecated until [kubernetes v1.17](https://v1-17.docs.kubernetes.io/docs/reference/kubectl/conventions/). Now there are not supported.
{{< /note >}}
#### Generators
You can generate the following resources with a kubectl command, `kubectl create --dry-run -o yaml`:
```