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
ed0ab3cd
Commit
ed0ab3cd
authored
Feb 20, 2017
by
Shyam Jeedigunta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Kubemark] Add option to log hollow-node logs
parent
6d5b2ef4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
18 deletions
+11
-18
log-dump.sh
cluster/log-dump.sh
+4
-0
hollow-node_template.json
test/kubemark/resources/hollow-node_template.json
+6
-17
kernel-monitor.json
test/kubemark/resources/kernel-monitor.json
+1
-1
No files found.
cluster/log-dump.sh
View file @
ed0ab3cd
...
...
@@ -38,6 +38,7 @@ readonly node_ssh_supported_providers="gce gke aws"
readonly
master_logfiles
=
"kube-apiserver kube-scheduler rescheduler kube-controller-manager etcd etcd-events glbc cluster-autoscaler kube-addon-manager fluentd"
readonly
node_logfiles
=
"kube-proxy fluentd"
readonly
hollow_node_logfiles
=
"kubelet-hollow-node-* kubeproxy-hollow-node-* npd-*"
readonly
aws_logfiles
=
"cloud-init-output"
readonly
gce_logfiles
=
"startupscript"
readonly
kern_logfile
=
"kern"
...
...
@@ -128,6 +129,9 @@ function save-logs() {
case
"
${
KUBERNETES_PROVIDER
}
"
in
gce|gke|kubemark
)
files
=
"
${
files
}
${
gce_logfiles
}
"
if
[[
"
${
KUBERNETES_PROVIDER
}
"
-eq
"kubemark"
&&
"
${
ENABLE_HOLLOW_NODE_LOGS
:-}
"
-eq
"true"
]]
;
then
files
=
"
${
files
}
${
hollow_node_logfiles
}
"
fi
;;
aws
)
files
=
"
${
files
}
${
aws_logfiles
}
"
...
...
test/kubemark/resources/hollow-node_template.json
View file @
ed0ab3cd
...
...
@@ -35,12 +35,6 @@
{
"name"
:
"logs-volume"
,
"hostPath"
:
{
"path"
:
"/var/logs"
}
},
{
"name"
:
"kernellog-volume"
,
"hostPath"
:
{
"path"
:
"/var/log"
}
},
...
...
@@ -80,7 +74,7 @@
"command"
:
[
"/bin/sh"
,
"-c"
,
"./kubemark.sh --morph=kubelet --name=$(NODE_NAME) --kubeconfig=/kubeconfig/kubelet.kubeconfig $(CONTENT_TYPE) --v=2 1>>/var/log
s/kubelet_
$(NODE_NAME).log 2>&1"
"./kubemark.sh --morph=kubelet --name=$(NODE_NAME) --kubeconfig=/kubeconfig/kubelet.kubeconfig $(CONTENT_TYPE) --v=2 1>>/var/log
/kubelet-
$(NODE_NAME).log 2>&1"
],
"volumeMounts"
:
[
{
...
...
@@ -90,7 +84,7 @@
},
{
"name"
:
"logs-volume"
,
"mountPath"
:
"/var/log
s
"
"mountPath"
:
"/var/log"
}
],
"resources"
:
{
...
...
@@ -129,7 +123,7 @@
"command"
:
[
"/bin/sh"
,
"-c"
,
"./kubemark.sh --morph=proxy --name=$(NODE_NAME) --kubeconfig=/kubeconfig/kubeproxy.kubeconfig $(CONTENT_TYPE) --v=2 1>>/var/log
s/kubeproxy_
$(NODE_NAME).log 2>&1"
"./kubemark.sh --morph=proxy --name=$(NODE_NAME) --kubeconfig=/kubeconfig/kubeproxy.kubeconfig $(CONTENT_TYPE) --v=2 1>>/var/log
/kubeproxy-
$(NODE_NAME).log 2>&1"
],
"volumeMounts"
:
[
{
...
...
@@ -139,7 +133,7 @@
},
{
"name"
:
"logs-volume"
,
"mountPath"
:
"/var/log
s
"
"mountPath"
:
"/var/log"
}
],
"resources"
:
{
...
...
@@ -167,7 +161,7 @@
"--kernel-monitor=/config/kernel.monitor"
,
"--apiserver-override=https://{{master_ip}}:443?inClusterConfig=false&auth=/kubeconfig/npd.kubeconfig"
,
"--alsologtostderr"
,
"1>>/var/log
s/npd_
$(NODE_NAME).log 2>&1"
"1>>/var/log
/npd-
$(NODE_NAME).log 2>&1"
],
"volumeMounts"
:
[
{
...
...
@@ -181,18 +175,13 @@
"readOnly"
:
true
},
{
"name"
:
"kernellog-volume"
,
"mountPath"
:
"/log"
,
"readOnly"
:
true
},
{
"name"
:
"no-serviceaccount-access-to-real-master"
,
"mountPath"
:
"/var/run/secrets/kubernetes.io/serviceaccount"
,
"readOnly"
:
true
},
{
"name"
:
"logs-volume"
,
"mountPath"
:
"/var/log
s
"
"mountPath"
:
"/var/log"
}
],
"resources"
:
{
...
...
test/kubemark/resources/kernel-monitor.json
View file @
ed0ab3cd
{
"logPath"
:
"/log/faillog"
,
"logPath"
:
"/
var/
log/faillog"
,
"lookback"
:
"10m"
,
"startPattern"
:
"Initializing cgroup subsys cpuset"
,
"bufferSize"
:
10
,
...
...
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