Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/kustomize/v1/base/distributor-deploy.yaml

62 lines
1.5 KiB

---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/component: distributor
name: loki-distributor
spec:
replicas: 3
selector:
matchLabels:
app.kubernetes.io/component: distributor
loki.grafana.com/gossip: "true"
template:
metadata:
labels:
app.kubernetes.io/component: distributor
loki.grafana.com/gossip: "true"
spec:
containers:
- name: loki-distributor
image: loki
args:
- -target=distributor
- -config.file=/etc/loki/config/loki-config.yaml
- -log.level=error
env: []
ports:
- containerPort: 3100
name: metrics
- containerPort: 9095
name: grpc
- containerPort: 7946
name: gossip-ring
livenessProbe:
timeoutSeconds: 5
failureThreshold: 10
httpGet:
path: /metrics
port: 3100
scheme: HTTP
periodSeconds: 30
readinessProbe:
httpGet:
path: /ready
port: 3100
scheme: HTTP
initialDelaySeconds: 15
timeoutSeconds: 5
volumeMounts:
- mountPath: /etc/loki/config/
name: loki-config
readOnly: false
- mountPath: /tmp/loki
name: storage
readOnly: false
volumes:
- configMap:
name: loki-config
name: loki-config
- emptyDir: {}
name: storage