Files
LedgerLine/k8s/alloy/deployment.yaml
T

48 lines
1.1 KiB
YAML
Raw Normal View History

apiVersion: apps/v1
kind: Deployment
metadata:
name: alloy
spec:
replicas: 1
selector:
matchLabels:
app: alloy
template:
metadata:
labels:
app: alloy
spec:
containers:
- name: alloy
image: grafana/alloy:v1.10.2
args:
- run
- --server.http.listen-addr=0.0.0.0:12345
- --storage.path=/var/lib/alloy/data
- /etc/alloy/config.alloy
ports:
- containerPort: 12345
- containerPort: 4317
- containerPort: 4318
readinessProbe:
httpGet:
path: /-/ready
port: 12345
resources:
requests:
cpu: 20m
memory: 64Mi
limits:
memory: 384Mi
volumeMounts:
- name: config
mountPath: /etc/alloy
- name: data
mountPath: /var/lib/alloy/data
volumes:
- name: config
configMap:
name: alloy-config
- name: data
emptyDir: {}