This commit is contained in:
+43
-39
@@ -21,44 +21,48 @@ spec:
|
|||||||
app: enka-api
|
app: enka-api
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: enka-api
|
- name: enka-api
|
||||||
image: registry.neko-piranha.ts.net/astral/api
|
image: registry.neko-piranha.ts.net/astral/api
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
env:
|
env:
|
||||||
- name: TAKUMI_CORE_TARGET
|
- name: TAKUMI_CORE_TARGET
|
||||||
value: ./core.linux-arm64-musl.node
|
value: ./core.linux-arm64-musl.node
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: enka-env
|
name: enka-env
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: enka-route-map
|
name: enka-route-map
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /health
|
path: /health
|
||||||
port: 3000
|
port: 3000
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /health
|
path: /health
|
||||||
port: 3000
|
port: 3000
|
||||||
initialDelaySeconds: 2
|
initialDelaySeconds: 2
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 250m
|
cpu: 250m
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
volumeMounts:
|
limits:
|
||||||
- name: assets
|
cpu: 2000m
|
||||||
mountPath: /app/store
|
memory: 1Gi
|
||||||
|
volumeMounts:
|
||||||
|
- name: assets
|
||||||
|
mountPath: /app/store
|
||||||
volumes:
|
volumes:
|
||||||
- name: assets
|
- name: assets
|
||||||
persistentVolumeClaim:
|
hostPath:
|
||||||
claimName: enka-embed-assets-lh
|
path: /opt/enka-api-assets
|
||||||
|
type: DirectoryOrCreate
|
||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ resources:
|
|||||||
- deployment.yaml
|
- deployment.yaml
|
||||||
- service.yaml
|
- service.yaml
|
||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
- pvc.yaml
|
|
||||||
- secret.yaml
|
- secret.yaml
|
||||||
- service-account.yaml
|
- service-account.yaml
|
||||||
- role.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