Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 539 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 539 Bytes

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
...