mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Explicitly set etcd --snapshot-count to 10000 to match etcd 3.2 default
This commit is contained in:
parent
5427f4fa9d
commit
1d2a090260
@ -45,6 +45,9 @@
|
|||||||
},
|
},
|
||||||
{ "name": "ETCD_CREDS",
|
{ "name": "ETCD_CREDS",
|
||||||
"value": "{{ etcd_creds }}"
|
"value": "{{ etcd_creds }}"
|
||||||
|
},
|
||||||
|
{ "name": "ETCD_SNAPSHOT_COUNT",
|
||||||
|
"value": "10000"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"livenessProbe": {
|
"livenessProbe": {
|
||||||
|
@ -298,7 +298,7 @@ var (
|
|||||||
SupportedEtcdVersion = map[uint8]string{
|
SupportedEtcdVersion = map[uint8]string{
|
||||||
9: "3.1.12",
|
9: "3.1.12",
|
||||||
10: "3.1.12",
|
10: "3.1.12",
|
||||||
11: "3.1.12",
|
11: "3.2.18",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -18,9 +18,10 @@ package constants
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"k8s.io/kubernetes/pkg/util/version"
|
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"k8s.io/kubernetes/pkg/util/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetStaticPodDirectory(t *testing.T) {
|
func TestGetStaticPodDirectory(t *testing.T) {
|
||||||
|
@ -88,6 +88,7 @@ func getEtcdCommand(cfg *kubeadmapi.MasterConfiguration) []string {
|
|||||||
"peer-key-file": filepath.Join(cfg.CertificatesDir, kubeadmconstants.EtcdPeerKeyName),
|
"peer-key-file": filepath.Join(cfg.CertificatesDir, kubeadmconstants.EtcdPeerKeyName),
|
||||||
"peer-trusted-ca-file": filepath.Join(cfg.CertificatesDir, kubeadmconstants.EtcdCACertName),
|
"peer-trusted-ca-file": filepath.Join(cfg.CertificatesDir, kubeadmconstants.EtcdCACertName),
|
||||||
"peer-client-cert-auth": "true",
|
"peer-client-cert-auth": "true",
|
||||||
|
"snapshot-count": "10000",
|
||||||
}
|
}
|
||||||
|
|
||||||
command := []string{"etcd"}
|
command := []string{"etcd"}
|
||||||
|
Loading…
Reference in New Issue
Block a user