Available Commands: allow Allow the access to the resources completion Generate the autocompletion script for the specified shell delete Delete the kubernetes resources that were made specific allow command help Help about any command list List the number of times we ran the allow command version Print the version of akcess
Flags: -h, --helphelpfor akcess
Use "akcess [command] --help"for more information about a command.
[root@master-01 ~]# kubectl --kubeconfig=akcess-demo get pod -n monitoring NAME READY STATUS RESTARTS AGE kube-state-metrics-6d66b8ffbd-qvrwz 3/3 Running 0 6d11h prometheus-adapter-5579d9df79-ftdsm 1/1 Running 0 6d13h prometheus-operator-8554b997bf-xz2pt 2/2 Running 0 6d13h [root@master-01 ~]# kubectl --kubeconfig=akcess-demo get svc -n monitoring Error from server (Forbidden): services is forbidden: User "akcess-rf4md" cannot list resource "services" in API group "" in the namespace "monitoring" [root@master-01 ~]# kubectl --kubeconfig=akcess-demo delete pod kube-state-metrics-6d66b8ffbd-qvrwz -n monitoring Error from server (Forbidden): pods "kube-state-metrics-6d66b8ffbd-qvrwz" is forbidden: User "akcess-rf4md" cannot delete resource "pods" in API group "" in the namespace "monitoring"
[root@master-01 ~]# kubectl -n monitoring get role NAME CREATED AT akcess-jtq84 2022-04-05T17:07:34Z [root@master-01 ~]# kubectl -n monitoring get rolebindings.rbac.authorization.k8s.io NAME ROLE AGE akcess-zh5ss Role/akcess-jtq84 5m51s [root@master-01 ~]# kubectl get csr NAME AGE SIGNERNAME REQUESTOR CONDITION akcess-w7dqg 6m19s kubernetes.io/kube-apiserver-client kubernetes-admin Approved,Issued
#这里支持如下shell [root@master-01 ~]# akcess completion -h Generate the autocompletion script for akcess for the specified shell. See each sub-command's help for details on how to use the generated script.
Usage: akcess completion [command]
Available Commands: bash Generate the autocompletion script for bash fish Generate the autocompletion script for fish powershell Generate the autocompletion script for powershell zsh Generate the autocompletion script for zsh #支持不同的系统 #### Linux: