Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
springboot-k8s-example
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
demo
springboot-k8s-example
Commits
cb3859b2
Commit
cb3859b2
authored
Nov 10, 2018
by
lusyoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加构建时取消istio自动注入
parent
60200660
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
Jenkinsfile
jenkins/Jenkinsfile
+8
-2
Jenkinsfile-charts
jenkins/Jenkinsfile-charts
+6
-1
No files found.
jenkins/Jenkinsfile
View file @
cb3859b2
...
...
@@ -16,12 +16,18 @@ def label = "mypod-${UUID.randomUUID().toString()}"
podTemplate
(
label:
label
,
cloud:
'kubernetes'
,
containers:
[
containerTemplate
(
name:
'maven'
,
image:
'maven'
,
command:
'cat'
,
ttyEnabled:
true
),
containerTemplate
(
name:
'docker'
,
image:
'docker'
,
command:
'cat'
,
ttyEnabled:
true
),
containerTemplate
(
name:
'kubectl'
,
image:
'lachlanevenson/k8s-kubectl:v1.10.2'
,
command:
'cat'
,
ttyEnabled:
true
)
],
containerTemplate
(
name:
'kubectl'
,
image:
'lachlanevenson/k8s-kubectl:v1.10.2'
,
command:
'cat'
,
ttyEnabled:
true
)
],
volumes:
[
hostPathVolume
(
hostPath:
'/var/run/docker.sock'
,
mountPath:
'/var/run/docker.sock'
),
hostPathVolume
(
hostPath:
'/root/.kube'
,
mountPath:
'/root/.kube'
),
hostPathVolume
(
hostPath:
'/root/.m2'
,
mountPath:
'/root/.m2'
)
])
{
],
annotations:
[
podAnnotation
(
key:
"sidecar.istio.io/inject"
,
value:
"false"
)
]
)
{
node
(
label
)
{
...
...
jenkins/Jenkinsfile-charts
View file @
cb3859b2
...
...
@@ -23,7 +23,12 @@ podTemplate(label: label, cloud: 'kubernetes', containers: [
hostPathVolume
(
hostPath:
'/var/run/docker.sock'
,
mountPath:
'/var/run/docker.sock'
),
hostPathVolume
(
hostPath:
'/root/.kube'
,
mountPath:
'/root/.kube'
),
hostPathVolume
(
hostPath:
'/root/.m2'
,
mountPath:
'/root/.m2'
)
])
{
],
annotations:
[
podAnnotation
(
key:
"sidecar.istio.io/inject"
,
value:
"false"
)
]
)
{
node
(
label
)
{
...
...
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