Commit a74d2f3e authored by zhongshangwu's avatar zhongshangwu

增加celery beat

parent 17d044df
...@@ -97,11 +97,25 @@ steps: ...@@ -97,11 +97,25 @@ steps:
template: deploy.celery.yaml template: deploy.celery.yaml
tag: ${DRONE_COMMIT} 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: trigger:
branch: branch:
- deploy/* - deploy/*
image_pull_secrets: image_pull_secrets:
- dockerconfig - 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: ...@@ -39,7 +39,7 @@ spec:
- celery - celery
image: ccr.ccs.tencentyun.com/gm-ai/like-physical:<IMAGE_TAG> image: ccr.ccs.tencentyun.com/gm-ai/like-physical:<IMAGE_TAG>
imagePullPolicy: Always imagePullPolicy: Always
name: physical name: physical-celery
imagePullSecrets: imagePullSecrets:
- name: gm-secret - name: gm-secret
restartPolicy: Always restartPolicy: Always
...@@ -74,7 +74,7 @@ spec: ...@@ -74,7 +74,7 @@ spec:
- args: - args:
- worker - worker
- -A - -A
- community - physical
- -Q - -Q
- vest - vest
- -c5 - -c5
...@@ -85,7 +85,7 @@ spec: ...@@ -85,7 +85,7 @@ spec:
- celery - celery
image: ccr.ccs.tencentyun.com/gm-ai/like-physical:<IMAGE_TAG> image: ccr.ccs.tencentyun.com/gm-ai/like-physical:<IMAGE_TAG>
imagePullPolicy: Always imagePullPolicy: Always
name: physical name: physical-celery-vest
imagePullSecrets: imagePullSecrets:
- name: gm-secret - name: gm-secret
restartPolicy: Always 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