Kubernetes-grocy-deployment/deployment.yaml

45 lines
985 B
YAML
Raw Normal View History

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:
2024-11-10 13:08:14 -06:00
securityContext:
2024-11-10 13:08:44 -06:00
fsGroup: 1001
2024-11-10 12:30:02 -06:00
containers:
2024-11-10 12:59:49 -06:00
- name: grocy
image: lscr.io/linuxserver/grocy:v4.2.0-ls271
2024-11-10 12:37:35 -06:00
env:
2024-11-10 12:59:49 -06:00
- name: PUID
2024-11-10 13:04:36 -06:00
value: "1001"
2024-11-10 12:59:49 -06:00
- name: PGID
2024-11-10 13:18:54 -06:00
value: "0"
2024-11-10 12:59:49 -06:00
- name: TZ
value: "America/Chicago"
2024-11-10 12:30:02 -06:00
resources:
limits:
memory: "1Gi"
cpu: "500m"
ports:
2024-11-10 12:59:49 -06:00
- name: http
containerPort: 80
2024-11-10 12:37:35 -06:00
protocol: TCP
2024-11-10 13:03:53 -06:00
securityContext:
2024-11-10 13:04:36 -06:00
runAsUser: 1001
2024-11-10 13:18:54 -06:00
runAsGroup: 0
2024-11-10 12:37:35 -06:00
volumeMounts:
2024-11-10 12:59:49 -06:00
- mountPath: /config
2024-11-10 12:37:35 -06:00
name: grocy-data
2024-11-10 12:43:08 -06:00
serviceAccountName: grocy
volumes:
- name: grocy-data
persistentVolumeClaim:
claimName: nfs-grocy-data