fix: Obsidian service port and health checks, use Longhorn storage
This commit is contained in:
+14
-37
@@ -21,17 +21,13 @@ spec:
|
||||
app.kubernetes.io/part-of: poimen-memory
|
||||
spec:
|
||||
serviceAccountName: obsidian-server
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 1000
|
||||
fsGroup: 1000
|
||||
containers:
|
||||
- name: obsidian-server
|
||||
image: ppatlabs/obsidian:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
containerPort: 27124
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: VAULT_NAME
|
||||
@@ -45,7 +41,7 @@ spec:
|
||||
volumeMounts:
|
||||
- name: vault
|
||||
mountPath: /vault
|
||||
- name: obsidian-config
|
||||
- name: config
|
||||
mountPath: /config
|
||||
resources:
|
||||
requests:
|
||||
@@ -56,23 +52,26 @@ spec:
|
||||
memory: 512Mi
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 10
|
||||
scheme: HTTPS
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 5
|
||||
scheme: HTTPS
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 5
|
||||
volumes:
|
||||
- name: vault
|
||||
persistentVolumeClaim:
|
||||
claimName: obsidian-vault
|
||||
- name: obsidian-config
|
||||
configMap:
|
||||
name: obsidian-config
|
||||
- name: config
|
||||
emptyDir: {}
|
||||
|
||||
---
|
||||
# PVC for vault storage
|
||||
@@ -86,7 +85,7 @@ metadata:
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: local-path
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
@@ -105,7 +104,7 @@ spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: http
|
||||
targetPort: 27124
|
||||
protocol: TCP
|
||||
selector:
|
||||
app.kubernetes.io/name: obsidian-server
|
||||
@@ -120,28 +119,6 @@ metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: obsidian-server
|
||||
|
||||
---
|
||||
# ConfigMap for Obsidian configuration
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: obsidian-config
|
||||
namespace: poimen
|
||||
data:
|
||||
obsidian.conf: |
|
||||
# Obsidian Server Configuration
|
||||
# Enable API endpoints for vault operations
|
||||
enableApi: true
|
||||
|
||||
# Enable sync with external services
|
||||
enableSync: true
|
||||
|
||||
# API settings
|
||||
apiPath: /api
|
||||
apiPort: 8080
|
||||
vaultPath: /vault
|
||||
restApiEnabled: true
|
||||
|
||||
---
|
||||
# Ingress for external access
|
||||
apiVersion: networking.k8s.io/v1
|
||||
|
||||
Reference in New Issue
Block a user