1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 23:09:41 +02:00

feat(k8sconfigure): migrate configure to react [EE-5524] (#10218)

This commit is contained in:
Ali 2023-09-05 18:06:36 +02:00 committed by GitHub
parent 0f1e77a6d5
commit 515b02813b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
59 changed files with 1819 additions and 833 deletions

View file

@ -0,0 +1,39 @@
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&apos;t use Portainer RBAC functionality to</p>
<p className="mb-0">
To enable RBAC, start the&nbsp;
<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>
&nbsp;with the&nbsp;
<code className="bg-gray-4 box-decoration-clone th-highcontrast:bg-black th-dark:bg-black">
--authorization-mode
</code>
&nbsp;flag set to a comma-separated list that includes&nbsp;
<code className="bg-gray-4 th-highcontrast:bg-black th-dark:bg-black">
RBAC
</code>
, for example:&nbsp;
<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>
);
}