Created
June 3, 2020 12:26
-
-
Save adnanrahic/c125f9f812e7b5c52ef8c712bc003187 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: st-logagent | |
spec: | |
selector: | |
matchLabels: | |
app: st-logagent | |
template: | |
metadata: | |
labels: | |
app: st-logagent | |
spec: | |
#nodeSelector: {} | |
hostNetwork: true | |
dnsPolicy: "ClusterFirst" | |
restartPolicy: "Always" | |
containers: | |
- name: st-logagent | |
image: sematext/logagent:sc-8362-3 | |
imagePullPolicy: "Always" | |
env: | |
- name: LOG_GLOB | |
value: "/var/log/containers/*.log;/var/log/*.log" | |
- name: LOGAGENT_ARGS | |
value: "--k8sContainerd" | |
- name: LOGS_TOKEN | |
value: "YOUR_SEMATEXT_LOGS_TOKEN" | |
- name: REGION | |
value: "US" | |
volumeMounts: | |
- mountPath: /var/log | |
name: var-log | |
- mountPath: /var/data/kubeletlogs | |
name: kubeletlogs | |
- mountPath: /etc/localtime | |
name: localtime | |
securityContext: | |
privileged: true | |
volumes: | |
- name: var-log | |
hostPath: | |
path: /var/log | |
- name: kubeletlogs | |
hostPath: | |
path: /var/data/kubeletlogs | |
- name: localtime | |
hostPath: | |
path: /etc/localtime |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment