Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzhen21 committed Aug 20, 2024
1 parent f78e66a commit 24562d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions edge/cmd/edgemarks/hollow_edgecore.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ func EdgeCoreConfig(config *hollowEdgeNodeConfig) *v1alpha2.EdgeCoreConfig {
edgeCoreConfig.Modules.EdgeHub.Token = config.Token
edgeCoreConfig.Modules.EdgeHub.HTTPServer = config.HTTPServer
edgeCoreConfig.Modules.EdgeHub.WebSocket.Server = config.WebsocketServer
edgeCoreConfig.Modules.EdgeHub.Heartbeat = 60

edgeCoreConfig.Modules.Edged.TailoredKubeletConfig.ReadOnlyPort = 0
edgeCoreConfig.Modules.Edged.HostnameOverride = config.NodeName
Expand All @@ -160,9 +161,9 @@ func EdgeCoreConfig(config *hollowEdgeNodeConfig) *v1alpha2.EdgeCoreConfig {
}
edgeCoreConfig.Modules.Edged.TailoredKubeletConfig.RegisterWithTaints = append(edgeCoreConfig.Modules.Edged.TailoredKubeletConfig.RegisterWithTaints, taint)

edgeCoreConfig.Modules.Edged.TailoredKubeletConfig.NodeLeaseDurationSeconds = 120
edgeCoreConfig.Modules.Edged.TailoredKubeletConfig.NodeLeaseDurationSeconds = 240
edgeCoreConfig.Modules.Edged.TailoredKubeletConfig.SyncFrequency = metav1.Duration{
Duration: time.Minute * 2,
Duration: time.Minute * 5,
}

edgeCoreConfig.Modules.DeviceTwin.Enable = falseFlag
Expand Down

0 comments on commit 24562d8

Please sign in to comment.