Commit a74d2f3e authored by zhongshangwu's avatar zhongshangwu

增加celery beat

parent 17d044df
......@@ -97,11 +97,25 @@ steps:
template: deploy.celery.yaml
tag: ${DRONE_COMMIT}
- name: deploy-celery-beat-test
image: ccr.ccs.tencentyun.com/gm-ai/drone-kube:test
when:
branch:
- deploy/like-test
instance:
exclude:
- cicd.iyanzhi.com
environment:
repo: alpha/physical
settings:
namespace: ${DRONE_BRANCH}
template: deploy.celery-beat.yaml
tag: ${DRONE_COMMIT}
trigger:
branch:
- deploy/*
image_pull_secrets:
- dockerconfig
# deployment
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: physical-celery-beat
release: physical-celery-beat
name: physical-celery-beat
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: physical-celery-beat
release: physical-celery-beat
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: physical-celery-beat
release: physical-celery-beat
spec:
containers:
- args:
- beat
- -A
- physical
- --loglevel=DEBUG
command:
- celery
image: ccr.ccs.tencentyun.com/gm-ai/like-physical:<IMAGE_TAG>
imagePullPolicy: Always
name: physical-celery-beat
imagePullSecrets:
- name: gm-secret
restartPolicy: Always
\ No newline at end of file
......@@ -39,7 +39,7 @@ spec:
- celery
image: ccr.ccs.tencentyun.com/gm-ai/like-physical:<IMAGE_TAG>
imagePullPolicy: Always
name: physical
name: physical-celery
imagePullSecrets:
- name: gm-secret
restartPolicy: Always
......@@ -74,7 +74,7 @@ spec:
- args:
- worker
- -A
- community
- physical
- -Q
- vest
- -c5
......@@ -85,7 +85,7 @@ spec:
- celery
image: ccr.ccs.tencentyun.com/gm-ai/like-physical:<IMAGE_TAG>
imagePullPolicy: Always
name: physical
name: physical-celery-vest
imagePullSecrets:
- name: gm-secret
restartPolicy: Always
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment