Kubernetes
create_service_endpoint
Create a service endpoint
Remove a service
Below are the details and signature of the activity Python module.
| Type | action |
| Module | chaosk8s.service.actions |
| Name | delete_service |
| Return | None |
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
| Name | Type | Default | Required | Title | Description |
|---|---|---|---|---|---|
| ns | string | ”default” | Yes | Namespace | |
| name | string | Yes | Service Name |
Signature
def delete_service(name: str,
ns: str = 'default',
secrets: Dict[str, Dict[str, str]] = None):
pass