<p>Well, I'm using <code>minikube v1.26.0</code> and <code>kubectl</code> to manage <code>Kubernetes</code> on my local machine, when I decide to create a <code>ConfigMap</code> with <code>kubectl apply -f ConfigMapFile.yaml</code> I'm getting error <code>no matches for kind &quot;configmap&quot; in version &quot;apps/v1&quot;</code></p>
<p>ConfigMapFile.yaml</p>
<pre><code>apiVersion: apps/v1 
kind: ConfigMap 
metadata:
  name: test-config-map 

data:
   .........
</code></pre>
<p>Seems Like <code>ConfigMap</code> is not allowed or deprecated in Kubernetes <code>apps/v1</code>, but cannot find any solution or tips that would help me with this problem.</p>

<p>you need to use <code>apiVersion: v1</code> for configmap. You can also check the version of any resource using:</p>
<pre><code>kubectl api-resources |grep -i configmap
configmaps                        cm           v1                                     true         ConfigMap
</code></pre>
