Files
gatus/k8s/config.go
T

33 lines
931 B
Go
Raw Normal View History

package k8s
import "github.com/TwinProduction/gatus/core"
2020-11-11 14:46:19 -05:00
// Config for Kubernetes auto-discovery
type Config struct {
2020-11-11 14:46:19 -05:00
// AutoDiscover to discover services to monitor
AutoDiscover bool `yaml:"auto-discover"`
2020-11-11 14:46:19 -05:00
// ServiceTemplate Template for auto disocovered services
ServiceTemplate core.Service `yaml:"service-template"`
2020-11-11 14:46:19 -05:00
// ExcludeSuffix Ignore services with this suffix
ExcludeSuffix []string `yaml:"isExcluded-suffix"`
2020-11-11 14:46:19 -05:00
// ClusterMode to authenticate with kubernetes
ClusterMode string `yaml:"cluster-mode"`
2020-11-11 14:46:19 -05:00
// Namespaces from which to discover services
Namespaces []NamespaceConfig `yaml:"namespaces"`
}
2020-11-11 14:46:19 -05:00
// NamespaceConfig level config
type NamespaceConfig struct {
// Name of namespace
Name string `yaml:"name"`
2020-11-11 14:46:19 -05:00
// ServiceSuffix to append to service name
ServiceSuffix string `yaml:"service-suffix"`
2020-11-11 14:46:19 -05:00
// HealthAPI URI to append to service to reach health check API
HealthAPI string `yaml:"health-api"`
}