···
k8s-dns-kube-dns = pkgs.dockerTools.pullImage {
9
-
imageName = "gcr.io/google_containers/k8s-dns-kube-dns-amd64";
9
+
imageName = "k8s.gcr.io/k8s-dns-kube-dns-amd64";
10
+
imageDigest = "sha256:b99fc3eee2a9f052f7eb4cc00f15eb12fc405fa41019baa2d6b79847ae7284a8";
11
-
sha256 = "0q97xfqrigrfjl2a9cxl5in619py0zv44gch09jm8gqjkxl80imp";
12
-
imageDigest = "sha256:40790881bbe9ef4ae4ff7fe8b892498eecb7fe6dcc22661402f271e03f7de344";
12
+
sha256 = "0x583znk9smqn0fix7ld8sm5jgaxhqhx3fq97b1wkqm7iwhvl3pj";
k8s-dns-dnsmasq-nanny = pkgs.dockerTools.pullImage {
16
-
imageName = "gcr.io/google_containers/k8s-dns-dnsmasq-nanny-amd64";
16
+
imageName = "k8s.gcr.io/k8s-dns-dnsmasq-nanny-amd64";
17
+
imageDigest = "sha256:bbb2a290a568125b3b996028958eb773f33b5b87a6b37bf38a28f8b62dddb3c8";
18
-
sha256 = "051w5ca4qb88mwva4hbnh9xzlsvv7k1mbk3wz50lmig2mqrqqx6c";
19
-
imageDigest = "sha256:aeeb994acbc505eabc7415187cd9edb38cbb5364dc1c2fc748154576464b3dc2";
19
+
sha256 = "1fihml7s2mfwgac51cbqpylkwbivc8nyhgi4vb820s83zvl8a6y1";
k8s-dns-sidecar = pkgs.dockerTools.pullImage {
23
-
imageName = "gcr.io/google_containers/k8s-dns-sidecar-amd64";
23
+
imageName = "k8s.gcr.io/k8s-dns-sidecar-amd64";
24
+
imageDigest = "sha256:4f1ab957f87b94a5ec1edc26fae50da2175461f00afecf68940c4aa079bd08a4";
25
-
sha256 = "1z0d129bcm8i2cqq36x5jhnrv9hirj8c6kjrmdav8vgf7py78vsm";
26
-
imageDigest = "sha256:97074c951046e37d3cbb98b82ae85ed15704a290cce66a8314e7f846404edde9";
26
+
sha256 = "08l1bv5jgrhvjzpqpbinrkgvv52snc4fzyd8ya9v18ns2klyz7m0";
cfg = config.services.kubernetes.addons.dns;
···
services.kubernetes.addonManager.addons = {
62
-
apiVersion = "apps/v1beta1";
62
+
apiVersion = "extensions/v1beta1";
···
labels.k8s-app = "kube-dns";
87
+
priorityClassName = "system-cluster-critical";
91
+
image = "k8s.gcr.io/k8s-dns-kube-dns-amd64:${version}";
93
+
limits.memory = "170Mi";
100
+
failureThreshold = 5;
102
+
path = "/healthcheck/kubedns";
106
+
initialDelaySeconds = 60;
107
+
successThreshold = 1;
108
+
timeoutSeconds = 5;
112
+
path = "/readiness";
116
+
initialDelaySeconds = 3;
117
+
timeoutSeconds = 5;
"--domain=${cfg.clusterDomain}"
···
102
-
image = "gcr.io/google_containers/k8s-dns-kube-dns-amd64:${version}";
104
-
failureThreshold = 5;
106
-
path = "/healthcheck/kubedns";
110
-
initialDelaySeconds = 60;
111
-
successThreshold = 1;
112
-
timeoutSeconds = 5;
···
133
-
path = "/readiness";
137
-
initialDelaySeconds = 3;
138
-
timeoutSeconds = 5;
141
-
limits.memory = "170Mi";
mountPath = "/kube-dns-config";
···
157
+
image = "k8s.gcr.io/k8s-dns-dnsmasq-nanny-amd64:${version}";
160
+
path = "/healthcheck/dnsmasq";
164
+
initialDelaySeconds = 60;
165
+
timeoutSeconds = 5;
166
+
successThreshold = 1;
167
+
failureThreshold = 5;
···
"--server=/in-addr.arpa/127.0.0.1#10053"
"--server=/ip6.arpa/127.0.0.1#10053"
168
-
image = "gcr.io/google_containers/k8s-dns-dnsmasq-nanny-amd64:${version}";
170
-
failureThreshold = 5;
172
-
path = "/healthcheck/dnsmasq";
176
-
initialDelaySeconds = 60;
177
-
successThreshold = 1;
178
-
timeoutSeconds = 5;
···
208
-
image = "gcr.io/google_containers/k8s-dns-sidecar-amd64:${version}";
212
-
"--probe=kubedns,127.0.0.1:10053,kubernetes.default.svc.${cfg.clusterDomain},5,A"
213
-
"--probe=dnsmasq,127.0.0.1:53,kubernetes.default.svc.${cfg.clusterDomain},5,A"
209
+
image = "k8s.gcr.io/k8s-dns-sidecar-amd64:${version}";
216
-
failureThreshold = 5;
initialDelaySeconds = 60;
217
+
timeoutSeconds = 5;
224
-
timeoutSeconds = 5;
219
+
failureThreshold = 5;
224
+
"--probe=kubedns,127.0.0.1:10053,kubernetes.default.svc.${cfg.clusterDomain},5,A"
225
+
"--probe=dnsmasq,127.0.0.1:53,kubernetes.default.svc.${cfg.clusterDomain},5,A"