Kubernetes-grocy-deployment/deployment.yaml

42 lines
915 B
YAML

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
image: lscr.io/linuxserver/grocy:v4.2.0-ls271
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: "America/Chicago"
resources:
limits:
memory: "1Gi"
cpu: "500m"
ports:
- name: http
containerPort: 80
protocol: TCP
securityContext:
runAsUser: 1000
volumeMounts:
- mountPath: /config
name: grocy-data
serviceAccountName: grocy
volumes:
- name: grocy-data
persistentVolumeClaim:
claimName: nfs-grocy-data