Skip to content

Latest commit

 

History

History
44 lines (42 loc) · 1.11 KB

README.md

File metadata and controls

44 lines (42 loc) · 1.11 KB

Kubernetes Log Linker

Workaround for kubernetes/kubernetes#52172.

Based on code from @joelittlejohn and @cjyar

Deploying

---
kind: DaemonSet
apiVersion: apps/v1
metadata:
  name: log-linker
  namespace: kube-system
  labels:
    app: log-linker
spec:
  selector:
    matchLabels:
      app: log-linker
  template:
    metadata:
      labels:
        app: log-linker
    spec:
      tolerations:
        - key: node-role.kubernetes.io/master
          operator: Exists
          effect: NoSchedule
      containers:
      - name: log-linker
        image: neighborhoods/kubernetes-log-linker:1.0.0
        volumeMounts:
        - name: var-lib-docker
          mountPath: /var/lib/docker
        - name: var-log
          mountPath: /var/log
      volumes:
      - name: var-log
        hostPath:
          path: /var/log
      - name: var-lib-docker
        hostPath:
          path: /var/lib/docker