This commit is contained in:
Waylon S. Walker 2024-09-23 10:06:32 -05:00
commit fddad41456
14 changed files with 576 additions and 0 deletions

View file

@ -0,0 +1,28 @@
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

View file

@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: datasette
spec:
type: NodePort
selector:
app: datasette
ports:
- protocol: TCP
port: 80
targetPort: 8001
nodePort: 30080 # NodePort range is 30000-32767