Documentation ¶
Index ¶
Constants ¶
View Source
const ( ResyncPeriod = 1 * time.Minute Interval = 5 KubernetesAPIQPS = 80.0 KubernetesAPIBurst = 60 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PodMonitor ¶
type PodMonitor struct {
// contains filtered or unexported fields
}
func NewPodMonitor ¶
func NewPodMonitor(namespaces []string) (*PodMonitor, error)
func (*PodMonitor) GetPodNamespaceByIP ¶
func (pm *PodMonitor) GetPodNamespaceByIP(ip string) string
func (*PodMonitor) GetPodsIps ¶
func (pm *PodMonitor) GetPodsIps() []string
func (*PodMonitor) IsMonitoredNamespace ¶
func (pm *PodMonitor) IsMonitoredNamespace(ns string) bool
func (*PodMonitor) Start ¶
func (pm *PodMonitor) Start(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.