<p>someone before me deployed daemonset, and configmap is it possible for me to somehow get the values he used ? smth like <code>kubectl edit &lt;name&gt;</code> but the edit option has some temporary data in it too - the name of pod with random chars etc. - and to get pure values used in that deployments/daemonset what command would I need to use?</p>

CptDolphin
<p><code>kubectl get --export</code> had bugs like <a href="https://github.com/kubernetes/kubernetes/issues/28551" rel="nofollow noreferrer">this</a> and <a href="https://github.com/kubernetes/kubernetes/issues/24855" rel="nofollow noreferrer">this</a> and <code>--export</code> will be deprecated in k8s <code>v1.18</code> per <a href="https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.14.md#deprecations" rel="nofollow noreferrer">this link</a>.</p>

<pre><code>$ kubectl get --export
Flag --export has been deprecated, This flag is deprecated and will be removed in future.
...
</code></pre>

<p><code>kubectl get -o yaml</code> can be used to get values of a k8s resource's manifest along with metadata and status of the resource. <code>kubectl get -o yaml</code> has the following three sections:</p>

<ul>
<li><code>metadata</code></li>
<li><code>spec</code> with the values of the k8s resource's manifest</li>
<li><code>status</code> with the resource's status</li>
</ul>
