init
This commit is contained in:
commit
fddad41456
14 changed files with 576 additions and 0 deletions
21
datasette/Chart.yaml
Normal file
21
datasette/Chart.yaml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
apiVersion: v2
|
||||
name: temparature-datasette
|
||||
description: A Helm chart for Kubernetes
|
||||
# A chart can be either an 'application' or a 'library' chart.
|
||||
#
|
||||
# Application charts are a collection of templates that can be packaged into versioned archives
|
||||
# to be deployed.
|
||||
#
|
||||
# Library charts provide useful utilities or functions for the chart developer. They're included as
|
||||
# a dependency of application charts to inject those utilities and functions into the rendering
|
||||
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
|
||||
type: application
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 0.1.0
|
||||
# This is the version number of the application being deployed. This version number should be
|
||||
# incremented each time you make changes to the application. Versions are not expected to
|
||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||
# It is recommended to use it with quotes.
|
||||
appVersion: "1.16.0"
|
||||
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
|
||||
13
datasette/templates/service.yaml
Normal file
13
datasette/templates/service.yaml
Normal 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
|
||||
4
datasette/values.yaml
Normal file
4
datasette/values.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# values.yaml
|
||||
mountPath: "/data"
|
||||
hostPath: "/sqlite-data"
|
||||
database: "temperature.db"
|
||||
Loading…
Add table
Add a link
Reference in a new issue