feat: 🏡 make apps
This commit is contained in:
36
pkg/resource/app.mie.sweeper.yaml
Normal file
36
pkg/resource/app.mie.sweeper.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: api-sweeper-deployment
|
||||
namespace: hsv2
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: api-sweeper
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: api-sweeper
|
||||
spec:
|
||||
containers:
|
||||
- name: api-sweeper
|
||||
image: hub.yizhisec.com/hybridscope/mie-server:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
args: ["server.delay_sweeper"]
|
||||
volumeMounts:
|
||||
- name: config-volume
|
||||
mountPath: /yizhisec/web_server/conf/conf.yml
|
||||
subPath: conf.yml
|
||||
readOnly: true
|
||||
- name: log-data
|
||||
mountPath: /yizhisec/web_server/logs
|
||||
volumes:
|
||||
- name: log-data
|
||||
emptyDir: {}
|
||||
- name: config-volume
|
||||
configMap:
|
||||
name: config-api
|
||||
items:
|
||||
- key: conf.yml
|
||||
path: conf.yml
|
||||
Reference in New Issue
Block a user