97d7bcef60
K8s injects TRILIUM_PORT=tcp://... from the service, but Trilium expects an integer. enableServiceLinks: false prevents the collision.
37 lines
788 B
YAML
37 lines
788 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: trilium
|
|
namespace: trilium
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: trilium
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: trilium
|
|
spec:
|
|
enableServiceLinks: false
|
|
containers:
|
|
- name: trilium
|
|
image: zadam/trilium:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8080
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /home/node/trilium-data
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: trilium-pvc
|