<p>`</p>
<pre><code>rules:
  - verbs:
      - get
      - list
    apiGroups:
      - ''
    resources:
      - namespaces
      - pods
      - pods/log
  - verbs:
      - get
      - list
    apiGroups:
      - apps
    resources:
      - deployments
</code></pre>
<p>`</p>
<p>I want to know difference between</p>
<p>apiGroups:</p>
<ul>
<li>''</li>
</ul>
<p>and</p>
<p>apiGroups:</p>
<ul>
<li>apps</li>
</ul>
<p>whats the importance of apiGroups in manifests?</p>

<p>The API group in kubernetes identifies which API group needs to target. This is necessary as  different API groups can have the same verbs and also  Kubernetes is highly extensible and allows for the addition of new APIs that can have verbs and resource names that clash with other APIs.</p>
<p>In the manifest file, The API group “ ” (empty string) represents the core Kubernetes API and it is used for pods : apigroups is “ ” . for Deployment, apigroups is “apps” and “extensions” is used.</p>
<p>Refer to this <a href="https://kubernetes.io/docs/reference/using-api/#api-groups" rel="nofollow noreferrer">API Group official doc</a></p>
