Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
abbed4f7
Commit
abbed4f7
authored
Nov 13, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #17029 from mesosphere/sttts-enforce-log-dump
Auto commit by PR queue bot
parents
52ad097e
58f57f8a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
config-default.sh
cluster/mesos/docker/config-default.sh
+7
-0
util.sh
cluster/mesos/docker/util.sh
+4
-1
No files found.
cluster/mesos/docker/config-default.sh
View file @
abbed4f7
...
...
@@ -62,3 +62,10 @@ MESOS_DOCKER_WORK_DIR="${MESOS_DOCKER_WORK_DIR:-${HOME}/tmp/kubernetes}"
# Arguments to pass to docker-engine running on the mesos-slave-dind containers.
DOCKER_DAEMON_ARGS
=
"
${
DOCKER_DAEMON_ARGS
:-
--log-level=error
}
"
# Force a dump of the logs into ${MESOS_DOCKER_WORK_DIR}/log on kube-down.sh. By
# default this only happens when kube-up.sh fails.
MESOS_DOCKER_DUMP_LOGS
=
"
${
MESOS_DOCKER_DUMP_LOGS
:-
false
}
"
# Skip rebuilding the involved docker containers on kube-up.sh.
MESOS_DOCKER_SKIP_BUILD
=
"
${
MESOS_DOCKER_SKIP_BUILD
:-
false
}
"
cluster/mesos/docker/util.sh
View file @
abbed4f7
...
...
@@ -267,7 +267,7 @@ function kube-up {
echo
"Pulling Docker images"
1>&2
cluster::mesos::docker::docker_compose_lazy_pull
if
[
"
${
MESOS_DOCKER_SKIP_BUILD
:-
false
}
"
!=
"true"
]
;
then
if
[
"
${
MESOS_DOCKER_SKIP_BUILD
}
"
!=
"true"
]
;
then
echo
"Building Docker images"
1>&2
# TODO: version images (k8s version, git sha, and dirty state) to avoid re-building them every time.
"
${
provider_root
}
/km/build.sh"
...
...
@@ -317,6 +317,9 @@ function validate-cluster {
# Delete a kubernetes cluster
function
kube-down
{
if
[
"
${
MESOS_DOCKER_DUMP_LOGS
}
"
==
"true"
]
;
then
cluster::mesos::docker::dump_logs
"
${
MESOS_DOCKER_WORK_DIR
}
/log"
fi
echo
"Stopping
${
KUBERNETES_PROVIDER
}
cluster"
1>&2
# Since restoring a stopped cluster is not yet supported, use the nuclear option
cluster::mesos::docker::docker_compose
kill
...
...
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