mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	plugins: expand examples (#1077)
* plugins: expand examples Expand some examples and test them by annotating it with `corefile` * Can't start kubernetes * Can test pprof :(
This commit is contained in:
		| @@ -27,8 +27,8 @@ erratic { | ||||
|  | ||||
| ## Examples | ||||
|  | ||||
| ~~~ txt | ||||
| .:53 { | ||||
| ~~~ corefile | ||||
| . { | ||||
|     erratic { | ||||
|         drop 3 | ||||
|     } | ||||
| @@ -37,7 +37,7 @@ erratic { | ||||
|  | ||||
| Or even shorter if the defaults suits you. Note this only drops queries, it does not delay them. | ||||
|  | ||||
| ~~~ txt | ||||
| ~~~ corefile | ||||
| . { | ||||
|     erratic | ||||
| } | ||||
| @@ -45,7 +45,7 @@ Or even shorter if the defaults suits you. Note this only drops queries, it does | ||||
|  | ||||
| Delay 1 in 3 queries for 50ms | ||||
|  | ||||
| ~~~ txt | ||||
| ~~~ corefile | ||||
| . { | ||||
|     erratic { | ||||
|         delay 3 50ms | ||||
| @@ -55,7 +55,7 @@ Delay 1 in 3 queries for 50ms | ||||
|  | ||||
| Delay 1 in 3 and truncate 1 in 5. | ||||
|  | ||||
| ~~~ txt | ||||
| ~~~ corefile | ||||
| . { | ||||
|     erratic { | ||||
|         delay 3 5ms | ||||
| @@ -66,7 +66,7 @@ Delay 1 in 3 and truncate 1 in 5. | ||||
|  | ||||
| Drop every second query. | ||||
|  | ||||
| ~~~ txt | ||||
| ~~~ corefile | ||||
| . { | ||||
|     erratic { | ||||
|         drop 2 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user