fix: Obsidian service port and health checks, use Longhorn storage
Build and Push / Test (push) Failing after 1m40s
Build and Push / Build and push image (push) Skipped

This commit is contained in:
Story Crater Bot
2026-08-27 21:37:47 -07:00
parent cb8fade9d9
commit 4524d62568
+14 -37
View File
@@ -21,17 +21,13 @@ spec:
app.kubernetes.io/part-of: poimen-memory app.kubernetes.io/part-of: poimen-memory
spec: spec:
serviceAccountName: obsidian-server serviceAccountName: obsidian-server
securityContext:
runAsNonRoot: true
runAsUser: 1000
fsGroup: 1000
containers: containers:
- name: obsidian-server - name: obsidian-server
image: ppatlabs/obsidian:latest image: ppatlabs/obsidian:latest
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
ports: ports:
- name: http - name: http
containerPort: 8080 containerPort: 27124
protocol: TCP protocol: TCP
env: env:
- name: VAULT_NAME - name: VAULT_NAME
@@ -45,7 +41,7 @@ spec:
volumeMounts: volumeMounts:
- name: vault - name: vault
mountPath: /vault mountPath: /vault
- name: obsidian-config - name: config
mountPath: /config mountPath: /config
resources: resources:
requests: requests:
@@ -56,23 +52,26 @@ spec:
memory: 512Mi memory: 512Mi
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /health path: /
port: http port: http
initialDelaySeconds: 10 scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 10 periodSeconds: 10
timeoutSeconds: 5
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /health path: /
port: http port: http
initialDelaySeconds: 5 scheme: HTTPS
initialDelaySeconds: 15
periodSeconds: 5 periodSeconds: 5
timeoutSeconds: 5
volumes: volumes:
- name: vault - name: vault
persistentVolumeClaim: persistentVolumeClaim:
claimName: obsidian-vault claimName: obsidian-vault
- name: obsidian-config - name: config
configMap: emptyDir: {}
name: obsidian-config
--- ---
# PVC for vault storage # PVC for vault storage
@@ -86,7 +85,7 @@ metadata:
spec: spec:
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
storageClassName: local-path storageClassName: longhorn
resources: resources:
requests: requests:
storage: 10Gi storage: 10Gi
@@ -105,7 +104,7 @@ spec:
ports: ports:
- name: http - name: http
port: 80 port: 80
targetPort: http targetPort: 27124
protocol: TCP protocol: TCP
selector: selector:
app.kubernetes.io/name: obsidian-server app.kubernetes.io/name: obsidian-server
@@ -120,28 +119,6 @@ metadata:
labels: labels:
app.kubernetes.io/name: obsidian-server 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 # Ingress for external access
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1