Kubernetes
set_loss
Trigger packet loss on a Pod network link
Below are the details and signature of the activity Python module.
Type | action |
Module | chaosk8s.networking.actions |
Name | deny_all_egress |
Return | none |
Usage
JSON
{
"name": "deny-all-egress",
"type": "action",
"provider": {
"type": "python",
"module": "chaosk8s.networking.actions",
"func": "deny_all_egress"
}
}
YAML
name: deny-all-egress
provider:
func: deny_all_egress
module: chaosk8s.networking.actions
type: python
type: action
Arguments
Name | Type | Default | Required | Title | Description |
---|---|---|---|---|---|
ns | string | “default” | Yes | Namespace | |
label_selectors | string | null | No | Label Selectors | Pod label selectors to target with the action |
Convenient helper rule to deny all egress network from all pods in a namespace,
unless label_selectors
, in which case, only matching pods will be impacted.
Signature
def deny_all_egress(label_selectors: Dict[str, Any] = None,
ns: str = 'default',
secrets: Dict[str, Dict[str, str]] = None):
pass