INNER CODE UNIT · Go

New

kuberhealthy/kuberhealthy · cmd/kuberhealthy/config.go:44

func New() *Config {
	ns := os.Getenv("POD_NAMESPACE")
	if ns == "" {
		ns = GetMyNamespace("kuberhealthy")
	}

	return &Config{
		ListenAddress:    ":8080",
		ListenAddressTLS: ":443",
		LogLevel:         "info",
		// Default to the in-cluster service URL
		checkReportBaseURL:     fmt.Sprintf("http://kuberhealthy.%s.svc.cluster.local", ns),
		DefaultRunInterval:     time.Minute * 10,
		TerminationGracePeriod: time.Minute * 5,
		DefaultCheckTimeout:    30 * time.Second,
		Namespace:              ns,
		MaxCompletedPodCount:   1,
		MaxErrorPodCount:       2,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…