learn-helm/datasette/templates/deployment.yaml
Waylon S. Walker fddad41456 init
2024-09-23 10:06:32 -05:00

28 lines
678 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: datasette
spec:
replicas: 1
selector:
matchLabels:
app: datasette
template:
metadata:
labels:
app: datasette
spec:
containers:
- name: datasette
image: datasetteproject/datasette:latest
command: ["datasette", "{{ .Values.mountPath }}/{{ .Values.database }}"]
ports:
- containerPort: 8001
volumeMounts:
- name: sqlite-data
mountPath: "{{ .Values.mountPath }}"
volumes:
- name: sqlite-data
hostPath:
path: "{{ .Values.hostPath }}"
type: Directory