mirror of
https://18126008609:longquanjian123@gitee.com/feigong123/aurask.git
synced 2026-04-19 19:31:05 +00:00
63 lines
1.5 KiB
YAML
63 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: aurask-worker
|
|
namespace: aurask
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: aurask-worker
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: aurask-worker
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: devcloud-registry
|
|
terminationGracePeriodSeconds: 10
|
|
containers:
|
|
- name: worker
|
|
image: registry.mydevcloud.love/devcloud/aurask-api:latest
|
|
imagePullPolicy: Always
|
|
command:
|
|
- python
|
|
- -m
|
|
- aurask
|
|
- worker
|
|
- --data
|
|
- /data/state.json
|
|
envFrom:
|
|
- configMapRef:
|
|
name: aurask-runtime-config
|
|
- secretRef:
|
|
name: aurask-runtime-secrets
|
|
optional: true
|
|
volumeMounts:
|
|
- name: aurask-api-state
|
|
mountPath: /data
|
|
startupProbe:
|
|
exec:
|
|
command:
|
|
- python
|
|
- -m
|
|
- aurask
|
|
- worker
|
|
- --data
|
|
- /data/state.json
|
|
- --once
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
failureThreshold: 12
|
|
resources:
|
|
requests:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
limits:
|
|
cpu: "1"
|
|
memory: 1Gi
|
|
volumes:
|
|
- name: aurask-api-state
|
|
persistentVolumeClaim:
|
|
claimName: aurask-api-state
|