<p>I saw generators except <code>run-pod/v1</code> are deprecated in <a href="https://kubernetes.io/docs/reference/kubectl/conventions/#generators" rel="nofollow noreferrer">kubectl run</a>. Previously, it was convenient to create deployments without creating a YAML file for testing purposes, wondering why it is deprecated?</p>

Dagang
<p>From the <a href="https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.12.md#deprecations-and-removals" rel="nofollow noreferrer">Changelog</a>:</p>

<blockquote>
  <p>All kubectl run generators have been deprecated except for run-pod/v1. This is part of a move to make kubectl run simpler, enabling it create only pods; if additional resources are needed, you should use kubectl create instead. (<a href="https://github.com/kubernetes/kubernetes/pull/68132" rel="nofollow noreferrer">#68132</a>, @soltysh)</p>
</blockquote>
