Skip to content

Commit

Permalink
*: start deploying mealie
Browse files Browse the repository at this point in the history
Signed-off-by: paulfantom <pawel@krupa.net.pl>
  • Loading branch information
paulfantom committed Jan 27, 2025
1 parent 822784e commit 88a0ae0
Show file tree
Hide file tree
Showing 9 changed files with 144 additions and 0 deletions.
58 changes: 58 additions & 0 deletions apps/mealie/manifests/app/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: mealie
labels:
app.kubernetes.io/name: mealie
spec:
selector:
matchLabels:
app.kubernetes.io/name: mealie
template:
metadata:
labels:
app.kubernetes.io/name: mealie
spec:
containers:
- name: mealie
image: ghcr.io/mealie-recipes/mealie:v2.5.0
env:
- name: ALLOW_SIGNUP
value: 'false'
- name: PUID
value: '1000'
- name: PGID
value: '1000'
- name: TZ
value: Europe/Warsaw
- name: BASE_URL
value: https://mealie.ankhmorpork.thaum.xyz
- name: DB_ENGINE
value: postgres
- name: POSTGRES_USER
value: mealie
- name: POSTGRES_PASSWORD
value: mealie
- name: POSTGRES_SERVER
value: postgres
- name: POSTGRES_PORT
value: '5432'
- name: POSTGRES_DB
value: mealie
ports:
- containerPort: 9000
name: http
resources:
limits:
cpu: 1
memory: 512Mi
requests:
cpu: 100m
memory: 128Mi
volumeMounts:
- name: data
mountPath: /app/data/
volumes:
- name: data
persistentVolumeClaim:
claimName: data
30 changes: 30 additions & 0 deletions apps/mealie/manifests/app/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-dns01
# probe-uri: /-/healthy
reloader.homer/group: Ankh Cloud
reloader.homer/logo:
reloader.homer/name: Mealie
reloader.homer/tag: testing
labels:
app.kubernetes.io/name: mealie
name: mealie
spec:
ingressClassName: private
rules:
- host: mealie.ankhmorpork.thaum.xyz
http:
paths:
- backend:
service:
name: mealie
port:
name: http
path: /
pathType: Prefix
tls:
- hosts:
- mealie.ankhmorpork.thaum.xyz
secretName: mealie-tls
7 changes: 7 additions & 0 deletions apps/mealie/manifests/app/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- service.yaml
- ingress.yaml
- pvc.yaml
- deployment.yaml
12 changes: 12 additions & 0 deletions apps/mealie/manifests/app/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: data
labels:
app.kubernetes.io/name: mealie
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
14 changes: 14 additions & 0 deletions apps/mealie/manifests/app/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: mealie
labels:
app.kubernetes.io/name: mealie
spec:
ports:
- name: http
port: 9000
protocol: TCP
targetPort: http
selector:
app.kubernetes.io/name: mealie
Empty file.
7 changes: 7 additions & 0 deletions apps/mealie/manifests/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: mealie
resources:
- namespace.yaml
- app/
#- db/
4 changes: 4 additions & 0 deletions apps/mealie/manifests/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: mealie
12 changes: 12 additions & 0 deletions base/flux-apps/mealie.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: mealie
namespace: flux-apps
spec:
interval: 15m0s
path: ./apps/mealie/manifests
prune: true
sourceRef:
kind: GitRepository
name: ankhmorpork

0 comments on commit 88a0ae0

Please sign in to comment.