mirror of https://github.com/portainer/portainer
40 lines
1.3 KiB
TypeScript
40 lines
1.3 KiB
TypeScript
![]() |
import { Alert } from '@@/Alert';
|
||
|
|
||
|
export function RBACAlert() {
|
||
|
return (
|
||
|
<Alert color="warn" className="mb-4">
|
||
|
<div className="flex-flex-col">
|
||
|
<p>
|
||
|
Your cluster does not have Kubernetes role-based access control (RBAC)
|
||
|
enabled.
|
||
|
</p>
|
||
|
<p>This means you can't use Portainer RBAC functionality to</p>
|
||
|
<p className="mb-0">
|
||
|
To enable RBAC, start the
|
||
|
<a
|
||
|
className="th-highcontrast:text-blue-4 th-dark:text-blue-7"
|
||
|
href="https://kubernetes.io/docs/concepts/overview/components/#kube-apiserver"
|
||
|
target="_blank"
|
||
|
rel="noreferrer"
|
||
|
>
|
||
|
API server
|
||
|
</a>
|
||
|
with the
|
||
|
<code className="bg-gray-4 box-decoration-clone th-highcontrast:bg-black th-dark:bg-black">
|
||
|
--authorization-mode
|
||
|
</code>
|
||
|
flag set to a comma-separated list that includes
|
||
|
<code className="bg-gray-4 th-highcontrast:bg-black th-dark:bg-black">
|
||
|
RBAC
|
||
|
</code>
|
||
|
, for example:
|
||
|
<code className="bg-gray-4 box-decoration-clone th-highcontrast:bg-black th-dark:bg-black">
|
||
|
kube-apiserver --authorization-mode=Example1,RBAC,Example2
|
||
|
</code>
|
||
|
.
|
||
|
</p>
|
||
|
</div>
|
||
|
</Alert>
|
||
|
);
|
||
|
}
|