Delete an S3 Endpoint

Delete an S3 Endpoint from the UI

  1. From the Zenko home screen, select the Data Services tab.

  2. Click the red trash can corresponding to the endpoint you want to delete, and click Delete on the confirmation popup.

    ../../_images/endpoint_created.png
  3. Check that the deleted endpoint is no longer listed.

    ../../_images/create_endpoint.png

Delete an S3 Endpoint from the Command Line

  1. Retrieve tokens as described in Retrieve Access Tokens.

  2. Retrieve the list of all endpoints and hostnames.

    kubectl -n zenko get zenkoconfigurationoverlay -o jsonpath='{.items[-1].spec.s3API.endpoints[*]}' \
      --sort-by='{.metadata.creationTimestamp}'
    
  3. Select the hostname to delete.

    HOSTNAME="hostname to delete"
    
  4. Send a delete request to the management S3-API.

    curl -s -k -X DELETE -H "X-Authentication-Token: ${TOKEN}" "https://management.zenko.workloadplane.scality.local/api/v1/config/${INSTANCE_ID}/endpoint/${HOSTNAME}"
    
  5. Check that the endpoint has been deleted.

    kubectl -n zenko get zenkoconfigurationoverlay -o jsonpath='{range .items[-1].spec.s3API.endpoints[*]}{}{"\n"}{end}' --sort-by='{.metadata.creationTimestamp}'
    

    After a few moments, all pods will be in a running state.

    kubectl -n zenko get pods