From 6e86ffa7a65bd9888b0d750bde4ac749ad4ce5db Mon Sep 17 00:00:00 2001 From: James Andariese Date: Thu, 10 Aug 2023 20:00:44 -0500 Subject: [PATCH] add trilium deployments --- trilium/brechin.yaml | 90 ++++++++++++++++++++++++++++++++++++++++++++ trilium/james.yaml | 90 ++++++++++++++++++++++++++++++++++++++++++++ trilium/rj.yaml | 90 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 270 insertions(+) create mode 100644 trilium/brechin.yaml create mode 100644 trilium/james.yaml create mode 100644 trilium/rj.yaml diff --git a/trilium/brechin.yaml b/trilium/brechin.yaml new file mode 100644 index 0000000..9461b99 --- /dev/null +++ b/trilium/brechin.yaml @@ -0,0 +1,90 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + labels: + wildcard-tls.kn8v.com/copy: "true" + name: trilium-brechin +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: trilium-data + namespace: trilium-brechin +spec: + accessModes: + - ReadWriteMany + resources: + requests: + storage: 10Gi + storageClassName: nfs +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + namespace: trilium-brechin + name: trilium +spec: + replicas: 1 + selector: + matchLabels: + app: trilium + strategy: + type: Recreate + template: + metadata: + labels: + app: trilium + spec: + containers: + - name: trilium + image: zadam/trilium:0.52-latest + volumeMounts: + - mountPath: /home/node/trilium-data + name: trilium-data + volumes: + - name: trilium-data + persistentVolumeClaim: + claimName: trilium-data + restartPolicy: Always +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: trilium + namespace: trilium-brechin +spec: + ingressClassName: istio + rules: + - host: brechin.notes.werts.us + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: trilium + port: + number: 8080 + tls: + - hosts: + - brechin.notes.werts.us + secretName: wildcard-tls +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app: trilium + name: trilium + namespace: trilium-brechin +spec: + selector: + app: trilium + ports: + - name: http + port: 8080 + protocol: TCP + targetPort: 8080 + clusterIP: None + type: ClusterIP diff --git a/trilium/james.yaml b/trilium/james.yaml new file mode 100644 index 0000000..e89bb5a --- /dev/null +++ b/trilium/james.yaml @@ -0,0 +1,90 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + labels: + wildcard-tls.kn8v.com/copy: "true" + name: trilium-james +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: trilium-data + namespace: trilium-james +spec: + accessModes: + - ReadWriteMany + resources: + requests: + storage: 10Gi + storageClassName: nfs +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + namespace: trilium-james + name: trilium +spec: + replicas: 1 + selector: + matchLabels: + app: trilium + strategy: + type: Recreate + template: + metadata: + labels: + app: trilium + spec: + containers: + - name: trilium + image: zadam/trilium:0.60.4 + volumeMounts: + - mountPath: /home/node/trilium-data + name: trilium-data + volumes: + - name: trilium-data + persistentVolumeClaim: + claimName: trilium-data + restartPolicy: Always +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: trilium + namespace: trilium-james +spec: + ingressClassName: istio + rules: + - host: notes.strudelline.net + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: trilium + port: + number: 8080 + tls: + - hosts: + - notes.strudelline.net + secretName: wildcard-tls +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app: trilium + name: trilium + namespace: trilium-james +spec: + selector: + app: trilium + ports: + - name: http + port: 8080 + protocol: TCP + targetPort: 8080 + clusterIP: None + type: ClusterIP diff --git a/trilium/rj.yaml b/trilium/rj.yaml new file mode 100644 index 0000000..f1ec776 --- /dev/null +++ b/trilium/rj.yaml @@ -0,0 +1,90 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + labels: + wildcard-tls.kn8v.com/copy: "true" + name: trilium-rj +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: trilium-data + namespace: trilium-rj +spec: + accessModes: + - ReadWriteMany + resources: + requests: + storage: 10Gi + storageClassName: nfs +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + namespace: trilium-rj + name: trilium +spec: + replicas: 1 + selector: + matchLabels: + app: trilium + strategy: + type: Recreate + template: + metadata: + labels: + app: trilium + spec: + containers: + - name: trilium + image: zadam/trilium:0.60.4 + volumeMounts: + - mountPath: /home/node/trilium-data + name: trilium-data + volumes: + - name: trilium-data + persistentVolumeClaim: + claimName: trilium-data + restartPolicy: Always +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: trilium + namespace: trilium-rj +spec: + ingressClassName: istio + rules: + - host: rj.strudelline.net + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: trilium + port: + number: 8080 + tls: + - hosts: + - rj.strudelline.net + secretName: wildcard-tls +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app: trilium + name: trilium + namespace: trilium-rj +spec: + selector: + app: trilium + ports: + - name: http + port: 8080 + protocol: TCP + targetPort: 8080 + clusterIP: None + type: ClusterIP