Skip to content

Commit

Permalink
chore: deploy website
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 18, 2024
1 parent db84f7a commit e03c7ae
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions docs/docs/online/rbac.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,48 @@ <h2 id="_roles"><a class="anchor" href="#_roles"></a>Roles</h2>
no</code></pre>
</div>
</div>
<div class="sect3">
<h4 id="_creating_a_role_with_the_minimum_permissions"><a class="anchor" href="#_creating_a_role_with_the_minimum_permissions"></a>Creating a Role with the Minimum Permissions</h4>
<div class="paragraph">
<p>The following creates a role with the minimum permissions required for connecting and
viewing existing pods. Once created, a user can be bound to it with a
<a href="https://kubernetes.io/docs/reference/access-authn-authz/rbac/#rolebinding-and-clusterrolebinding" class="external" target="_blank" rel="noopener">role-binding</a>.</p>
</div>
<div class="listingblock">
<div class="content">
<pre>$ cat &lt;&lt;EOF | kubectl create -f -
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: hawtio-viewer
rules:
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- pods/proxy
verbs:
- get
- list
- watch
- create
- apiGroups:
- authorization.k8s.io
resources:
- localsubjectaccessreviews
verbs:
- create
EOF</pre>
</div>
</div>
</div>
</div>
</div>
<div class="sect1">
Expand Down

0 comments on commit e03c7ae

Please sign in to comment.