Documentation
¶
Index ¶
Constants ¶
View Source
const ( EventPod = "pod" EventLogConf = "logConfig" EventNode = "node" EventClusterLogConf = "clusterLogConfig" EventSink = "sink" EventInterceptor = "interceptor" )
View Source
const ( ReasonFailed = "syncFailed" ReasonSuccess = "syncSuccess" MessageSyncSuccess = "Sync type %s %v success" MessageSyncFailed = "Sync type %s %v failed: %s" )
View Source
const ( GenerateConfigName = "kube-loggie.yml" GenerateTypeLoggieConfigName = "loggie-config.yml" GenerateTypeNodeConfigName = "node-config.yml" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Cluster string `yaml:"cluster" default:""` Kubeconfig string `yaml:"kubeconfig"` Master string `yaml:"master"` NodeName string `yaml:"-"` ConfigFilePath string `yaml:"-"` ContainerRuntime string `yaml:"containerRuntime"` RuntimeEndpoints []string `` /* 147-byte string literal not displayed */ RootFsCollectionEnabled bool `yaml:"rootFsCollectionEnabled"` PodLogDirPrefix string `yaml:"podLogDirPrefix" default:"/var/log/pods"` KubeletRootDir string `yaml:"kubeletRootDir" default:"/var/lib/kubelet"` Fields Fields `yaml:"fields"` // Deprecated: use k8sFields instead K8sFields map[string]string `yaml:"k8sFields"` ParseStdout bool `yaml:"parseStdout"` }
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController( config *Config, kubeClientset kubernetes.Interface, logConfigClientset logconfigClientset.Interface, podInformer corev1Informers.PodInformer, logConfigInformer logconfigInformers.LogConfigInformer, clusterLogConfigInformer logconfigInformers.ClusterLogConfigInformer, sinkInformer logconfigInformers.SinkInformer, interceptorInformer logconfigInformers.InterceptorInformer, nodeInformer corev1Informers.NodeInformer, runtime runtime.Runtime, ) *Controller
func (*Controller) Run ¶
func (c *Controller) Run(stopCh <-chan struct{}) error
Click to show internal directories.
Click to hide internal directories.