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
87225c0b
Commit
87225c0b
authored
Jun 12, 2018
by
Shyam Jeedigunta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase logexporter timeout and add debug logs
parent
e6f64d0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
log-dump.sh
cluster/log-dump/log-dump.sh
+2
-1
No files found.
cluster/log-dump/log-dump.sh
View file @
87225c0b
...
@@ -294,7 +294,7 @@ function dump_nodes_with_logexporter() {
...
@@ -294,7 +294,7 @@ function dump_nodes_with_logexporter() {
local
-r
service_account_credentials
=
"
$(
cat
${
GOOGLE_APPLICATION_CREDENTIALS
}
|
base64
|
tr
-d
'\n'
)
"
local
-r
service_account_credentials
=
"
$(
cat
${
GOOGLE_APPLICATION_CREDENTIALS
}
|
base64
|
tr
-d
'\n'
)
"
local
-r
cloud_provider
=
"
${
KUBERNETES_PROVIDER
}
"
local
-r
cloud_provider
=
"
${
KUBERNETES_PROVIDER
}
"
local
-r
enable_hollow_node_logs
=
"
${
ENABLE_HOLLOW_NODE_LOGS
:-
false
}
"
local
-r
enable_hollow_node_logs
=
"
${
ENABLE_HOLLOW_NODE_LOGS
:-
false
}
"
local
-r
logexport_sleep_seconds
=
"
$((
90
+
NUM_NODES
/
5
))
"
local
-r
logexport_sleep_seconds
=
"
$((
90
+
NUM_NODES
/
3
))
"
# Fill in the parameters in the logexporter daemonset template.
# Fill in the parameters in the logexporter daemonset template.
sed
-i
''
-e
"s@{{.LogexporterNamespace}}@
${
logexporter_namespace
}
@g"
"
${
KUBE_ROOT
}
/cluster/log-dump/logexporter-daemonset.yaml"
sed
-i
''
-e
"s@{{.LogexporterNamespace}}@
${
logexporter_namespace
}
@g"
"
${
KUBE_ROOT
}
/cluster/log-dump/logexporter-daemonset.yaml"
...
@@ -345,6 +345,7 @@ function dump_nodes_with_logexporter() {
...
@@ -345,6 +345,7 @@ function dump_nodes_with_logexporter() {
done
done
# Delete the logexporter resources and dump logs for the failed nodes (if any) through SSH.
# Delete the logexporter resources and dump logs for the failed nodes (if any) through SSH.
"
${
KUBECTL
}
"
get pods
--namespace
"
${
logexporter_namespace
}
"
||
true
"
${
KUBECTL
}
"
delete namespace
"
${
logexporter_namespace
}
"
||
true
"
${
KUBECTL
}
"
delete namespace
"
${
logexporter_namespace
}
"
||
true
if
[[
"
${#
failed_nodes
[@]
}
"
!=
0
]]
;
then
if
[[
"
${#
failed_nodes
[@]
}
"
!=
0
]]
;
then
echo
-e
"Dumping logs through SSH for the following nodes:
\n
${
failed_nodes
[@]
}
"
echo
-e
"Dumping logs through SSH for the following nodes:
\n
${
failed_nodes
[@]
}
"
...
...
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