45 lines
982 B
YAML
45 lines
982 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: grocy
|
|
namespace: grace-community
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: grocy
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: grocy
|
|
spec:
|
|
securityContext:
|
|
fsGroup: 0
|
|
containers:
|
|
- name: grocy
|
|
image: lscr.io/linuxserver/grocy:v4.2.0-ls271
|
|
env:
|
|
- name: PUID
|
|
value: "1000"
|
|
- name: PGID
|
|
value: "1001"
|
|
- name: TZ
|
|
value: "America/Chicago"
|
|
resources:
|
|
limits:
|
|
memory: "1Gi"
|
|
cpu: "500m"
|
|
ports:
|
|
- name: http
|
|
containerPort: 80
|
|
protocol: TCP
|
|
securityContext:
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
volumeMounts:
|
|
- mountPath: /config
|
|
name: grocy-data
|
|
serviceAccountName: grocy
|
|
volumes:
|
|
- name: grocy-data
|
|
persistentVolumeClaim:
|
|
claimName: nfs-grocy-data |