This commit is contained in:
+43
-39
@@ -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
|
||||
|
||||
@@ -8,7 +8,6 @@ resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- ingress.yaml
|
||||
- pvc.yaml
|
||||
- secret.yaml
|
||||
- service-account.yaml
|
||||
- role.yaml
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user