This commit is contained in:
Danny Bessems 2024-01-21 09:18:33 +11:00
parent f36e22c397
commit d888a5e1f7
7 changed files with 113 additions and 0 deletions

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: memos

View File

@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: memos
namespace: memos
labels:
app: memos
spec:
replicas: 1
selector:
matchLabels:
app: memos
template:
metadata:
labels:
app: memos
spec:
containers:
- name: app
image: neosmemo/memos:stable
env:
- name: MEMOS_PORT
value: '5230'
ports:
- name: app
containerPort: 5230
volumeMounts:
- mountPath: /var/opt/memos
name: flexvolsmb-memos-data
volumes:
- name: flexvolsmb-memos-data
persistentVolumeClaim:
claimName: flexvolsmb-memos-data

View File

@ -0,0 +1,17 @@
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: memos
namespace: memos
spec:
entryPoints:
- websecure
routes:
- match: Host(`memos.spamasaurus.com`)
kind: Rule
services:
- name: memos
port: 5230
middlewares:
- name: security-headers@file
- name: compression@file

View File

@ -0,0 +1,19 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: flexvolsmb-memos-data
namespace: memos
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-memos-data
flexVolume:
driver: mount/smb
secretRef:
name: flexvolsmb-credentials
options:
opts: file_mode=0600,dir_mode=0700,uid=1001,gid=1001,iocharset=utf8,nobrl
server: 192.168.154.225
share: /K3s.Volumes/memos/data

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: flexvolsmb-memos-data
namespace: memos
spec:
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-memos-data
resources:
requests:
storage: 1Gi

View File

@ -0,0 +1,16 @@
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: flexvolsmb-credentials
namespace: memos
spec:
encryptedData:
password: AgBeEaCDaKwgafALNYq/ykvhoYtC9N+1D+DN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JnnFGMXobhhtvPWJ4TdzM8bRNGHpmxxigTIKM/GNuhckuUNcHlFTYdqEglJpBAWpaDcgIiqaDV9S/AajSk8jwBNG7OQYNmJUiLe1ZyZR2JSVyFszCzJe9/I8k1RK5HEbBYpRd46oZS+qgD4/4t3P/9fF7I7IlMNjBdBDb4HGs9lMdnNQyXYaelMmPWrbw8FOSfV1QggKkcE4j2D2j60AmljLxVadnr0r1oB+NPsCDmo24BYhjMgSZY79vDcRK+sy9475A+UE7ACJYKdYHkh0tyriSn/Dnp/XXfr7dIi78dAd4q6DfTuLOgfKTe6MORktxgTvWKe+dcOXZGGKik9DLk8=
template:
metadata:
creationTimestamp: null
name: flexvolsmb-credentials
namespace: memos
type: mount/smb

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: memos
namespace: memos
spec:
ports:
- protocol: TCP
name: app
port: 5230
selector:
app: memos