33 lines
771 B
YAML
33 lines
771 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: api-cron-deployment
|
|
namespace: hsv2
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: api-cron
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: api-cron
|
|
spec:
|
|
containers:
|
|
- name: api-cron
|
|
image: hub.yizhisec.com/hybridscope/mie-server:latest
|
|
imagePullPolicy: IfNotPresent
|
|
args: ["server.schedule"]
|
|
volumeMounts:
|
|
- name: config-volume
|
|
mountPath: /yizhisec/web_server/conf/conf.yml
|
|
subPath: conf.yml
|
|
readOnly: true
|
|
volumes:
|
|
- name: config-volume
|
|
configMap:
|
|
name: config-api
|
|
items:
|
|
- key: conf.yml
|
|
path: conf.yml
|