Skip to content

Commit

Permalink
Install Grocy
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasklinger committed Jul 12, 2024
1 parent 6ebf790 commit ee6c979
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 0 deletions.
41 changes: 41 additions & 0 deletions apps/grocy/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: grocy
namespace: grocy
labels:
app: grocy
spec:
replicas: 1
selector:
matchLabels:
app: grocy
template:
metadata:
labels:
app: grocy
spec:
containers:
- name: grocy
image: lscr.io/linuxserver/grocy:latest
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 20m
memory: 64Mi
ports:
- containerPort: 80
name: web
env:
- name: TZ
value: Europe/Berlin
volumeMounts:
- name: data
mountPath: "/config"
readOnly: false
volumes:
- name: data
persistentVolumeClaim:
claimName: grocy-data
22 changes: 22 additions & 0 deletions apps/grocy/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: grocy
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
rules:
- host: grocy.chaosdorf.space
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: grocy
port:
number: 80
tls:
- secretName: ingress-tls
hosts:
- grocy.chaosdorf.space
8 changes: 8 additions & 0 deletions apps/grocy/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: grocy
resources:
- namespace.yaml
- volumes.yaml
- deployment.yaml
- service.yaml
4 changes: 4 additions & 0 deletions apps/grocy/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: grocy
14 changes: 14 additions & 0 deletions apps/grocy/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: grocy
namespace: grocy
spec:
type: ClusterIP
selector:
app: grocy
ports:
- name: web
protocol: TCP
port: 80
targetPort: web
12 changes: 12 additions & 0 deletions apps/grocy/volumes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: grocy-data
namespace: grocy
spec:
storageClassName: ceph-filesystem
accessModes:
- ReadWriteMany
resources:
requests:
storage: 6Gi

0 comments on commit ee6c979

Please sign in to comment.