Merge pull request #57523 from mayflower/kube-apiserver-preferred-address-types
nixos/kubernetes: Add preferredAddressTypes option to apiserver
This commit is contained in:
commit
a1dcac5104
@ -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;
|
||||||
|
};
|
||||||
|
|
||||||
proxyClientCertFile = mkOption {
|
proxyClientCertFile = mkOption {
|
||||||
description = "Client certificate to use for connections to proxy.";
|
description = "Client certificate to use for connections to proxy.";
|
||||||
default = null;
|
default = null;
|
||||||
@ -349,6 +355,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}"} \
|
||||||
${optionalString (cfg.proxyClientCertFile != null)
|
${optionalString (cfg.proxyClientCertFile != null)
|
||||||
"--proxy-client-cert-file=${cfg.proxyClientCertFile}"} \
|
"--proxy-client-cert-file=${cfg.proxyClientCertFile}"} \
|
||||||
${optionalString (cfg.proxyClientKeyFile != null)
|
${optionalString (cfg.proxyClientKeyFile != null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user