Tobias Brunner
4e815d3887
All checks were successful
continuous-integration/drone/push Build is passing
36 lines
705 B
YAML
36 lines
705 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: familydb
|
|
name: familydb
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: familydb
|
|
strategy: {}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: familydb
|
|
spec:
|
|
containers:
|
|
- name: familydb
|
|
image: docker.io/tobru/familydb:latest
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: DB_PATH
|
|
value: /opt/familydb/family.db
|
|
ports:
|
|
- containerPort: 8080
|
|
protocol: TCP
|
|
name: http
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /opt/familydb
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: data
|