Make a cluster mesh-ready
import requests
url = "https://platform.ankra.app/api/v1/org/cluster-meshes/make-ready"
payload = { "cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({cluster_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://platform.ankra.app/api/v1/org/cluster-meshes/make-ready', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/cluster-meshes/make-ready \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"success": true,
"make_ready": {
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cilium_cluster_id": 123,
"cilium_cluster_name": "<string>",
"identity_allocated": true,
"transitioned_resources": 123,
"pod_cidr": "<string>",
"pod_cidr_changed": true
}
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Cluster Meshes
Make a cluster mesh-ready
Turns an existing cluster mesh-capable without recreating it: ensures its network identity, stamps the overlay onto its definitions and sets its Kubernetes resources converging, which restarts each kubelet once (and, when pod_cidr moves the pod range, drains and re-registers each node once). Requires clusters.write at organisation scope. An unknown cluster answers 404; a precondition the cluster fails answers 400 with the reason. Answers 404 while the organisation’s cluster_mesh feature flag is off.
POST
/
api
/
v1
/
org
/
cluster-meshes
/
make-ready
Make a cluster mesh-ready
import requests
url = "https://platform.ankra.app/api/v1/org/cluster-meshes/make-ready"
payload = { "cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({cluster_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://platform.ankra.app/api/v1/org/cluster-meshes/make-ready', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/cluster-meshes/make-ready \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"success": true,
"make_ready": {
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cilium_cluster_id": 123,
"cilium_cluster_name": "<string>",
"identity_allocated": true,
"transitioned_resources": 123,
"pod_cidr": "<string>",
"pod_cidr_changed": true
}
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json