Kubernetes
exec_in_pods
Execute a command in the specified pod's container
Below are the details and signature of the activity Python module.
Type | action |
Module | chaosk8s.service.actions |
Name | create_service_endpoint |
Return | None |
Usage
JSON
{
"name": "create-service-endpoint",
"type": "action",
"provider": {
"type": "python",
"module": "chaosk8s.service.actions",
"func": "create_service_endpoint",
"arguments": {
"spec_path": ""
}
}
}
YAML
name: create-service-endpoint
provider:
arguments:
spec_path: ''
func: create_service_endpoint
module: chaosk8s.service.actions
type: python
type: action
Arguments
Name | Type | Default | Required |
---|---|---|---|
spec_path | string | Yes | |
ns | string | “default” | No |
Creates a service endpoint described by the service config, which must be the path to the JSON or YAML representation of the service.
Signature
def create_service_endpoint(spec_path: str,
ns: str = 'default',
secrets: Dict[str, Dict[str, str]] = None):
pass