This repository has been archived on 2023-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
gitops-tbrnt/owntracks/01-deployment.yaml

62 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: recorder
namespace: owntracks
labels:
app: recorder
spec:
selector:
matchLabels:
app: recorder
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: recorder
spec:
containers:
- env:
- name: OTR_HOST
value: mqtt-plain.mosquitto.svc.cluster.local
- name: OTR_USER
value: ot-recorder
image: docker.io/owntracks/recorder:0.8.6-12
imagePullPolicy: IfNotPresent
name: recorder
command:
- ot-recorder
- --viewsdir
- /htdocs/viewsjson
livenessProbe:
exec:
command:
- /usr/local/sbin/recorder-health.sh
initialDelaySeconds: 5
periodSeconds: 30
ports:
- containerPort: 8083
protocol: TCP
volumeMounts:
- name: data
mountPath: /store
- name: views
mountPath: /htdocs/viewsjson
- name: config
mountPath: /config
securityContext:
runAsUser: 9999
runAsGroup: 9999
volumes:
- name: data
persistentVolumeClaim:
claimName: owntracks-data
- name: views
configMap:
name: views
- name: config
secret:
secretName: recorder