From 773f401e8e33a6e2bbba26a15fdb01087e6f437b Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 27 Dec 2021 20:42:10 +0100 Subject: [PATCH] install mealie --- _apps/mealie.yaml | 23 +++++++++++++++++++++++ mealie/deployment.yaml | 40 ++++++++++++++++++++++++++++++++++++++++ mealie/ingress.yaml | 24 ++++++++++++++++++++++++ mealie/service.yaml | 15 +++++++++++++++ 4 files changed, 102 insertions(+) create mode 100644 _apps/mealie.yaml create mode 100644 mealie/deployment.yaml create mode 100644 mealie/ingress.yaml create mode 100644 mealie/service.yaml diff --git a/_apps/mealie.yaml b/_apps/mealie.yaml new file mode 100644 index 0000000..6ad201b --- /dev/null +++ b/_apps/mealie.yaml @@ -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 diff --git a/mealie/deployment.yaml b/mealie/deployment.yaml new file mode 100644 index 0000000..2614112 --- /dev/null +++ b/mealie/deployment.yaml @@ -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 diff --git a/mealie/ingress.yaml b/mealie/ingress.yaml new file mode 100644 index 0000000..5470f7a --- /dev/null +++ b/mealie/ingress.yaml @@ -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 + diff --git a/mealie/service.yaml b/mealie/service.yaml new file mode 100644 index 0000000..9873c97 --- /dev/null +++ b/mealie/service.yaml @@ -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