API call for listing nodes in the "Unauthorized" state
Problem
How to list UUIDs of PMK nodes, which are stuck in an "Unauthorized" state using resmgr API.
Environment
Platform9 Managed Kubernetes - v4.0 and Higher
Procedure
To get the UUIDs of nodes in the unauthorized state, please follow the procedure below:
Step 1: Generate Token
Please follow the doc https://platform9.com/docs/kubernetes/keystone-identity-api to generate the token.
export TOKEN=<token generated by above procedure>Step 2: List UUIDs of nodes in the unauthorized state
curl -s --request GET --url <FQDN>/resmgr/v1/hosts --header "X-Auth-Token: '$TOKEN'}" | jq '.[] | select(.roles | length == 0) | .id'EnvironmentReplace the FQDN in the above command.
PreviousHow to Safely Shutdown and Restart a Kubernetes Cluster
NextIntegrating Custom Container Registry with PMK Clusters
Last updated
