8000 GitHub - okmeter/oklogging: k8s logging agent and server
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

okmeter/oklogging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oklogging

k8s logging agent and server

Agent

The agent countinue reads all log files in the specified directory and streams its to sever through TCP connection (one connection per log file).

Example k8s spec for agent deploy:

apiVersion: apps/v1beta2
kind: DaemonSet
metadata:
  name: oklogging-agent
spec:
  selector:
    matchLabels:
      name: oklogging-agent
  template:
    metadata:
      labels:
        name: oklogging-agent
    spec:
      containers:
      - image: {{docker_registry}}/oklogging-agent:0.1
        command: ["/oklogging-agent", "-server", "192.168.100.100:6600", "-offsets-dir", "/offsets", "-containers-dir", "/var/lib/docker/containers"]
        imagePullPolicy: Always
        name: okagent
        resources:
          requests:
            memory: "256Mi"
            cpu: "200m"
          limits:
            memory: "2Gi"
            cpu: "1"
        volumeMounts:
          - name: dockersocket
            mountPath: /var/run/docker.sock
            readOnly: true
          - name: containers
            mountPath: /var/lib/docker/containers
          - name: offsets
            mountPath: /offsets
      volumes:
        - hostPath:
            path: /var/lib/docker/containers/
          name: containers
        - hostPath:
            path: /var/run/docker.sock
          name: dockersocket
        - name: offsets
          emptyDir: {}

Server

The server listens TCP port, accepts connections from agents and writing received data to files. The server also can make garbage collection (remove files older than X days).

About

k8s logging agent and server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0