Start adding a helm chart for ohmyform.
This commit is contained in:
7
ohmyform/Chart.yaml
Normal file
7
ohmyform/Chart.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.0.3
|
||||||
|
description: Ohmyform Helm chart for Kubernetes
|
||||||
|
name: gitea
|
||||||
|
type: application
|
||||||
|
version: "1.0.0"
|
||||||
45
ohmyform/templates/deployment.yaml
Normal file
45
ohmyform/templates/deployment.yaml
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: ohmyform
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: ohmyform
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- env:
|
||||||
|
- name: ADMIN_EMAIL
|
||||||
|
value: admin@local.host
|
||||||
|
- name: ADMIN_PASSWORD
|
||||||
|
value: admin
|
||||||
|
- name: ADMIN_USERNAME
|
||||||
|
value: admin
|
||||||
|
- name: CREATE_ADMIN
|
||||||
|
value: "TRUE"
|
||||||
|
- name: DATABASE_DRIVER
|
||||||
|
value: sqlite
|
||||||
|
- name: DATABASE_URL
|
||||||
|
value: sqlite:///data/data.sqlite
|
||||||
|
- name: LOGIN_NOTE
|
||||||
|
value: Either login with admin:admin or create your own account to test OhMyForm
|
||||||
|
- name: MAILER_URI
|
||||||
|
value: smtp://local.host
|
||||||
|
image: ohmyform/ohmyform
|
||||||
|
name: ohmyform
|
||||||
|
ports:
|
||||||
|
- containerPort: 3000
|
||||||
|
resources: {}
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /data
|
||||||
|
name: ohmyform
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- name: ohmyform
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: ohmyform
|
||||||
11
ohmyform/templates/pvc.yaml
Normal file
11
ohmyform/templates/pvc.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: ohmyform
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 100Mi
|
||||||
12
ohmyform/templates/service.yaml
Normal file
12
ohmyform/templates/service.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: ohmyform
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "8080"
|
||||||
|
port: 8080
|
||||||
|
targetPort: 3000
|
||||||
|
selector:
|
||||||
|
app: ohmyform
|
||||||
5
ohmyform/values.yaml
Normal file
5
ohmyform/values.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
image:
|
||||||
|
repository: ohmyform/ohmyform
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
tag: ""
|
||||||
Reference in New Issue
Block a user