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