Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k8syml
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
k8syml
Commits
37ebdfa5
Commit
37ebdfa5
authored
Dec 09, 2019
by
王昆
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.gongsibao.com:jiangyong/k8syml
parents
f6fd00f6
538dc808
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
9 deletions
+67
-9
yamls/jobs/cronjobs.yml
+14
-7
yamls/jobs/jobnamespace.yml
+4
-0
yamls/jobs/nocronjobs.yml
+47
-0
yamls/zhichan/all-ingress.yaml
+1
-1
yamls/zhichan/igirl-channel-gateway.yaml
+1
-1
No files found.
yamls/jobs/cron
test
.yml
→
yamls/jobs/cron
jobs
.yml
View file @
37ebdfa5
apiVersion
:
batch/v2alpha1
apiVersion
:
batch/v2alpha1
kind
:
CronJob
kind
:
CronJob
metadata
:
metadata
:
name
:
cronjob-demo
name
:
cronjob-taskdemo
namespace
:
job-tasks
spec
:
spec
:
schedule
:
"
*/1
*
*
*
*"
schedule
:
"
*/1
*
*
*
*"
jobTemplate
:
jobTemplate
:
...
@@ -11,8 +12,15 @@ spec:
...
@@ -11,8 +12,15 @@ spec:
restartPolicy
:
OnFailure
restartPolicy
:
OnFailure
containers
:
containers
:
-
name
:
hello
-
name
:
hello
image
:
busybox
image
:
registry.cn-beijing.aliyuncs.com/hantang/taskexec:39.0.2
args
:
imagePullPolicy
:
IfNotPresent
-
"
bin/sh"
env
:
-
"
-c"
-
name
:
TZ
-
"
for
i
in
9
8
7
6
5
4
3
2
1;
do
echo
$i;
done"
value
:
Asia/Shanghai
\ No newline at end of file
-
name
:
LANG
value
:
zh_CN.UTF-8
-
name
:
TASK_NAME
value
:
testTask
-
name
:
TASK_PARAM
value
:
hello,world
yamls/jobs/jobnamespace.yml
0 → 100644
View file @
37ebdfa5
apiVersion
:
v1
kind
:
Namespace
metadata
:
name
:
job-tasks
yamls/jobs/nocronjobs.yml
0 → 100644
View file @
37ebdfa5
# spec.template格式同Pod
# RestartPolicy仅支持Never或OnFailure
# 单个Pod时,默认Pod成功运行后Job即结束
# .spec.completions标志Job结束需要成功运行的Pod个数,默认为1
# .spec.parallelism标志并行运行的Pod的个数,默认为1
# spec.activeDeadlineSeconds标志失败Pod的重试最大时间,超过这个时间不会继续重试
# apiVersion: batch/v1
# kind: Job
# metadata:
# name: busybox
# spec:
# completions: 3
# template:
# metadata:
# name: busybox
# spec:
# containers:
# - name: busybox
# image: busybox
# command: ["echo", "hello"]
# restartPolicy: Never
apiVersion
:
batch/v1
kind
:
Job
metadata
:
name
:
helloworldjob
namespace
:
job-tasks
spec
:
template
:
metadata
:
name
:
helloworldjob
spec
:
containers
:
-
name
:
helloworldjob
image
:
registry.cn-beijing.aliyuncs.com/hantang/taskexec:39.0.2
imagePullPolicy
:
IfNotPresent
env
:
-
name
:
TZ
value
:
Asia/Shanghai
-
name
:
LANG
value
:
zh_CN.UTF-8
-
name
:
TASK_NAME
value
:
testTask
-
name
:
TASK_PARAM
value
:
hello,world
restartPolicy
:
Never
yamls/zhichan/all-ingress.yaml
View file @
37ebdfa5
...
@@ -175,7 +175,7 @@ metadata:
...
@@ -175,7 +175,7 @@ metadata:
namespace
:
chaolai
namespace
:
chaolai
spec
:
spec
:
rules
:
rules
:
-
host
:
jaxiya.gongsibao.com
-
host
:
j
i
axiya.gongsibao.com
http
:
http
:
paths
:
paths
:
-
path
:
/
-
path
:
/
...
...
yamls/zhichan/igirl-channel-gateway.yaml
View file @
37ebdfa5
...
@@ -18,7 +18,7 @@ spec:
...
@@ -18,7 +18,7 @@ spec:
restartPolicy
:
Always
restartPolicy
:
Always
containers
:
containers
:
-
name
:
igirlchannelgateway
-
name
:
igirlchannelgateway
image
:
registry.cn-beijing.aliyuncs.com/hantang/igirlchannelgateway:31.0.
8
image
:
registry.cn-beijing.aliyuncs.com/hantang/igirlchannelgateway:31.0.
9
imagePullPolicy
:
IfNotPresent
imagePullPolicy
:
IfNotPresent
ports
:
ports
:
-
containerPort
:
80
-
containerPort
:
80
...
...
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