From ffa751ad7f878388a2845bdb2ed0016cbb0f68c1 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Wed, 5 May 2021 13:35:50 +0100 Subject: [PATCH] Added barcode-buddy --- manifests/_apps/barcode-buddy.yaml | 22 ++++++ manifests/barcode-buddy/barcode-buddy.yaml | 83 ++++++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 manifests/_apps/barcode-buddy.yaml create mode 100644 manifests/barcode-buddy/barcode-buddy.yaml diff --git a/manifests/_apps/barcode-buddy.yaml b/manifests/_apps/barcode-buddy.yaml new file mode 100644 index 0000000..b5bf0ca --- /dev/null +++ b/manifests/_apps/barcode-buddy.yaml @@ -0,0 +1,22 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: barcode-buddy + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: cluster.fun + destination: + namespace: grocy + name: cluster-fun (scaleway) + source: + path: manifests/barcode-buddy + repoURL: "https://git.cluster.fun/AverageMarcus/cluster.fun.git" + targetRevision: HEAD + syncPolicy: + automated: {} + ignoreDifferences: + - kind: Secret + jsonPointers: + - /data diff --git a/manifests/barcode-buddy/barcode-buddy.yaml b/manifests/barcode-buddy/barcode-buddy.yaml new file mode 100644 index 0000000..5103f57 --- /dev/null +++ b/manifests/barcode-buddy/barcode-buddy.yaml @@ -0,0 +1,83 @@ +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: barcode-buddy + namespace: grocy +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi +--- +apiVersion: v1 +kind: Service +metadata: + name: barcode-buddy + namespace: grocy +spec: + type: ClusterIP + ports: + - port: 80 + targetPort: web + name: web + selector: + app: barcode-buddy +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: barcode-buddy + namespace: grocy +spec: + replicas: 1 + selector: + matchLabels: + app: barcode-buddy + template: + metadata: + labels: + app: barcode-buddy + spec: + containers: + - name: web + image: f0rc3/barcodebuddy-docker:latest + imagePullPolicy: IfNotPresent + ports: + - containerPort: 80 + name: web + env: + - name: BBUDDY_EXTERNAL_GROCY_URL + value: barcode-buddy.cluster.fun + volumeMounts: + - mountPath: /config + name: storage + volumes: + - name: storage + persistentVolumeClaim: + claimName: barcode-buddy +--- +apiVersion: extensions/v1beta1 +kind: Ingress +metadata: + name: barcode-buddy + namespace: grocy + annotations: + cert-manager.io/cluster-issuer: letsencrypt + traefik.ingress.kubernetes.io/frontend-entry-points: http,https + traefik.ingress.kubernetes.io/redirect-entry-point: https + traefik.ingress.kubernetes.io/redirect-permanent: "true" +spec: + tls: + - hosts: + - barcode-buddy.cluster.fun + secretName: barcode-buddy-ingress + rules: + - host: barcode-buddy.cluster.fun + http: + paths: + - path: / + backend: + serviceName: barcode-buddy + servicePort: 80 +