⬆️ wallabag app-template v2

This commit is contained in:
auricom
2023-11-04 16:57:09 +01:00
parent 3393ed72d3
commit 4d0534de02
4 changed files with 66 additions and 68 deletions

View File

@@ -10,7 +10,7 @@ spec:
chart: chart:
spec: spec:
chart: app-template chart: app-template
version: 1.5.1 version: 2.0.3
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: bjw-s name: bjw-s
@@ -29,18 +29,29 @@ spec:
dependsOn: dependsOn:
- name: wallabag-redis - name: wallabag-redis
values: values:
controller: defaultPodOptions:
securityContext:
runAsUser: 0
controllers:
main:
type: statefulset
annotations: annotations:
reloader.stakater.com/auto: "true" reloader.stakater.com/auto: "true"
pod:
enableServiceLinks: false
initContainers: initContainers:
01-init-db: 01-init-db:
image: ghcr.io/auricom/postgres-init:15.4 image:
imagePullPolicy: IfNotPresent repository: ghcr.io/auricom/postgres-init
tag: 15.4@sha256:83e1abf06be5741bdfb8cb53fc03a1ade6e6b5ec7b92a8aac0c69ba5dc7e51f0
pullPolicy: IfNotPresent
envFrom: &envFrom envFrom: &envFrom
- secretRef: - secretRef:
name: wallabag-secret name: wallabag-secret
02-init-migrate: 02-init-migrate:
image: wallabag/wallabag:2.6.7 image:
repository: wallabag/wallabag
tag: 2.6.7
envFrom: *envFrom envFrom: *envFrom
env: &env env: &env
SYMFONY__ENV__DATABASE_DRIVER: pdo_pgsql SYMFONY__ENV__DATABASE_DRIVER: pdo_pgsql
@@ -57,12 +68,27 @@ spec:
- doctrine:migrations:migrate - doctrine:migrations:migrate
- --env=prod - --env=prod
- --no-interaction - --no-interaction
statefulset:
volumeClaimTemplates:
- name: config
accessMode: ReadWriteOnce
size: 2Gi
storageClass: rook-ceph-block
globalMounts:
- path: /images
containers:
main:
image: image:
repository: wallabag/wallabag repository: wallabag/wallabag
tag: 2.6.7 tag: 2.6.7
envFrom: *envFrom envFrom: *envFrom
env: *env env: *env
enableServiceLinks: false resources:
requests:
cpu: 100m
memory: 250Mi
limits:
memory: 512Mi
service: service:
main: main:
ports: ports:
@@ -71,7 +97,7 @@ spec:
ingress: ingress:
main: main:
enabled: true enabled: true
ingressClassName: "nginx" className: "nginx"
annotations: annotations:
external-dns.home.arpa/enabled: "true" external-dns.home.arpa/enabled: "true"
hajimari.io/icon: mdi:newspaper-variant hajimari.io/icon: mdi:newspaper-variant
@@ -79,19 +105,9 @@ spec:
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}" - host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths: paths:
- path: / - path: /
pathType: Prefix service:
name: main
port: http
tls: tls:
- hosts: - hosts:
- *host - *host
securityContext:
runAsUser: 0
persistence:
images:
enabled: true
existingClaim: wallabag-images
resources:
requests:
cpu: 100m
memory: 250Mi
limits:
memory: 512Mi

View File

@@ -8,4 +8,3 @@ resources:
- ./gatus.yaml - ./gatus.yaml
- ./helmrelease.yaml - ./helmrelease.yaml
- ./volsync.yaml - ./volsync.yaml
- ./volume.yaml

View File

@@ -30,7 +30,7 @@ metadata:
name: wallabag name: wallabag
namespace: default namespace: default
spec: spec:
sourcePVC: wallabag-images sourcePVC: config-wallabag-0
trigger: trigger:
schedule: "0 7 * * *" schedule: "0 7 * * *"
restic: restic:

View File

@@ -1,17 +0,0 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: wallabag-images
namespace: default
labels:
app.kubernetes.io/name: &name wallabag
app.kubernetes.io/instance: *name
snapshot.home.arpa/enabled: "true"
spec:
accessModes:
- ReadWriteOnce
storageClassName: rook-ceph-block
resources:
requests:
storage: 2Gi