29 lines
627 B
YAML
29 lines
627 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: loki
|
||
|
namespace: monitoring
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: loki
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: loki
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: loki
|
||
|
image: grafana/loki:2.8.2
|
||
|
imagePullPolicy: IfNotPresent
|
||
|
ports:
|
||
|
- containerPort: 3100
|
||
|
volumeMounts:
|
||
|
- name: loki-config-volume
|
||
|
mountPath: /mnt/config/loki-config.yaml
|
||
|
subPath: loki-config.yaml
|
||
|
volumes:
|
||
|
- name: loki-config-volume
|
||
|
configMap:
|
||
|
name: loki-config
|