mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #68334 from BoCloud/master
Apply user configurations for local etcd
This commit is contained in:
commit
ef62882f62
@ -184,6 +184,13 @@ func getAPIServerCommand(cfg *kubeadmapi.InitConfiguration) []string {
|
|||||||
defaultArguments["etcd-cafile"] = filepath.Join(cfg.CertificatesDir, kubeadmconstants.EtcdCACertName)
|
defaultArguments["etcd-cafile"] = filepath.Join(cfg.CertificatesDir, kubeadmconstants.EtcdCACertName)
|
||||||
defaultArguments["etcd-certfile"] = filepath.Join(cfg.CertificatesDir, kubeadmconstants.APIServerEtcdClientCertName)
|
defaultArguments["etcd-certfile"] = filepath.Join(cfg.CertificatesDir, kubeadmconstants.APIServerEtcdClientCertName)
|
||||||
defaultArguments["etcd-keyfile"] = filepath.Join(cfg.CertificatesDir, kubeadmconstants.APIServerEtcdClientKeyName)
|
defaultArguments["etcd-keyfile"] = filepath.Join(cfg.CertificatesDir, kubeadmconstants.APIServerEtcdClientKeyName)
|
||||||
|
|
||||||
|
// Apply user configurations for local etcd
|
||||||
|
if cfg.Etcd.Local != nil {
|
||||||
|
if value, ok := cfg.Etcd.Local.ExtraArgs["listen-client-urls"]; ok {
|
||||||
|
defaultArguments["etcd-servers"] = value
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if features.Enabled(cfg.FeatureGates, features.HighAvailability) {
|
if features.Enabled(cfg.FeatureGates, features.HighAvailability) {
|
||||||
|
Loading…
Reference in New Issue
Block a user