Explicitly set etcd --snapshot-count to 10000 to match etcd 3.2 default

pull/8/head
Joe Betz 2018-03-14 12:43:25 -07:00
parent 5427f4fa9d
commit 1d2a090260
4 changed files with 7 additions and 2 deletions

View File

@ -45,6 +45,9 @@
},
{ "name": "ETCD_CREDS",
"value": "{{ etcd_creds }}"
},
{ "name": "ETCD_SNAPSHOT_COUNT",
"value": "10000"
}
],
"livenessProbe": {

View File

@ -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",
}
)

View File

@ -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) {

View File

@ -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"}