March 2017
Beginner to intermediate
925 pages
18h 11m
English
The Kubernetes administrator can control the Kubernetes cluster via the kubectl command; it supports local and remote execution. However, some of the administrators or operators may need to integrate a program to control the Kubernetes cluster.
Kubernetes has a RESTful API that allows controlling the Kubernetes cluster via API similar to the kubectl command.
The RESTful API is open by default when we launch the API Server; you may access the RESTful API via the curl command, as follows:
//assume API server is running at localhost port number 8080 # curl http://localhost:8080/api { "kind": "APIVersions", "versions": [ "v1" ] }
Let's create a replication controller using the following JSON format: ...
Read now
Unlock full access