2024-11-10 12:30:02 -06:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: grocy
|
|
|
|
namespace: grace-community
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: grocy
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: grocy
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: grocy-frontend
|
|
|
|
image: grocy/frontend:v4.2.0
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
memory: "128Mi"
|
|
|
|
cpu: "500m"
|
|
|
|
ports:
|
2024-11-10 12:37:35 -06:00
|
|
|
- name: http-frontend
|
|
|
|
containerPort: 8080
|
|
|
|
protocol: TCP
|
2024-11-10 12:30:02 -06:00
|
|
|
- name: grocy-backend
|
|
|
|
image: grocy/backend:v4.2.0
|
2024-11-10 12:37:35 -06:00
|
|
|
env:
|
|
|
|
- name: GROCY_MODE
|
|
|
|
value: demo
|
|
|
|
- name: GROCY_CULTURE
|
|
|
|
value: en
|
|
|
|
- name: MAX_UPLOAD
|
|
|
|
value: 50M
|
|
|
|
- name: PHP_MAX_FILE_UPLOAD
|
2024-11-10 12:40:01 -06:00
|
|
|
value: "200"
|
2024-11-10 12:37:35 -06:00
|
|
|
- name: PHP_MAX_POST
|
|
|
|
value: 100M
|
|
|
|
- name: PHP_MEMORY_LIMIT
|
|
|
|
value: 512M
|
2024-11-10 12:30:02 -06:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
memory: "1Gi"
|
|
|
|
cpu: "500m"
|
|
|
|
ports:
|
2024-11-10 12:37:35 -06:00
|
|
|
- name: http-backend
|
|
|
|
containerPort: 9000
|
|
|
|
protocol: TCP
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /var/www/data
|
|
|
|
name: grocy-data
|
|
|
|
serviceAccountName: grocy
|
|
|
|
volumes:
|
|
|
|
- name: grocy-data
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: nfs-grocy-data
|