Skip to content

k8s delete-service

delete service

Description

deletes k8s service

Synopsis

k8s delete-service
    [--site <site>]
    [--cluster <cluster>]
    [--namespace|-n <namespace>]
    <name>

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: optional

cluster - (string)

     Cluster where this command will be executed
     Example: --cluster "in-cluster"
     Default: in-cluster      Attributes: optional

namespace - (string)

     Kubernetes namespace
     Example: --namespace "namespace-1"
     Default: default      Attributes: optional

name - (string)

     Name of the service to be deleted
     Example: "name-1"
     Default: _None_      Attributes: required

Examples

Input:

! k8s delete-service "php-apache"
Output:
service php-apache deleted

Access Control

To use this command, you need access to the following:

Field Value
Action "delete"
Service Type "k8s"
Service Instance cluster
Namespace namespace
Object Type "service"
Object ID name

Please see Access Control for details.