Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
c580a8b5
Commit
c580a8b5
authored
May 27, 2020
by
galal-hussein
Committed by
Darren Shepherd
Jun 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add heartbeat interval and election timeout
parent
6b5b6937
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
executor.go
pkg/daemons/executor/executor.go
+2
-0
etcd.go
pkg/etcd/etcd.go
+2
-0
No files found.
pkg/daemons/executor/executor.go
View file @
c580a8b5
...
@@ -38,6 +38,8 @@ type ETCDConfig struct {
...
@@ -38,6 +38,8 @@ type ETCDConfig struct {
ServerTrust
ServerTrust
`json:"client-transport-security"`
ServerTrust
ServerTrust
`json:"client-transport-security"`
PeerTrust
PeerTrust
`json:"peer-transport-security"`
PeerTrust
PeerTrust
`json:"peer-transport-security"`
ForceNewCluster
bool
`json:"force-new-cluster,omitempty"`
ForceNewCluster
bool
`json:"force-new-cluster,omitempty"`
HeartbeatInterval
int
`json:"heartbeat-interval"`
ElectionTimeout
int
`json:"election-timeout"`
}
}
type
ServerTrust
struct
{
type
ServerTrust
struct
{
...
...
pkg/etcd/etcd.go
View file @
c580a8b5
...
@@ -389,6 +389,8 @@ func (e *ETCD) cluster(ctx context.Context, forceNew bool, options executor.Init
...
@@ -389,6 +389,8 @@ func (e *ETCD) cluster(ctx context.Context, forceNew bool, options executor.Init
ClientCertAuth
:
true
,
ClientCertAuth
:
true
,
TrustedCAFile
:
e
.
config
.
Runtime
.
ETCDPeerCA
,
TrustedCAFile
:
e
.
config
.
Runtime
.
ETCDPeerCA
,
},
},
ElectionTimeout
:
5000
,
HeartbeatInterval
:
500
,
})
})
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment