actionNetwork

allow_dns_access

Allow DNS access from pods

Activity as code

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

Typeaction
Modulechaosk8s.networking.actions
Nameallow_dns_access
Returnnone

Usage

JSON

{
  "name": "allow-dns-access",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosk8s.networking.actions",
    "func": "allow_dns_access"
  }
}

YAML

name: allow-dns-access
provider:
  func: allow_dns_access
  module: chaosk8s.networking.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
nsstring“default”YesNamespace
label_selectorsmappingnullNoLabel SelectorsPod label selectors to target with the action

Convenient helper rule to DNS access from all pods in a namespace, unless label_selectors is set, in which case, only matching pods will be impacted.

Signature

def allow_dns_access(label_selectors: Dict[str, Any] = None,
                     ns: str = 'default',
                     secrets: Dict[str, Dict[str, str]] = None):
    pass