Kubernetes-grocy-deployment/deployment.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: "1001"
- name: PGID
value: "0"
- name: TZ
value: "America/Chicago"
resources:
limits:
memory: "1Gi"
cpu: "500m"
ports:
- name: http
containerPort: 80
protocol: TCP
securityContext:
runAsUser: 1001
runAsGroup: 0
volumeMounts:
- mountPath: /config
name: grocy-data
serviceAccountName: grocy
volumes:
- name: grocy-data
persistentVolumeClaim:
claimName: nfs-grocy-data