Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpha
physical
Commits
17d044df
Commit
17d044df
authored
Nov 22, 2019
by
zhongshangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加celery deployment
parent
e2341ab5
Pipeline
#5083
passed with stage
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
149 additions
and
0 deletions
+149
-0
.drone.yml
.drone.yml
+15
-0
deploy.celery.yaml.temp
deploy.celery.yaml.temp
+91
-0
deploy.yaml.temp
deploy.yaml.temp
+43
-0
No files found.
.drone.yml
View file @
17d044df
...
@@ -82,6 +82,21 @@ steps:
...
@@ -82,6 +82,21 @@ steps:
template
:
deploy.yaml
template
:
deploy.yaml
tag
:
${DRONE_COMMIT}
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
:
trigger
:
branch
:
branch
:
-
deploy/*
-
deploy/*
...
...
deploy.celery.yaml.temp
0 → 100644
View file @
17d044df
# 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
deploy.yaml.temp
View file @
17d044df
...
@@ -56,4 +56,46 @@ spec:
...
@@ -56,4 +56,46 @@ spec:
protocol: TCP
protocol: TCP
imagePullSecrets:
imagePullSecrets:
- name: gm-secret
- 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
restartPolicy: Always
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment