Monitoring/manifests/loki/deployment.yaml

39 lines
896 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
2023-07-29 07:39:51 +00:00
name: http
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