- CPU throttling prevents app startup, not crashes - Memory OOM is the real cascading failure cause - CPU request ensures fair scheduling
52 lines
1.0 KiB
YAML
52 lines
1.0 KiB
YAML
# Promtail Helm Values
|
|
# Chart: https://grafana.github.io/helm-charts
|
|
# Log collector agent (DaemonSet on all nodes)
|
|
|
|
# Loki endpoint
|
|
config:
|
|
clients:
|
|
- url: http://loki.loki.svc.cluster.local:3100/loki/api/v1/push
|
|
|
|
# Default scrape config (use defaults)
|
|
defaultVolumes:
|
|
- name: run
|
|
hostPath:
|
|
path: /run/promtail
|
|
- name: containers
|
|
hostPath:
|
|
path: /var/lib/docker/containers
|
|
- name: pods
|
|
hostPath:
|
|
path: /var/log/pods
|
|
|
|
defaultVolumeMounts:
|
|
- name: run
|
|
mountPath: /run/promtail
|
|
- name: containers
|
|
mountPath: /var/lib/docker/containers
|
|
readOnly: true
|
|
- name: pods
|
|
mountPath: /var/log/pods
|
|
readOnly: true
|
|
|
|
# Resources
|
|
resources:
|
|
requests:
|
|
cpu: 23m
|
|
memory: 182Mi
|
|
limits:
|
|
memory: 182Mi
|
|
|
|
# Tolerations to run on all nodes including master
|
|
tolerations:
|
|
- key: node-role.kubernetes.io/master
|
|
operator: Exists
|
|
effect: NoSchedule
|
|
- key: node-role.kubernetes.io/control-plane
|
|
operator: Exists
|
|
effect: NoSchedule
|
|
|
|
# ServiceMonitor disabled
|
|
serviceMonitor:
|
|
enabled: false
|