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
de3e021b
Commit
de3e021b
authored
Nov 28, 2018
by
Zhen Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Node-Problem-Detector v0.6.0
parent
3a5c57cb
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 @
de3e021b
...
@@ -1089,6 +1089,11 @@ EOF
...
@@ -1089,6 +1089,11 @@ EOF
}
}
function
create-node-problem-detector-kubeconfig
{
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"
echo
"Creating node-problem-detector kubeconfig file"
mkdir
-p
/var/lib/node-problem-detector
mkdir
-p
/var/lib/node-problem-detector
cat
<<
EOF
>/var/lib/node-problem-detector/kubeconfig
cat
<<
EOF
>/var/lib/node-problem-detector/kubeconfig
...
@@ -1101,6 +1106,7 @@ users:
...
@@ -1101,6 +1106,7 @@ users:
clusters:
clusters:
- name: local
- name: local
cluster:
cluster:
server: https://
${
apiserver_address
}
certificate-authority-data:
${
CA_CERT
}
certificate-authority-data:
${
CA_CERT
}
contexts:
contexts:
- context:
- context:
...
@@ -1230,7 +1236,7 @@ function start-node-problem-detector {
...
@@ -1230,7 +1236,7 @@ function start-node-problem-detector {
local
-r
km_config
=
"
${
KUBE_HOME
}
/node-problem-detector/config/kernel-monitor.json"
local
-r
km_config
=
"
${
KUBE_HOME
}
/node-problem-detector/config/kernel-monitor.json"
# TODO(random-liu): Handle this for alternative container runtime.
# TODO(random-liu): Handle this for alternative container runtime.
local
-r
dm_config
=
"
${
KUBE_HOME
}
/node-problem-detector/config/docker-monitor.json"
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
}
"
echo
"Using node problem detector binary at
${
npd_bin
}
"
local
flags
=
"
${
NPD_TEST_LOG_LEVEL
:-
"--v=2"
}
${
NPD_TEST_ARGS
:-}
"
local
flags
=
"
${
NPD_TEST_LOG_LEVEL
:-
"--v=2"
}
${
NPD_TEST_ARGS
:-}
"
flags+
=
" --logtostderr"
flags+
=
" --logtostderr"
...
@@ -2622,7 +2628,7 @@ function setup-node-termination-handler-manifest {
...
@@ -2622,7 +2628,7 @@ function setup-node-termination-handler-manifest {
local
-r
nth_manifest
=
"/etc/kubernetes/
$1
/
$2
/daemonset.yaml"
local
-r
nth_manifest
=
"/etc/kubernetes/
$1
/
$2
/daemonset.yaml"
if
[[
-n
"
${
NODE_TERMINATION_HANDLER_IMAGE
}
"
]]
;
then
if
[[
-n
"
${
NODE_TERMINATION_HANDLER_IMAGE
}
"
]]
;
then
sed
-i
"s|image:.*|image:
${
NODE_TERMINATION_HANDLER_IMAGE
}
|"
"
${
nth_manifest
}
"
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.
# Setups manifests for ingress controller and gce-specific policies for service controller.
...
@@ -2826,7 +2832,7 @@ function main() {
...
@@ -2826,7 +2832,7 @@ function main() {
create-kubeproxy-user-kubeconfig
create-kubeproxy-user-kubeconfig
fi
fi
if
[[
"
${
ENABLE_NODE_PROBLEM_DETECTOR
:-}
"
==
"standalone"
]]
;
then
if
[[
"
${
ENABLE_NODE_PROBLEM_DETECTOR
:-}
"
==
"standalone"
]]
;
then
create-node-problem-detector-kubeconfig
create-node-problem-detector-kubeconfig
${
KUBERNETES_MASTER_NAME
}
fi
fi
fi
fi
...
...
cluster/gce/gci/configure.sh
View file @
de3e021b
...
@@ -26,8 +26,8 @@ set -o pipefail
...
@@ -26,8 +26,8 @@ set -o pipefail
### Hardcoded constants
### Hardcoded constants
DEFAULT_CNI_VERSION
=
"v0.6.0"
DEFAULT_CNI_VERSION
=
"v0.6.0"
DEFAULT_CNI_SHA1
=
"d595d3ded6499a64e8dac02466e2f5f2ce257c9f"
DEFAULT_CNI_SHA1
=
"d595d3ded6499a64e8dac02466e2f5f2ce257c9f"
DEFAULT_NPD_VERSION
=
"v0.
5
.0"
DEFAULT_NPD_VERSION
=
"v0.
6
.0"
DEFAULT_NPD_SHA1
=
"
650ecfb2ae495175ee43706d0bd862a1ea7f1395
"
DEFAULT_NPD_SHA1
=
"
a28e960a21bb74bc0ae09c267b6a340f30e5b3a6
"
DEFAULT_CRICTL_VERSION
=
"v1.12.0"
DEFAULT_CRICTL_VERSION
=
"v1.12.0"
DEFAULT_CRICTL_SHA1
=
"82ef8b44849f9da0589c87e9865d4716573eec7f"
DEFAULT_CRICTL_SHA1
=
"82ef8b44849f9da0589c87e9865d4716573eec7f"
DEFAULT_MOUNTER_TAR_SHA
=
"8003b798cf33c7f91320cd6ee5cec4fa22244571"
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