You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-22Lines changed: 22 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Name
4
4
5
-
*k8s_dns_chaos* - enables inject DNS chaos in a Kubernetes cluster for Chaos Engineering.
5
+
_k8s_dns_chaos_ - enables inject DNS chaos in a Kubernetes cluster for Chaos Engineering.
6
6
7
7
## Description
8
8
@@ -13,17 +13,17 @@ CoreDNS running with the k8s_dns_chaos plugin can be used to do chaos tests on D
13
13
14
14
This plugin can only be used once per Server Block.
15
15
16
-
> **Note:**
16
+
> **Note:**
17
17
>
18
18
> It works with CoreDNS 7d5f5b87a4fb310d442f7ef0d52e3fead0e10d39.
19
19
20
20
## Syntax
21
21
22
-
~~~
22
+
```
23
23
k8s_dns_chaos [ZONES...]
24
-
~~~
24
+
```
25
25
26
-
The *k8s_dns_chaos* supports all options in plugin *[kubernetes](https://coredns.io/plugins/kubernetes/)*, besides, it also supports other configuration items for chaos.
26
+
The _k8s_dns_chaos_ supports all options in plugin _[kubernetes](https://coredns.io/plugins/kubernetes/)_, besides, it also supports other configuration items for chaos.
27
27
28
28
```
29
29
kubernetes [ZONES...] {
@@ -45,42 +45,42 @@ kubernetes [ZONES...] {
45
45
}
46
46
```
47
47
48
-
Only `[ZONES...]`, `chaos` and `grpcport` is different with plugin with *[kubernetes](https://coredns.io/plugins/kubernetes/)*:
48
+
Only `[ZONES...]`, `chaos` and `grpcport` is different with plugin with _[kubernetes](https://coredns.io/plugins/kubernetes/)_:
49
49
50
-
*`[ZONES...]` defines which zones of the host will be treated as internal hosts in the Kubernetes cluster.
50
+
-`[ZONES...]` defines which zones of the host will be treated as internal hosts in the Kubernetes cluster.
51
51
52
-
*`chaos`**ACTION****SCOPE****[PODS...]** set the behavior and scope of chaos.
52
+
-`chaos`**ACTION****SCOPE****[PODS...]** set the behavior and scope of chaos.
53
53
54
54
Valid value for **Action**:
55
55
56
-
*`random`: return random IP for DNS request.
57
-
*`error`: return error for DNS request.
56
+
-`random`: return random IP for DNS request.
57
+
-`error`: return error for DNS request.
58
58
59
59
Valid value for **SCOPE**:
60
-
61
-
*`inner`: chaos only works on the inner host of the Kubernetes cluster.
62
-
*`outer`: chaos only works on the outer host of the Kubernetes cluster.
63
-
*`all`: chaos works on all the hosts.
60
+
61
+
-`inner`: chaos only works on the inner host of the Kubernetes cluster.
62
+
-`outer`: chaos only works on the outer host of the Kubernetes cluster.
63
+
-`all`: chaos works on all the hosts.
64
64
65
65
**[PODS...]** defines which Pods will take effect, the format is `Namespace`.`PodName`.
66
66
67
-
*`grpcport`**PORT** sets the port of GRPC service, which is used for the hot update of the chaos rules. The default value is `9288`. The interface of the GRPC service is defined in [dns.proto](pb/dns.proto).
67
+
-`grpcport`**PORT** sets the port of GRPC service, which is used for the hot update of the chaos rules. The default value is `9288`. The interface of the GRPC service is defined in [dns.proto](pb/dns.proto).
68
68
69
69
## Examples
70
70
71
71
All DNS requests in Pod `busybox.busybox-0` will get error:
0 commit comments