actionDeployment

create_deployment

Create a deployment described by a deployment manifest

Activity as code

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

Typeaction
Modulechaosk8s.deployment.actions
Namecreate_deployment
ReturnNone

Usage

JSON

{
  "name": "create-deployment",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosk8s.deployment.actions",
    "func": "create_deployment",
    "arguments": {
      "spec_path": ""
    }
  }
}

YAML

name: create-deployment
provider:
  arguments:
    spec_path: ""
  func: create_deployment
  module: chaosk8s.deployment.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
nsstring“default”YesNamespace
spec_pathstringnullNoNameLocal path to the deployment manifest

Signature

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