1
0
Fork 0
mirror of https://gitlab.com/shouptech/flux.git synced 2026-02-03 20:49:46 +00:00
flux/workloads/nextcloud/exporter-deploy.yml

54 lines
1.3 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nextcloud-exporter
namespace: nextcloud
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: nextcloud-exporter
template:
metadata:
labels:
app: nextcloud-exporter
spec:
containers:
- image: xperimental/nextcloud-exporter:v0.1.0
imagePullPolicy: IfNotPresent
name: nextcloud-exporter
env:
- name: NEXTCLOUD_SERVERINFO_URL
value: https://cloud.shoup.io
- name: NEXTCLOUD_TIMEOUT
value: 5s
- name: NEXTCLOUD_USERNAME
valueFrom:
secretKeyRef:
name: nextcloud-exporter
key: NEXTCLOUD_USERNAME
- name: NEXTCLOUD_PASSWORD
valueFrom:
secretKeyRef:
name: nextcloud-exporter
key: NEXTCLOUD_PASSWORD
resources:
requests:
memory: "32Mi"
cpu: "10m"
limits:
memory: "128Mi"
cpu: "500m"
livenessProbe:
tcpSocket:
port: 9205
initialDelaySeconds: 600
periodSeconds: 30
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 2
ports:
- containerPort: 9205