||
Skip to end of metadata
Go to start of metadata

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
DescriptionDelete a Kubernetes-CoreOS Cluster.
Command format
remove-kubernetes-cluster <CLUSTER_ID>
Parameter definition
Short optionLong optionDescriptionRequiredExample value

N/A

N/A 

Unique ID of the Kubernetes-CoreOS Cluster.Yes

kubernetes-cluster-1

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
DescriptionDelete a Kubernetes-CoreOS cluster.
Resource Path/kubernetesClusters/{kubernetesClusterId}
HTTP MethodDELETE
Request/Response Formatapplication/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}
  • By default, <USERNAME>:<PASSWORD> is admin:admin.
  • By default, <PRIVATE_PAAS_HOST> is localhost. However, if you are using a public IP, the respective IP address or domain needs to be specified.
  • By default, <PRIVATE_PAAS_HTTPS_PORT> has been set to 9443. However, if the port offset has been incremented by n, the default port value needs to be incremented by n.
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:

  1. Click Configurations on the home page.
  2. Click Kubernetes Clusters. The Kubernetes Clusters page will appear.
  3. Hover your mouse pointer over the Kubernetes Cluster that you wish to delete, for the Delete button to appear and then click Delete
  4. Click Yes to delete the Kubernetes Cluster.

 


 

  • No labels