Skip to content

用于从 Rancher 集群中检索项目、命名空间、项目下的用户及其相应权限的信息。

Notifications You must be signed in to change notification settings

warnerchen/get-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Warner ChenWarner Chen
Warner Chen
and
Warner Chen
Oct 12, 2024
266af20 · Oct 12, 2024

History

1 Commit
Oct 12, 2024
Oct 12, 2024

Repository files navigation

Rancher Get Info

A very basic script to retrieve information about Projects, Namespaces, Users under Projects, and their corresponding permissions from clusters in Rancher.

Usage

  1. Download the all cluster's kubeconfig file from Rancher UI.
  2. Copy the kubeconfig file to the same directory as the get_info.sh script.
  3. Run the get_info.sh script.
bash get_info.sh

The Output looks like this:

...
Cluster: my-cluster, Project: Default, Users: warner, Role: project-owner, Namespace: default
...

About

用于从 Rancher 集群中检索项目、命名空间、项目下的用户及其相应权限的信息。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages