init
This commit is contained in:
commit
fddad41456
14 changed files with 576 additions and 0 deletions
28
datasette/templates/deployment.yaml
Normal file
28
datasette/templates/deployment.yaml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue