Created
July 6, 2022 12:24
-
-
Save azN2/a4eeb15ad7a7f0d957ebc49518bcfe84 to your computer and use it in GitHub Desktop.
coreDNS throttling test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # kubectl logs -f -l k8s-app=kube-dns -n kube-system | |
| # kubectl edit cm/coredns -n kube-system | |
| ## log | |
| ## cache 30 | |
| # kubectl scale deployment/coredns -n kube-system --replicas=1 | |
| # kubectl get pods –watch | |
| # kubectl get pods -l k8s-app=kube-dns -n kube-system -o wide | |
| # kubectl scale deployment/coredns -n kube-system --replicas=2 | |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: dns-load | |
| namespace: default | |
| labels: | |
| app: dns-load | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: dns-load | |
| replicas: 20 | |
| template: | |
| metadata: | |
| labels: | |
| app: dns-load | |
| spec: | |
| containers: | |
| - name: dns-load | |
| image: krenken/dns-load | |
| args: | |
| - "-c" | |
| - "2048" | |
| - "-r" | |
| - "amazon.com" | |
| - "-d" | |
| - "10.100.0.10" | |
| - "-v" | |
| restartPolicy: Always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment