mirror of https://github.com/k3s-io/k3s
Explicitly set etcd --snapshot-count to 10000 to match etcd 3.2 default
parent
5427f4fa9d
commit
1d2a090260
|
@ -45,6 +45,9 @@
|
|||
},
|
||||
{ "name": "ETCD_CREDS",
|
||||
"value": "{{ etcd_creds }}"
|
||||
},
|
||||
{ "name": "ETCD_SNAPSHOT_COUNT",
|
||||
"value": "10000"
|
||||
}
|
||||
],
|
||||
"livenessProbe": {
|
||||
|
|
|
@ -298,7 +298,7 @@ var (
|
|||
SupportedEtcdVersion = map[uint8]string{
|
||||
9: "3.1.12",
|
||||
10: "3.1.12",
|
||||
11: "3.1.12",
|
||||
11: "3.2.18",
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
@ -18,9 +18,10 @@ package constants
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"k8s.io/kubernetes/pkg/util/version"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"k8s.io/kubernetes/pkg/util/version"
|
||||
)
|
||||
|
||||
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-trusted-ca-file": filepath.Join(cfg.CertificatesDir, kubeadmconstants.EtcdCACertName),
|
||||
"peer-client-cert-auth": "true",
|
||||
"snapshot-count": "10000",
|
||||
}
|
||||
|
||||
command := []string{"etcd"}
|
||||
|
|
Loading…
Reference in New Issue