Monitoring/manifests/loki/deployment.yaml

38 lines
871 B
YAML
Raw Normal View History

apiVersion: apps/v1
kind: Deployment
metadata:
name: loki
namespace: monitoring
spec:
selector:
matchLabels:
app: loki
template:
metadata:
labels:
app: loki
spec:
securityContext:
runAsNonRoot: true
fsGroup: 2000
runAsUser: 1000
containers:
- name: loki
image: grafana/loki:2.8.2
imagePullPolicy: IfNotPresent
ports:
- containerPort: 3100
volumeMounts:
- name: loki-pv
mountPath: /loki
- name: loki-config-volume
mountPath: /mnt/config/loki-config.yaml
subPath: loki-config.yaml
volumes:
- name: loki-pv
persistentVolumeClaim:
claimName: loki-pvc
- name: loki-config-volume
configMap:
name: loki-config