This doc shows how to use the DNS Horizontal Autoscaling featrure in a Kubernetes cluster.
This file contains 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
18:13:04.785307 IP 157.240.254.12.443 > 10.251.112.119.33086: Flags [P.], seq 3363:4490, ack 3025, win 280, options [nop,nop,TS val 1737171291 ecr 3179875798], length 1127 | |
18:13:04.785339 IP 157.240.254.12.443 > 10.196.32.72.33086: Flags [P.], seq 3363:4490, ack 3025, win 280, options [nop,nop,TS val 1737171291 ecr 3179875798], length 1127 | |
18:13:04.785357 IP 10.196.32.72.33086 > 157.240.254.12.443: Flags [.], ack 4490, win 83, options [nop,nop,TS val 3179876134 ecr 1737171291], length 0 | |
18:13:04.785369 IP 10.251.112.119.33086 > 157.240.254.12.443: Flags [.], ack 4490, win 83, options [nop,nop,TS val 3179876134 ecr 1737171291], length 0 | |
18:13:04.785882 IP 10.196.32.72.33086 > 157.240.254.12.443: Flags [P.], seq 3025:3049, ack 4490, win 83, options [nop,nop,TS val 3179876135 ecr 1737171291], length 24 | |
18:13:04.785910 IP 10.251.112.119.33086 > 157.240.254.12.443: Flags [P.], seq 3025:3049, ack 4490, win 83, options [nop,nop,TS val 3179876135 ecr 1737171291], length 24 | |
18:13:04.785933 IP 10.196.32.72.33086 > 157. |
This file contains 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
I0607 16:33:15.391267 10 gce_loadbalancer.go:137] EnsureLoadBalancer(bootstrap-e2e, services-6097, net-tiers-svc, a8d573ae414fd4ec099dff43893319d3, us-west1): ensure EXTERNAL loadbalancer | |
I0607 16:33:15.573965 10 gen.go:8979] GCEForwardingRules.Get(context.Background.WithDeadline(2021-06-07 17:33:15.391275173 +0000 UTC m=+4774.123372976 [59m59.817298447s]), Key{"a8d573ae414fd4ec099dff43893319d3", region: "us-west1"}) = <nil>, googleapi: Error 404: The resource 'projects/k8s-jkns-gci-gce-ingress-1-6/regions/us-west1/forwardingRules/a8d573ae414fd4ec099dff43893319d3' was not found, notFound | |
I0607 16:33:15.752599 10 gce_loadbalancer_external.go:74] ensureExternalLoadBalancer(a8d573ae414fd4ec099dff43893319d3(services-6097/net-tiers-svc), us-west1, , [TCP/80], [bootstrap-e2e-master bootstrap-e2e-minion-group-5p5s bootstrap-e2e-minion-group-gp1b bootstrap-e2e-minion-group-rrsg], map[cloud.google.com/network-tier:Standard]) | |
I0607 16:33:15.752620 10 gce_loadbalancer_external.go:83] ensureExternalLo |
This file contains 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 get deploy,rs,pods --namespace=kube-system -l k8s-app=kube-dns-autoscaler -o yaml | |
apiVersion: v1 | |
items: | |
- apiVersion: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
annotations: | |
deployment.kubernetes.io/revision: "1" | |
kubectl.kubernetes.io/last-applied-configuration: | | |
{"apiVersion":"extensions/v1beta1","kind":"Deployment","metadata":{"annotations":{},"labels":{"addonmanager.kubernetes.io/mode":"Reconcile","k8s-app":"kube-dns-autoscaler","kubernetes.io/clus |
This file contains 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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
annotations: | |
# deployment.kubernetes.io/revision: "1" | |
kubectl.kubernetes.io/last-applied-configuration: '{"kind":"Deployment","apiVersion":"extensions/v1beta1","metadata":{"name":"kube-dns","namespace":"kube-system","creationTimestamp":null,"labels":{"k8s-app":"kube-dns","kubernetes.io/cluster-service":"true"}},"spec":{"selector":{"matchLabels":{"k8s-app":"kube-dns"}},"template":{"metadata":{"creationTimestamp":null,"labels":{"k8s-app":"kube-dns"},"annotations":{"scheduler.alpha.kubernetes.io/critical-pod":"","scheduler.alpha.kubernetes.io/tolerations":"[{\"key\":\"CriticalAddonsOnly\", | |
\"operator\":\"Exists\"}]"}},"spec":{"containers":[{"name":"kubedns","image":"gcr.io/google_containers/kubedns-amd64:1.9","args":["--domain=cluster.local.","--dns-port=10053","--config-map=kube-dns","--v=0"],"ports":[{"name":"dns-local","containerPort":10053,"protocol":"UDP"},{"name":"dns-tcp-local","containerPort":10053,"protocol":"TCP"},{"name":"metric |
This file contains 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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
type Worker interface { | |
Do(string) bool | |
} |