Commit 17d044df authored by zhongshangwu's avatar zhongshangwu

增加celery deployment

parent e2341ab5
Pipeline #5083 passed with stage
......@@ -82,6 +82,21 @@ steps:
template: deploy.yaml
tag: ${DRONE_COMMIT}
- name: deploy-celery-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.yaml
tag: ${DRONE_COMMIT}
trigger:
branch:
- deploy/*
......
# deployment
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: physical-celery
release: physical-celery
name: physical-celery
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: physical-celery
release: physical-celery
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: physical-celery
release: physical-celery
spec:
containers:
- args:
- worker
- -A
- physical
- -Q
- tapir-alpha
- -c5
- --loglevel=INFO
- --maxtasksperchild
- "500"
command:
- celery
image: ccr.ccs.tencentyun.com/gm-ai/like-physical:<IMAGE_TAG>
imagePullPolicy: Always
name: physical
imagePullSecrets:
- name: gm-secret
restartPolicy: Always
---
# deployment
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: physical-celery-vest
release: physical-celery-vest
name: physical-celery-vest
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: physical-celery-vest
release: physical-celery-vest
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: physical-celery-vest
release: physical-celery-vest
spec:
containers:
- args:
- worker
- -A
- community
- -Q
- vest
- -c5
- --loglevel=INFO
- --maxtasksperchild
- "500"
command:
- celery
image: ccr.ccs.tencentyun.com/gm-ai/like-physical:<IMAGE_TAG>
imagePullPolicy: Always
name: physical
imagePullSecrets:
- name: gm-secret
restartPolicy: Always
......@@ -56,4 +56,46 @@ spec:
protocol: TCP
imagePullSecrets:
- name: gm-secret
restartPolicy: Always
---
# deployment
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: physical-liucb
release: physical-liucb
name: physical-liucb
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: physical-liucb
release: physical-liucb
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: physical-liucb
release: physical-liucb
spec:
containers:
- command:
- /bin/bash
- -c
- python manage.py trans2es_data2es_parallel -S linucb
image: ccr.ccs.tencentyun.com/gm-ai/like-physical:<IMAGE_TAG>
imagePullPolicy: Always
name: physical-liucb
ports:
- containerPort: 80
name: http
protocol: TCP
imagePullSecrets:
- name: gm-secret
restartPolicy: Always
\ No newline at end of file
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