get pods from kube api server using CURL

preview_player
Показать описание
Get available pods in default name space with CURL

Commands used in the demo:

# token from the secret

# kube-api server ip and CA certificate file
kubectl config view

# Allow service account view the pods in the default namespace

kubectl create rolebinding default-view --clusterrole=view --serviceaccount=default:default --namespace default

# API request to kube-api server endpoint

Рекомендации по теме