This commit is contained in:
parent
298b424b74
commit
beb0e9f580
34
grocy/grocy-deployment.yaml
Normal file
34
grocy/grocy-deployment.yaml
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: grocy
|
||||||
|
namespace: grocy-ns
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: grocy
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: grocy
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: grocy
|
||||||
|
image: lscr.io/linuxserver/grocy:latest
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
env:
|
||||||
|
- name: PUID
|
||||||
|
value: "1000"
|
||||||
|
- name: PGID
|
||||||
|
value: "1000"
|
||||||
|
- name: TZ
|
||||||
|
value: "Etc/UTC"
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: "/config"
|
||||||
|
name: grocy-config
|
||||||
|
volumes:
|
||||||
|
- name: grocy-config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: grocy-pvc
|
10
grocy/grocy-pvc.yaml
Normal file
10
grocy/grocy-pvc.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: grocy-pvc
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 2Gi
|
12
grocy/grocy-service.yaml
Normal file
12
grocy/grocy-service.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: grocy
|
||||||
|
spec:
|
||||||
|
type: LoadBalancer
|
||||||
|
selector:
|
||||||
|
app: grocy
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
Loading…
Reference in New Issue
Block a user