fix: don't use longhorn for cache
Build and Deploy / build-and-deploy (push) Has been cancelled

This commit is contained in:
2026-07-07 18:25:20 +07:00 Unverified
parent cd3c386250
commit 6661de0653
3 changed files with 43 additions and 52 deletions
+43 -39
View File
@@ -21,44 +21,48 @@ spec:
app: enka-api
spec:
containers:
- name: enka-api
image: registry.neko-piranha.ts.net/astral/api
imagePullPolicy: Always
ports:
- containerPort: 3000
env:
- name: TAKUMI_CORE_TARGET
value: ./core.linux-arm64-musl.node
envFrom:
- secretRef:
name: enka-env
- configMapRef:
name: enka-route-map
livenessProbe:
httpGet:
path: /health
port: 3000
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
port: 3000
initialDelaySeconds: 2
periodSeconds: 5
timeoutSeconds: 1
failureThreshold: 3
resources:
requests:
cpu: 250m
memory: 128Mi
volumeMounts:
- name: assets
mountPath: /app/store
- name: enka-api
image: registry.neko-piranha.ts.net/astral/api
imagePullPolicy: Always
ports:
- containerPort: 3000
env:
- name: TAKUMI_CORE_TARGET
value: ./core.linux-arm64-musl.node
envFrom:
- secretRef:
name: enka-env
- configMapRef:
name: enka-route-map
livenessProbe:
httpGet:
path: /health
port: 3000
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
port: 3000
initialDelaySeconds: 2
periodSeconds: 5
timeoutSeconds: 1
failureThreshold: 3
resources:
requests:
cpu: 250m
memory: 128Mi
limits:
cpu: 2000m
memory: 1Gi
volumeMounts:
- name: assets
mountPath: /app/store
volumes:
- name: assets
persistentVolumeClaim:
claimName: enka-embed-assets-lh
- name: assets
hostPath:
path: /opt/enka-api-assets
type: DirectoryOrCreate
terminationGracePeriodSeconds: 30
-1
View File
@@ -8,7 +8,6 @@ resources:
- deployment.yaml
- service.yaml
- ingress.yaml
- pvc.yaml
- secret.yaml
- service-account.yaml
- role.yaml
-12
View File
@@ -1,12 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: enka-embed-assets-lh
namespace: enka
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
storageClassName: longhorn