Files
home-cluster-ops/apps/obsidian/base/deployment.yaml
2024-07-25 07:47:18 +10:00

62 lines
1.6 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: obsidian
namespace: obsidian
labels:
app.kubernetes.io/name: obsidian
spec:
selector:
matchLabels:
app.kubernetes.io/name: obsidian
template:
metadata:
labels:
app.kubernetes.io/name: obsidian
spec:
containers:
- name: obsidian
image: ghcr.io/sytone/obsidian-remote:0.1.1
securityContext:
allowPrivilegeEscalation: true
env:
- name: TZ
value: "Australia/Sydney"
- name: DOCKER_MODS
value: "linuxserver/mods:universal-git"
- name: CUSTOM_PORT
value: "8080"
- name: CUSTOM_HTTPS_PORT
value: "8443"
- name: KEYBOARD
value: "en-us-qwerty"
- name: TITLE
value: "Obsidian"
- name: CUSTOM_USER
value: ""
- name: PASSWORD
value: ""
- name: SUBFOLDER
value: ""
ports:
- protocol: TCP
containerPort: 8080
name: http
- protocol: TCP
containerPort: 8443
name: https
volumeMounts:
- name: obsidian-config
mountPath: /config
- name: obsidian-vaults
mountPath: /vaults
volumes:
- name: obsidian-config
hostPath:
path: /mnt/nfs/AppData/obsidian/config
type: Directory
- name: obsidian-vaults
hostPath:
path: /mnt/nfs/AppData/obsidian/vaults
type: Directory