actionStatefulset

create_statefulset

Create a statefulset

Activity as code

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

Typeaction
Modulechaosk8s.statefulset.actions
Namecreate_statefulset
ReturnNone

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

NameTypeDefaultRequiredTitleDescription
nsstring“default”NoNamespace
spec_pathstringYesSpecificationLocal path to a Statefulset JSON/YAML manifest

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