You can remove a Kubernetes-CoreOS cluster using the CLI tool, REST API or the PPaaS Console as shown below:
Removing a Kubernetes-CoreOS group via the CLI
Overview
CLI command | remove-kubernetes-cluster |
Description | Delete a Kubernetes-CoreOS Cluster. |
Command format | remove-kubernetes-cluster <CLUSTER_ID> |
Parameter definition
Short option | Long option | Description | Required | Example value |
---|---|---|---|---|
N/A | N/A | Unique ID of the Kubernetes-CoreOS Cluster. | Yes |
|
Example
Delete the Kubernetes-CoreOS Cluster with the cluster ID: kubernetes-cluster-1
.
remove-kubernetes-cluster kubernetes-cluster-1
Sample output
Kubernetes Cluster removed successfully: [kub-cluster] kubernetes-cluster-1
Removing a Kubernetes-CoreOS group via the REST API
Overview
Description | Delete a Kubernetes-CoreOS cluster. |
Resource Path | /kubernetesClusters/{kubernetesClusterId} |
HTTP Method | DELETE |
Request/Response Format | application/json |
Command format | curl -X DELETE -H "Content-Type: application/json" -k -v -u <USERNAME>:<PASSWORD> https://<PRIVATE_PAAS_HOST>:<PRIVATE_PAAS_HTTPS_PORT>/api/kubernetesClusters/{kubernetesClusterId}
|
Example
Delete the Kubernetes-CoreOS Cluster with the cluster ID: kubernetes-cluster-1
.
curl -X DELETE -H "Content-Type: application:json" -k -v -u admin:admin https://localhost:9443/api/kubernetesClusters/kubernetes-cluster-1
Sample output
> DELETE /api/kubernetesClusters/kubernetes-cluster-1 HTTP/1.1 > Host: localhost:9443 > Authorization: Basic YWRtaW46YWRtaW4= > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application:json > < HTTP/1.1 200 OK < Date: Thu, 01 Oct 2015 09:58:45 GMT < Content-Type: application/json < Transfer-Encoding: chunked < Server: WSO2 Carbon Server < * Connection #0 to host localhost left intact {"status":"success","message":"Kubernetes Cluster removed successfully: [kub-cluster] kubernetes-cluster-1"}
Following are the HTTP status codes you will come across while removing a Kubernetes-CoreOS group:
HTTP status code | 200, 404, 500 See the descriptions of the HTTP status codes here. |
Removing a Kubernetes-CoreOS group via the PPaaS Console
Follow the instructions below to delete a Kubernetes-CoreOS Cluster:
- Click Configurations on the home page.
- Click Kubernetes Clusters. The Kubernetes Clusters page will appear.
- Hover your mouse pointer over the Kubernetes Cluster that you wish to delete, for the Delete button to appear and then click Delete.
- Click Yes to delete the Kubernetes Cluster.
Overview
Content Tools
Activity