Fixed
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
|
||||
Reference in New Issue
Block a user