actionService

delete_service

Remove a service

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaosk8s.service.actions
Namedelete_service
ReturnNone

Usage

JSON

{
  "name": "terminate-pods",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosk8s.pod.actions",
    "func": "terminate_pods"
  }
}

YAML

name: terminate-pods
provider:
  func: terminate_pods
  module: chaosk8s.pod.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
nsstring“default”YesNamespace
namestringYesService Name

Signature

def delete_service(name: str,
                   ns: str = 'default',
                   secrets: Dict[str, Dict[str, str]] = None):
    pass