Skip to content

Commit 07dc8bd

Browse files
committed
fix: reset coredns to 7d5f5
Signed-off-by: Yue Yang <[email protected]>
1 parent 6bc439e commit 07dc8bd

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
FROM golang:1.19 AS build-env
44
ENV GO111MODULE on
55
WORKDIR /
6-
RUN git clone --depth 1 --branch v1.7.1 https://github.com/coredns/coredns
6+
RUN git clone https://github.com/coredns/coredns && git checkout 7d5f5b87a4fb310d442f7ef0d52e3fead0e10d39
77
COPY . /k8s_dns_chaos
88
# RUN ln -s /k8s_dns_chaos /coredns/plugin/k8s_dns_chaos
99
RUN echo "k8s_dns_chaos:github.com/chaos-mesh/k8s_dns_chaos" >> /coredns/plugin.cfg

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Name
44

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.
66

77
## Description
88

@@ -13,17 +13,17 @@ CoreDNS running with the k8s_dns_chaos plugin can be used to do chaos tests on D
1313

1414
This plugin can only be used once per Server Block.
1515

16-
> **Note:**
16+
> **Note:**
1717
>
1818
> It works with CoreDNS 7d5f5b87a4fb310d442f7ef0d52e3fead0e10d39.
1919
2020
## Syntax
2121

22-
~~~
22+
```
2323
k8s_dns_chaos [ZONES...]
24-
~~~
24+
```
2525

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.
2727

2828
```
2929
kubernetes [ZONES...] {
@@ -45,42 +45,42 @@ kubernetes [ZONES...] {
4545
}
4646
```
4747

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/)_:
4949

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.
5151

52-
* `chaos` **ACTION** **SCOPE** **[PODS...]** set the behavior and scope of chaos.
52+
- `chaos` **ACTION** **SCOPE** **[PODS...]** set the behavior and scope of chaos.
5353

5454
Valid value for **Action**:
5555

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.
5858

5959
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.
6464

6565
**[PODS...]** defines which Pods will take effect, the format is `Namespace`.`PodName`.
6666

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).
6868

6969
## Examples
7070

7171
All DNS requests in Pod `busybox.busybox-0` will get error:
7272

7373
```yaml
74-
k8s_dns_chaos cluster.local in-addr.arpa ip6.arpa {
75-
pods insecure
76-
fallthrough in-addr.arpa ip6.arpa
77-
ttl 30
78-
chaos error all busybox.busybox-0
79-
}
74+
k8s_dns_chaos cluster.local in-addr.arpa ip6.arpa {
75+
pods insecure
76+
fallthrough in-addr.arpa ip6.arpa
77+
ttl 30
78+
chaos error all busybox.busybox-0
79+
}
8080
```
8181

8282
The shell command below will execute failed:
83-
83+
8484
```shell
8585
kubectl exec busybox-0 -it -n busybox -- ping -c 1 google.com
8686
ping: bad address 'google.com'

0 commit comments

Comments
 (0)