<p>1.I  tried to get kubernetes cluster detail by entering command below .</p>
<pre><code>kubectl describe service {NAME}
</code></pre>
<p>2.I got an error message below.</p>
<pre><code> error from server (Forbidden): servicies “max-Object-detectoer” is forbidden:User “{username}” cannot get resource “services” in API group “” in the namespace “default”
</code></pre>

Moe
<p>Looks like the service account (user) you are using doesn't have access to that Service</p>
<p>You can create a ClusterRole like so:</p>
<pre><code>kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  namespace: default
  name: service-reader
rules:
- apiGroups: [&quot;&quot;] # &quot;&quot; indicates the core API group
  resources: [&quot;services&quot;]
  verbs: [&quot;get&quot;, &quot;watch&quot;, &quot;list&quot;]
</code></pre>
<p>Then you can create a clusterRoleBinding, giving your service account the above mentioned role, like so:</p>
<pre><code>kubectl create clusterrolebinding service-reader-pod \
  --clusterrole=service-reader  \
  --serviceaccount={name_of_service_account}
</code></pre>
<p>Let me know if this worked for you.</p>
