Skip to content

Commit

Permalink
loki
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpbennett committed Jul 15, 2024
1 parent bb7a6e1 commit 6bd9466
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 4 additions & 0 deletions kubernetes/apps/monitoring/loki/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ spec:
mountPath: /loki
args:
- -config.file=/etc/loki/loki-local-config.yaml
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
volumes:
- name: loki-config
configMap:
Expand Down
3 changes: 2 additions & 1 deletion kubernetes/apps/monitoring/loki/persistant-vol-claim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ spec:
- ReadWriteOnce
resources:
requests:
storage: 10Gi # Should match the PV capacity
storage: 10Gi
storageClassName: manual
9 changes: 7 additions & 2 deletions kubernetes/apps/monitoring/loki/persistant-vol.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@ apiVersion: v1
kind: PersistentVolume
metadata:
name: loki-pv
namespace: monitoring
spec:
capacity:
storage: 10Gi # Adjust based on your needs
storage: 10Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
storageClassName: manual
hostPath:
path: /mnt/storage/loki
type: DirectoryOrCreate

---

0 comments on commit 6bd9466

Please sign in to comment.