nixos/kubernetes: Add preferredAddressTypes option to apiserver
This commit is contained in:
parent
70a1f55fe1
commit
87d1a82627
@ -184,6 +184,12 @@ in
|
|||||||
type = bool;
|
type = bool;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
preferredAddressTypes = mkOption {
|
||||||
|
description = "List of the preferred NodeAddressTypes to use for kubelet connections.";
|
||||||
|
type = nullOr str;
|
||||||
|
default = null;
|
||||||
|
};
|
||||||
|
|
||||||
runtimeConfig = mkOption {
|
runtimeConfig = mkOption {
|
||||||
description = ''
|
description = ''
|
||||||
Api runtime configuration. See
|
Api runtime configuration. See
|
||||||
@ -316,6 +322,8 @@ in
|
|||||||
"--kubelet-client-certificate=${cfg.kubeletClientCertFile}"} \
|
"--kubelet-client-certificate=${cfg.kubeletClientCertFile}"} \
|
||||||
${optionalString (cfg.kubeletClientKeyFile != null)
|
${optionalString (cfg.kubeletClientKeyFile != null)
|
||||||
"--kubelet-client-key=${cfg.kubeletClientKeyFile}"} \
|
"--kubelet-client-key=${cfg.kubeletClientKeyFile}"} \
|
||||||
|
${optionalString (cfg.preferredAddressTypes != null)
|
||||||
|
"--kubelet-preferred-address-types=${cfg.preferredAddressTypes}"} \
|
||||||
--insecure-bind-address=${cfg.insecureBindAddress} \
|
--insecure-bind-address=${cfg.insecureBindAddress} \
|
||||||
--insecure-port=${toString cfg.insecurePort} \
|
--insecure-port=${toString cfg.insecurePort} \
|
||||||
${optionalString (cfg.runtimeConfig != "")
|
${optionalString (cfg.runtimeConfig != "")
|
||||||
|
Loading…
Reference in New Issue
Block a user