Initial add
This commit is contained in:
34
chart/templates/deployment.yaml
Normal file
34
chart/templates/deployment.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "timeclock.fullname" . }}
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ include "timeclock.name" . }}
|
||||
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ include "timeclock.name" . }}
|
||||
|
||||
spec:
|
||||
containers:
|
||||
- name: flask-app
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
|
||||
ports:
|
||||
- containerPort: 5000
|
||||
|
||||
volumeMounts:
|
||||
- name: sqlite-data
|
||||
mountPath: {{ .Values.app.dbPath }}
|
||||
|
||||
volumes:
|
||||
- name: sqlite-data
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ include "timeclock.fullname" . }}-pvc
|
||||
4
chart/templates/namespace.yaml
Normal file
4
chart/templates/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: {{ .Values.namespace }}
|
||||
14
chart/templates/pvc.yaml
Normal file
14
chart/templates/pvc.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: {{ include "timeclock.fullname" . }}-pvc
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
accessModes:
|
||||
- {{ .Values.persistence.accessMode }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.persistence.size }}
|
||||
{{- if .Values.persistence.storageClass }}
|
||||
storageClassName: {{ .Values.persistence.storageClass }}
|
||||
{{- end }}
|
||||
15
chart/templates/service.yaml
Normal file
15
chart/templates/service.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "timeclock.fullname" . }}
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
|
||||
selector:
|
||||
app: {{ include "timeclock.name" . }}
|
||||
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: {{ .Values.service.port }}
|
||||
targetPort: 5000
|
||||
21
chart/values.yaml
Normal file
21
chart/values.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
namespace: flask-app
|
||||
|
||||
replicaCount: 1
|
||||
|
||||
image:
|
||||
repository: registry.home.aklabs.net/timeclock
|
||||
tag: latest
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 5000
|
||||
|
||||
persistence:
|
||||
enabled: true
|
||||
accessMode: ReadWriteOnce
|
||||
size: 1Gi
|
||||
storageClass: ""
|
||||
|
||||
app:
|
||||
dbPath: /app/database
|
||||
Reference in New Issue
Block a user