Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Commit

Permalink
feat: add roundcube skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
truxnell committed Nov 9, 2023
1 parent 42afe7f commit edc84e6
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kubernetes/apps/databases/postgres-backup/app/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
name: cloudnative-pg
key: password
- name: POSTGRES_DB
value: "authelia,fireflyiii,grafana,hass,immich,invidious,miniflux,paperless,pleroma-rebased,vikunja,weather_station,umami,autobrr,dmarc-report,atuin"
value: "authelia,fireflyiii,grafana,hass,immich,invidious,miniflux,paperless,pleroma-rebased,vikunja,weather_station,umami,autobrr,dmarc-report,atuin,roundcube"
volumeMounts:
- name: nas-backups
mountPath: /backups
Expand Down
19 changes: 19 additions & 0 deletions kubernetes/apps/services/roundcube/app/database.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
apiVersion: db.movetokube.com/v1alpha1
kind: Postgres
metadata:
name: roundcube-db
namespace: services
spec:
database: roundcube
---
apiVersion: db.movetokube.com/v1alpha1
kind: PostgresUser
metadata:
name: roundcube-user
namespace: services
spec:
role: roundcube
database: roundcube-db
secretName: database
privileges: OWNER
89 changes: 89 additions & 0 deletions kubernetes/apps/services/roundcube/app/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta1.json
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: atuin
namespace: services
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 2.0.3
interval: 30m
sourceRef:
kind: HelmRepository
name: bjw-s-charts
namespace: flux-system
maxHistory: 2
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false

values:
controllers:
main:
strategy: RollingUpdate
annotations:
reloader.stakater.com/auto: "true"

pod:
enableServiceLinks: false

containers:
main:
image:
repository: ghcr.io/atuinsh/atuin
tag: 17.0.1
args:
- server
- start
env:
ATUIN_DB_URI:
valueFrom:
secretKeyRef:
name: database-atuin-user
key: POSTGRES_URL
optional: false
ATUIN_HOST: 0.0.0.0
ATUIN_PORT: &port 8888
ATUIN_OPEN_REGISTRATION: "false"
resources:
requests:
cpu: 10m
memory: 128Mi
limits:
memory: 512Mi

service:
main:
ports:
http:
port: *port

ingress:
main:
enabled: true
className: "internal-nginx"
hosts:
- host: &host "{{ .Release.Name }}.${EXTERNAL_DOMAIN}"
paths:
- path: /
service:
name: main
port: http
tls:
- hosts:
- *host

persistence:
config:
enabled: true
type: emptyDir
6 changes: 6 additions & 0 deletions kubernetes/apps/services/roundcube/app/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./database.yaml
# - ./helmrelease.yaml
21 changes: 21 additions & 0 deletions kubernetes/apps/services/roundcube/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-roundcube
namespace: flux-system
labels:
substitution.flux.home.arpa/enabled: "true"
spec:
path: "./kubernetes/apps/services/roundcube/app/"
prune: true
sourceRef:
kind: GitRepository
name: home-cluster-kubernetes
wait: false
interval: 30m
retryInterval: 1m
timeout: 3m
dependsOn:
- name: cluster-apps-ext-postgres-operator
- name: cluster-apps-zalando-postgres-cluster

0 comments on commit edc84e6

Please sign in to comment.