Network Chaos Scenarios using Krknctl

krknctl run network-chaos (optional: --<parameter>:<value> )

Can also set any global variable listed here

Scenario specific parameters:

ParameterDescriptionTypeDefault
--traffic-typeSelects the network chaos scenario type can be ingress or egressenumingress
--durationDuration in seconds - during with network chaos will be applied.number300
--label-selectorWhen NODE_NAME is not specified, a node with matching label_selector is selected for running.stringnode-role.kubernetes.io/master
--execution parallelserial: Execute each of the egress option as a single scenario(parallel) or as separate scenario(serial).enumparallel
--node-nameNode name to inject faults in case of targeting a specific node; Can set multiple node names separated by a commastring
--interfacesList of interface on which to apply the network restriction. eg.[eth0,eth1,eth2]string
--egressDictonary of values to set network latency(latency: 50ms), packet loss(loss: 0.02), bandwidth restriction(bandwidth: 100mbit) eg. {bandwidth: 100mbit}string“{bandwidth: 100mbit}”
--target-node-interfaceDictionary with key as node name(s) and value as a list of its interfaces to test. For example: {ip-10-0-216-2.us-west-2.compute.internal: ens5]}string
--network-paramslatency, loss and bandwidth are the three supported network parameters to alter for the chaos test. For example: {latency: 50ms, loss: 0.02}string
--wait-durationEnsure that it is at least about twice of test_durationnumber300

To see all available scenario options

krknctl run network-chaos --help