From 0b7b010a01e6d132481eb6b88b3876e0249b3534 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Wed, 29 Sep 2021 19:12:48 +0100 Subject: [PATCH] Added wallabag --- manifests/_apps/wallabag.yaml | 93 ++++++++++++++++++++++++++++++++ manifests/wallabag/wallabag.yaml | 68 +++++++++++++++++++++++ 2 files changed, 161 insertions(+) create mode 100644 manifests/_apps/wallabag.yaml create mode 100644 manifests/wallabag/wallabag.yaml diff --git a/manifests/_apps/wallabag.yaml b/manifests/_apps/wallabag.yaml new file mode 100644 index 0000000..d81c476 --- /dev/null +++ b/manifests/_apps/wallabag.yaml @@ -0,0 +1,93 @@ +# apiVersion: argoproj.io/v1alpha1 +# kind: Application +# metadata: +# name: wallabag +# namespace: argocd +# finalizers: +# - resources-finalizer.argocd.argoproj.io +# spec: +# project: cluster.fun +# destination: +# namespace: wallabag +# name: cluster-fun (scaleway) +# source: +# path: manifests/wallabag +# repoURL: "https://git.cluster.fun/AverageMarcus/cluster.fun.git" +# targetRevision: HEAD +# syncPolicy: +# syncOptions: +# - CreateNamespace=true +# automated: {} +# ignoreDifferences: +# - kind: Secret +# jsonPointers: +# - /data +# --- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: wallabag-chart + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: cluster.fun + destination: + namespace: wallabag + name: cluster-fun (scaleway) + source: + repoURL: 'https://k8s-at-home.com/charts/' + targetRevision: 4.1.1 + chart: wallabag + helm: + version: v3 + values: |- + env: + TZ: UTC + MYSQL_ROOT_PASSWORD: wallabag-rootpass + SYMFONY__ENV__DOMAIN_NAME: https://wallabag.cluster.fun + SYMFONY__ENV__FOSUSER_REGISTRATION: false + SYMFONY__ENV__DATABASE_DRIVER: pdo_mysql + SYMFONY__ENV__DATABASE_DRIVER_CLASS: ~ + SYMFONY__ENV__DATABASE_HOST: wallabag-chart-mariadb.wallabag.svc + SYMFONY__ENV__DATABASE_PORT: 3306 + SYMFONY__ENV__DATABASE_NAME: wallabag + SYMFONY__ENV__DATABASE_USER: wallabag + SYMFONY__ENV__DATABASE_PASSWORD: wallabag-pass + SYMFONY__ENV__DATABASE_PATH: ~ + SYMFONY__ENV__DATABASE_TABLE_PREFIX: wallabag_ + SYMFONY__ENV__DATABASE_SOCKET: ~ + SYMFONY__ENV__DATABASE_CHARSET: utf8mb4 + SYMFONY__ENV__LOCALE: en + ingress: + main: + enabled: true + 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" + tls: + - hosts: + - wallabag.cluster.fun + secretName: wallabag-ingress + hosts: + - host: wallabag.cluster.fun + paths: + - path: / + pathType: ImplementationSpecific + mariadb: + enabled: true + architecture: standalone + auth: + database: wallabag + username: wallabag + password: wallabag-pass + rootPassword: wallabag-rootpass + primary: + persistence: + enabled: true + redis: + enabled: false + syncPolicy: + automated: {} diff --git a/manifests/wallabag/wallabag.yaml b/manifests/wallabag/wallabag.yaml new file mode 100644 index 0000000..fbfcff0 --- /dev/null +++ b/manifests/wallabag/wallabag.yaml @@ -0,0 +1,68 @@ +apiVersion: v1 +kind: Service +metadata: + name: wallabag-deps + namespace: wallabag +spec: + type: ClusterIP + ports: + - port: 5432 + targetPort: db + name: db + - port: 6379 + targetPort: redis + name: redis + selector: + app: wallabag-deps +--- +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: wallabag-deps + namespace: wallabag +spec: + selector: + matchLabels: + app: wallabag-deps + serviceName: wallabag-deps + replicas: 1 + template: + metadata: + labels: + app: wallabag-deps + spec: + containers: + - name: postgres + image: postgres:9-alpine + imagePullPolicy: IfNotPresent + ports: + - containerPort: 5432 + name: db + env: + - name: POSTGRES_USER + value: user + - name: POSTGRES_PASSWORD + value: pass + - name: POSTGRES_DB + value: wallabag + - name: PGDATA + value: /var/lib/postgresql/data/wallabag + volumeMounts: + - name: data + mountPath: /var/lib/postgresql/data + - name: redis + image: redis:6 + imagePullPolicy: IfNotPresent + ports: + - containerPort: 6379 + name: redis + volumeClaimTemplates: + - metadata: + name: data + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 5Gi +---