1
0
forked from k-space/kube
kube/wildduck/wildduck-exporter.yaml

77 lines
1.7 KiB
YAML
Raw Normal View History

2023-08-17 08:57:32 +00:00
---
apiVersion: codemowers.cloud/v1beta1
kind: SecretClaim
metadata:
name: wildduck-exporter
namespace: wildduck
spec:
size: 32
mapping:
- key: PROMETHEUS_BEARER_TOKEN
value: "%(plaintext)s"
---
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: wildduck-exporter
namespace: wildduck
spec:
podMetricsEndpoints:
- bearerTokenSecret:
key: PROMETHEUS_BEARER_TOKEN
name: wildduck-exporter
targetPort: 3001
selector:
matchLabels:
app: wildduck-exporter
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: wildduck-exporter
namespace: wildduck
spec:
2023-08-19 07:01:09 +00:00
revisionHistoryLimit: 0
2023-08-17 08:57:32 +00:00
replicas: 1
selector:
matchLabels:
app: wildduck-exporter
template:
metadata:
labels:
app: wildduck-exporter
spec:
containers:
- name: webmail
image: harbor.k-space.ee/k-space/wildduck-exporter
2024-08-24 21:12:25 +00:00
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 1m
memory: 35Mi
2023-08-17 08:57:32 +00:00
securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 65534
command:
- /wildduck_exporter.py
args:
- info
- accounting
ports:
- containerPort: 3001
name: metrics
env:
- name: MONGODB_HOST
valueFrom:
secretKeyRef:
2024-08-13 17:18:47 +00:00
name: wildduck-mongodb
key: MONGO_URI
2023-08-17 08:57:32 +00:00
- name: PROMETHEUS_BEARER_TOKEN
valueFrom:
secretKeyRef:
name: wildduck-exporter
key: PROMETHEUS_BEARER_TOKEN