storage and metrics
This commit is contained in:
commit
5a0d6d639b
23 changed files with 6892 additions and 0 deletions
metrics
49
metrics/loki-deployment.yaml
Normal file
49
metrics/loki-deployment.yaml
Normal file
|
@ -0,0 +1,49 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: loki
|
||||
namespace: metrics
|
||||
labels:
|
||||
app.kubernetes.io/name: loki
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: loki
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
namespace: metrics
|
||||
labels:
|
||||
app.kubernetes.io/name: loki
|
||||
spec:
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
fsGroup: 1000
|
||||
containers:
|
||||
- args:
|
||||
- -config.file=/etc/loki/config.yaml
|
||||
image: grafana/loki:3.1.0
|
||||
name: loki
|
||||
ports:
|
||||
- containerPort: 3100
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- mountPath: /etc/loki/config.yaml
|
||||
name: loki-config
|
||||
subPath: config.yaml
|
||||
- mountPath: /loki
|
||||
name: loki-data
|
||||
restartPolicy: Always
|
||||
volumes:
|
||||
- configMap:
|
||||
items:
|
||||
- key: config.yaml
|
||||
path: config.yaml
|
||||
name: loki-config
|
||||
name: loki-config
|
||||
- name: loki-data
|
||||
persistentVolumeClaim:
|
||||
claimName: loki-data
|
Loading…
Add table
Add a link
Reference in a new issue