install mealie
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Tobias Brunner 2021-12-27 20:42:10 +01:00
parent 4672cee335
commit 773f401e8e
4 changed files with 102 additions and 0 deletions

23
_apps/mealie.yaml Normal file
View File

@ -0,0 +1,23 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: mealie
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: mealie
server: https://kubernetes.default.svc
project: apps
source:
path: mealie
repoURL: https://git.tbrnt.ch/tobru/gitops-tbrnt.git
targetRevision: HEAD
directory:
recurse: true
---
apiVersion: v1
kind: Namespace
metadata:
name: mealie

40
mealie/deployment.yaml Normal file
View File

@ -0,0 +1,40 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: mealie
name: mealie
spec:
replicas: 1
selector:
matchLabels:
app: mealie
strategy:
type: Recreate
template:
metadata:
labels:
app: mealie
spec:
containers:
- image: docker.io/hkotel/mealie:v0.5.4
name: mealie
env:
- name: BASE_URL
value: https://rezepte.tobru.ch
- name: TZ
value: Europe/Zurich
ports:
- containerPort: 9925
livenessProbe:
httpGet:
path: /
port: 9925
initialDelaySeconds: 15
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: 9925
initialDelaySeconds: 15
periodSeconds: 10

24
mealie/ingress.yaml Normal file
View File

@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
ingress.kubernetes.io/ssl-redirect: "true"
name: mealie
spec:
rules:
- host: rezepte.tobru.ch
http:
paths:
- path: /
backend:
service:
name: mealie
port:
number: 9925
pathType: Prefix
tls:
- hosts:
- rezepte.tobru.ch
secretName: ingress-tls-cert

15
mealie/service.yaml Normal file
View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: mealie
name: mealie
spec:
ports:
- name: http
port: 9925
protocol: TCP
targetPort: 9925
selector:
app: mealie
type: ClusterIP