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.
2021-04-23 19:17:10 +00:00
|
|
|
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
|
2021-05-04 18:54:11 +00:00
|
|
|
imagePullPolicy: Always
|
2021-04-23 19:17:10 +00:00
|
|
|
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
|