This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tsg-tsg-os-buildimage/helmcharts/log-collector/templates/log-collector.yaml.j2

41 lines
971 B
Django/Jinja

apiVersion: apps/v1
kind: DaemonSet
metadata:
name: log-collector
labels:
app: log-collector
namespace: tsg-os-system
spec:
selector:
matchLabels:
app: log-collector
template:
metadata:
labels:
app: log-collector
spec:
containers:
- name: log-collector
image: registry.gdnt-cloud.website/tsg/os/log-collector:{{ APP_VERSION }}
command:
- "bash"
- "-ec"
- |
/usr/local/bin/entrypoint.sh \
|| echo "Failed to start."
volumeMounts:
- name: logs
mountPath: /var/log/pods
- name: journal-volume
mountPath: /run/systemd/journal
securityContext:
privileged: true
volumes:
- name: logs
hostPath:
path: /var/log/pods
type: DirectoryOrCreate
- name: journal-volume
hostPath:
path: /run/systemd/journal
type: Directory