Kubernetes API

The Kubernetes API is a programming interface that provides access to cluster and node management in the Managed Kubernetes product. Using the API, you can create clusters and automate their maintenance.

Authorization

OpenStack Keystone tokens are used to work with the Kubernetes API. The tokens are passed in the X-Auth-Token header.

Use the following URL: https://<region>.mks.selcloud.ru/v1/

Where <region> is the region of the cluster.

An example of a query for creating a new cluster:

curl 'https://ru-1.mks.selcloud.ru/v1/clusters' -X POST -d '{"cluster":{"name":"name", "region":"ru-1"}}' -H "X-Auth-Token: <token>"