Skip to content

Get the pods of a certain node

kubectl get pods --all-namespaces -o wide --field-selector spec.nodeName={node_name}

Get information for drone plugin steps

Check first if your service account has the needed
rolebindings to perform the needed actions

kubernetes_server_url:

https://kubernetes.default.svc

kubernetes_token: Get it via kubectl

kubectl -n <namespace> get secret $TOKENNAME
-o jsonpath='{.data.token}'| base64 --decode

kubernetes_cacert:

kubectl -n <namespace> get secret $TOKENNAME
-o jsonpath='{.data.ca\.crt}'