initial migration

This commit is contained in:
2023-10-05 14:34:37 +02:00
parent 5cb41fd5e4
commit 41f0153fd0
145 changed files with 17441 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: trilium-ingress
namespace: trilium
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: cloudflare-letsencrypt-prod
spec:
tls:
- hosts: [ 'trilium.kluster.moll.re' ]
secretName: cloudflare-letsencrypt-issuer-account-key
rules:
- host: trilium.kluster.moll.re
http:
paths:
- pathType: Prefix
path: /
backend:
service:
name: trilium-trilium-notes
port:
number: 8080

View File

@@ -0,0 +1,37 @@
---
apiVersion: v1
kind: PersistentVolume
metadata:
namespace: trilium
name: trilium-data-nfs
labels:
directory: trilium
spec:
storageClassName: slow
capacity:
storage: "2Gi"
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
nfs:
path: /trilium
server: 10.43.239.43 # assigned to nfs-server service. Won't change as long as service is not redeployed
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: trilium
name: trilium-data-nfs
spec:
storageClassName: slow
accessModes:
- ReadWriteOnce
resources:
requests:
storage: "2Gi"
selector:
matchLabels:
directory: trilium

View File

@@ -0,0 +1,78 @@
# Default values for trilium-notes.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
image:
repository: zadam/trilium
tag: "latest"
pullPolicy: IfNotPresent
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
serviceAccount:
create: true
annotations: {}
# If not set and create is true, a name is generated using the fullname template
name:
podSecurityContext:
fsGroup: 10000
securityContext:
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 10000
allowPrivilegeEscalation: false
service:
type: ClusterIP
port: 8080
dataDir: /srv/trilium-data
persistentVolume:
enabled: true
existingClaim: trilium-data-nfs
accessModes:
- ReadWriteOnce
annotations: {}
size: 2Gi
ingress:
enabled: false
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths: []
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
nodeSelector: {}
tolerations: []
affinity: {}