From 5f1c1ede799cbdf0b928d27cce174c8b6f11ae33 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Sat, 4 May 2024 21:28:06 -0400 Subject: [PATCH] Add grocy --- grocy/grocy-deployment.yaml | 38 +++++++++++++++++++++++++++++++++++++ grocy/grocy-pvc.yaml | 11 +++++++++++ grocy/grocy-service.yaml | 13 +++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 grocy/grocy-deployment.yaml create mode 100644 grocy/grocy-pvc.yaml create mode 100644 grocy/grocy-service.yaml diff --git a/grocy/grocy-deployment.yaml b/grocy/grocy-deployment.yaml new file mode 100644 index 0000000..09d7f34 --- /dev/null +++ b/grocy/grocy-deployment.yaml @@ -0,0 +1,38 @@ +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:4.2.0 + ports: + - containerPort: 80 + env: + #- name: GROCY_AUTH_CLASS + # value: "Grocy/Middleware/ReverseProxyAuthMiddleware" + #- name: GROCY_REVERSE_PROXY_AUTH_HEADER + # value: "X-authentik-name" + - 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 diff --git a/grocy/grocy-pvc.yaml b/grocy/grocy-pvc.yaml new file mode 100644 index 0000000..7236259 --- /dev/null +++ b/grocy/grocy-pvc.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: grocy-pvc + namespace: grocy-ns +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi diff --git a/grocy/grocy-service.yaml b/grocy/grocy-service.yaml new file mode 100644 index 0000000..cf685f0 --- /dev/null +++ b/grocy/grocy-service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: grocy + namespace: grocy-ns +spec: + type: LoadBalancer + selector: + app: grocy + ports: + - port: 80 + targetPort: 80 + protocol: TCP