devmode: use minimal network timeouts for network fingerprinters in dev mode

This commit is contained in:
Seth Hoenig 2022-07-20 15:13:14 -05:00
parent 97a6346da0
commit 6f93aca63e
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@ import (
sockaddr "github.com/hashicorp/go-sockaddr"
"github.com/hashicorp/go-sockaddr/template"
client "github.com/hashicorp/nomad/client/config"
"github.com/hashicorp/nomad/client/fingerprint"
"github.com/hashicorp/nomad/helper"
"github.com/hashicorp/nomad/nomad"
"github.com/hashicorp/nomad/nomad/structs"
@ -987,6 +988,7 @@ func DevConfig(mode *devModeConfig) *Config {
FunctionDenylist: client.DefaultTemplateFunctionDenylist,
DisableSandbox: false,
}
conf.Client.Options[fingerprint.TightenNetworkTimeoutsConfig] = "true"
conf.Client.BindWildcardDefaultHostNetwork = true
conf.Client.NomadServiceDiscovery = helper.BoolToPtr(true)
conf.Telemetry.PrometheusMetrics = true