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
4fc99086
Unverified
Commit
4fc99086
authored
Dec 10, 2018
by
Kubernetes Prow Robot
Committed by
GitHub
Dec 10, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #71717 from wangzhen127/automated-cherry-pick-of-#71522-upstream-release-1.13
Automated cherry pick of #71522: Use Node-Problem-Detector v0.6.0
parents
f61a8dd9
de3e021b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+9
-3
configure.sh
cluster/gce/gci/configure.sh
+2
-2
No files found.
cluster/gce/gci/configure-helper.sh
View file @
4fc99086
...
...
@@ -1089,6 +1089,11 @@ EOF
}
function
create-node-problem-detector-kubeconfig
{
local
apiserver_address
=
"
${
1
}
"
if
[[
-z
"
${
apiserver_address
}
"
]]
;
then
echo
"Must provide API server address to create node-problem-detector kubeconfig file!"
exit
1
fi
echo
"Creating node-problem-detector kubeconfig file"
mkdir
-p
/var/lib/node-problem-detector
cat
<<
EOF
>/var/lib/node-problem-detector/kubeconfig
...
...
@@ -1101,6 +1106,7 @@ users:
clusters:
- name: local
cluster:
server: https://
${
apiserver_address
}
certificate-authority-data:
${
CA_CERT
}
contexts:
- context:
...
...
@@ -1230,7 +1236,7 @@ function start-node-problem-detector {
local
-r
km_config
=
"
${
KUBE_HOME
}
/node-problem-detector/config/kernel-monitor.json"
# TODO(random-liu): Handle this for alternative container runtime.
local
-r
dm_config
=
"
${
KUBE_HOME
}
/node-problem-detector/config/docker-monitor.json"
local
-r
custom_km_config
=
"
${
KUBE_HOME
}
/node-problem-detector/config/kernel-monitor-counter.json"
local
-r
custom_km_config
=
"
${
KUBE_HOME
}
/node-problem-detector/config/kernel-monitor-counter.json
,
${
KUBE_HOME
}
/node-problem-detector/config/systemd-monitor-counter.json,
${
KUBE_HOME
}
/node-problem-detector/config/docker-monitor-counter.json
"
echo
"Using node problem detector binary at
${
npd_bin
}
"
local
flags
=
"
${
NPD_TEST_LOG_LEVEL
:-
"--v=2"
}
${
NPD_TEST_ARGS
:-}
"
flags+
=
" --logtostderr"
...
...
@@ -2622,7 +2628,7 @@ function setup-node-termination-handler-manifest {
local
-r
nth_manifest
=
"/etc/kubernetes/
$1
/
$2
/daemonset.yaml"
if
[[
-n
"
${
NODE_TERMINATION_HANDLER_IMAGE
}
"
]]
;
then
sed
-i
"s|image:.*|image:
${
NODE_TERMINATION_HANDLER_IMAGE
}
|"
"
${
nth_manifest
}
"
fi
fi
}
# Setups manifests for ingress controller and gce-specific policies for service controller.
...
...
@@ -2826,7 +2832,7 @@ function main() {
create-kubeproxy-user-kubeconfig
fi
if
[[
"
${
ENABLE_NODE_PROBLEM_DETECTOR
:-}
"
==
"standalone"
]]
;
then
create-node-problem-detector-kubeconfig
create-node-problem-detector-kubeconfig
${
KUBERNETES_MASTER_NAME
}
fi
fi
...
...
cluster/gce/gci/configure.sh
View file @
4fc99086
...
...
@@ -26,8 +26,8 @@ set -o pipefail
### Hardcoded constants
DEFAULT_CNI_VERSION
=
"v0.6.0"
DEFAULT_CNI_SHA1
=
"d595d3ded6499a64e8dac02466e2f5f2ce257c9f"
DEFAULT_NPD_VERSION
=
"v0.
5
.0"
DEFAULT_NPD_SHA1
=
"
650ecfb2ae495175ee43706d0bd862a1ea7f1395
"
DEFAULT_NPD_VERSION
=
"v0.
6
.0"
DEFAULT_NPD_SHA1
=
"
a28e960a21bb74bc0ae09c267b6a340f30e5b3a6
"
DEFAULT_CRICTL_VERSION
=
"v1.12.0"
DEFAULT_CRICTL_SHA1
=
"82ef8b44849f9da0589c87e9865d4716573eec7f"
DEFAULT_MOUNTER_TAR_SHA
=
"8003b798cf33c7f91320cd6ee5cec4fa22244571"
...
...
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