<p>While creating a secret:</p>
<pre class="lang-bash prettyprint-override"><code>kubectl -n customspace create secret tls localhost.customspace.svc.customspace-tls-pair --cert=certs/webhook.crt --key=certs/webhook.key
</code></pre>
<p>I get the error:</p>
<pre><code>error: failed to create secret the server could not find the requested resource (post secrets)
</code></pre>
<p>I have checked <a href="https://kubernetes.io/releases/version-skew-policy/" rel="nofollow noreferrer">https://kubernetes.io/releases/version-skew-policy/</a> but still am getting this error.</p>
<pre><code>$ kubectl version -o=yaml                                                                                                                   
clientVersion:
  buildDate: &quot;2022-09-14T19:49:27Z&quot;
  compiler: gc
  gitCommit: e4d4e1ab7cf1bf15273ef97303551b279f0920a9
  gitTreeState: clean
  gitVersion: v1.25.1
  goVersion: go1.19.1
  major: &quot;1&quot;
  minor: &quot;25&quot;
  platform: linux/amd64
kustomizeVersion: v4.5.7
serverVersion:
  buildDate: &quot;2022-07-13T14:23:26Z&quot;
  compiler: gc
  gitCommit: aef86a93758dc3cb2c658dd9657ab4ad4afc21cb
  gitTreeState: clean
  gitVersion: v1.24.3
  goVersion: go1.18.3
  major: &quot;1&quot;
  minor: &quot;24&quot;
  platform: linux/amd64
</code></pre>
<pre><code>$ echo $KUBECONFIG
/home/vyom/.kube/config
</code></pre>
<p>Any help will be really appreciated, looked at a lot of similar questions, no luck.</p>

BeastMaster64
<p>This probably means your namespace (<code>customspace</code>) doesn't exist.</p>
