More changes to try to fix coredns.
This commit is contained in:
@@ -51,7 +51,7 @@ in
|
||||
"--service-account-private-key-file=/.persist/keys/kube/service-accounts.key"
|
||||
# "--service-cluster-ip-range=10.197.0.0/16"
|
||||
# "--service-cluster-ip-range=2620:11f:7001:7:ffff:ffff:0ac5:0000/16"
|
||||
"--service-cluster-ip-range=10.197.0.0/16,fd00:3e42:e349::/112"
|
||||
"--service-cluster-ip-range=fd00:3e42:e349::/112,10.197.0.0/16"
|
||||
"--use-service-account-credentials=true"
|
||||
"--v=2"
|
||||
]
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
let
|
||||
# shellCommand = cmd: (lib.concatMapStringsSep " " lib.strings.escapeShellArg cmd);
|
||||
shellCommand = cmd: (builtins.concatStringsSep " " cmd);
|
||||
to_yaml_file = ((import ../../../functions/to_yaml.nix) { inherit pkgs; }).to_yaml_file;
|
||||
to_yaml_file = ((import ../../functions/to_yaml.nix) { inherit pkgs; }).to_yaml_file;
|
||||
|
||||
kubelet_config = {
|
||||
kind = "KubeletConfiguration";
|
||||
@@ -37,17 +37,16 @@ let
|
||||
swapBehavior = "NoSwap";
|
||||
};
|
||||
port = 10250;
|
||||
# resolvConf = "/run/systemd/resolve/resolv.conf";
|
||||
resolvConf = "${./files/resolv.conf}";
|
||||
resolvConf = "/run/systemd/resolve/resolv.conf";
|
||||
registerNode = true;
|
||||
runtimeRequestTimeout = "15m";
|
||||
tlsCertFile = "/.persist/keys/kube/kubelet.crt";
|
||||
tlsPrivateKeyFile = "/.persist/keys/kube/kubelet.key";
|
||||
# clusterDomain = "cluster.local";
|
||||
# clusterDNS = [
|
||||
# "10.197.0.10"
|
||||
# "fd00:3e42:e349::10"
|
||||
# ];
|
||||
clusterDomain = "cluster.local";
|
||||
clusterDNS = [
|
||||
"10.197.0.10"
|
||||
"fd00:3e42:e349::10"
|
||||
];
|
||||
};
|
||||
kubelet_config_file = (to_yaml_file "kubelet-config.yaml" kubelet_config);
|
||||
in
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
nameserver 127.0.0.53
|
||||
Reference in New Issue
Block a user