import requests
url = "https://platform.ankra.app/api/v1/clusters/{cluster_id}/kubernetes/nodes/{node_name}/kubelet-config"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/clusters/{cluster_id}/kubernetes/nodes/{node_name}/kubelet-config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/clusters/{cluster_id}/kubernetes/nodes/{node_name}/kubelet-config \
--header 'Authorization: Bearer <token>'{
"kubelet_config": {},
"node_name": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}Get a node's kubelet configuration
Returns the configuration one node’s kubelet runs with, as the kubelet reports it on /configz through the apiserver’s node proxy: eviction thresholds, reserved resources, swap behaviour and the rest of the merged flags and config file. It is read live through the cluster agent every time and never served from cache. Requires kubernetes.read on the cluster. Values of staticPodURLHeader are withheld; the header names are kept.
import requests
url = "https://platform.ankra.app/api/v1/clusters/{cluster_id}/kubernetes/nodes/{node_name}/kubelet-config"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/clusters/{cluster_id}/kubernetes/nodes/{node_name}/kubelet-config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/clusters/{cluster_id}/kubernetes/nodes/{node_name}/kubelet-config \
--header 'Authorization: Bearer <token>'{
"kubelet_config": {},
"node_name": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The Kubernetes node name. Anything that is not a valid node name is refused with 400 before the cluster is asked.
1 - 253Response
Successful Response
A node's kubelet configuration as the kubelet reports it on /configz: the values in force once its flags and config file were merged. No Node object carries them.