114 lines
2.5 KiB
YAML
114 lines
2.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
labels:
|
|
run: mosquitto
|
|
name: mosquitto
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
run: mosquitto
|
|
template:
|
|
metadata:
|
|
labels:
|
|
run: mosquitto
|
|
spec:
|
|
containers:
|
|
- image: eclipse-mosquitto:latest
|
|
name: mosquitto
|
|
ports:
|
|
- containerPort: 1883
|
|
volumeMounts:
|
|
- mountPath: /mosquitto/config/mosquitto.conf
|
|
name: mosquitto
|
|
subPath: mosquitto.conf
|
|
- mountPath: /mosquitto/log/
|
|
name: mosquitto
|
|
subPath: mosquitto_log
|
|
- mountPath: /mosquitto/config/pwfile
|
|
name: mosquitto
|
|
subPath: pwfile
|
|
- mountPath: /mosquitto/data
|
|
name: mosquitto
|
|
subPath: mosquitto_data
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: mosquitto
|
|
persistentVolumeClaim:
|
|
claimName: mosquitto
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
labels:
|
|
run: frontend
|
|
name: frontend
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
run: frontend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
run: frontend
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: SERVER_HOST
|
|
value: recorder
|
|
- name: SERVER_PORT
|
|
value: "8083"
|
|
image: owntracks/frontend:latest
|
|
name: frontend
|
|
volumeMounts:
|
|
- mountPath: /usr/share/nginx/html/config/config.js
|
|
name: frontend
|
|
subPath: config.js
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: frontend
|
|
persistentVolumeClaim:
|
|
claimName: frontend
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
run: recorder
|
|
name: recorder
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
run: recorder
|
|
template:
|
|
metadata:
|
|
labels:
|
|
run: recorder
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: OTR_HOST
|
|
value: mosquitto
|
|
- name: OTR_PASS
|
|
value: sooNg4pei3sh
|
|
- name: OTR_PORT
|
|
value: "1883"
|
|
- name: OTR_USER
|
|
value: owntracks
|
|
image: owntracks/recorder:latest
|
|
name: recorder
|
|
ports:
|
|
- containerPort: 8083
|
|
volumeMounts:
|
|
- mountPath: /store
|
|
name: recorder
|
|
subPath: recorder_store
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: recorder
|
|
persistentVolumeClaim:
|
|
claimName: recorder
|