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
42bd5e2e
Commit
42bd5e2e
authored
Jun 09, 2016
by
Random-Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary configuration for apiserver host and port.
parent
7476d977
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
14 deletions
+1
-14
node-problem-detector.yaml
...r/addons/node-problem-detector/node-problem-detector.yaml
+0
-6
common.sh
cluster/common.sh
+0
-1
configure-vm.sh
cluster/gce/configure-vm.sh
+0
-1
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+0
-4
init.sls
cluster/saltbase/salt/kube-addons/init.sls
+1
-2
No files found.
cluster/addons/node-problem-detector/node-problem-detector.yaml
.in
→
cluster/addons/node-problem-detector/node-problem-detector.yaml
View file @
42bd5e2e
...
@@ -19,12 +19,6 @@ spec:
...
@@ -19,12 +19,6 @@ spec:
containers
:
containers
:
-
name
:
node-problem-detector
-
name
:
node-problem-detector
image
:
gcr.io/google_containers/node-problem-detector:v0.1
image
:
gcr.io/google_containers/node-problem-detector:v0.1
env:
# Config the host ip and port of apiserver.
- name: "KUBERNETES_SERVICE_HOST"
value: "{{ pillar['master_node'] }}"
- name: "KUBERNETES_SERVICE_PORT"
value: "443"
securityContext
:
securityContext
:
privileged
:
true
privileged
:
true
resources
:
resources
:
...
...
cluster/common.sh
View file @
42bd5e2e
...
@@ -594,7 +594,6 @@ ENABLE_MANIFEST_URL: $(yaml-quote ${ENABLE_MANIFEST_URL:-false})
...
@@ -594,7 +594,6 @@ ENABLE_MANIFEST_URL: $(yaml-quote ${ENABLE_MANIFEST_URL:-false})
MANIFEST_URL:
$(
yaml-quote
${
MANIFEST_URL
:-})
MANIFEST_URL:
$(
yaml-quote
${
MANIFEST_URL
:-})
MANIFEST_URL_HEADER:
$(
yaml-quote
${
MANIFEST_URL_HEADER
:-})
MANIFEST_URL_HEADER:
$(
yaml-quote
${
MANIFEST_URL_HEADER
:-})
NUM_NODES:
$(
yaml-quote
${
NUM_NODES
})
NUM_NODES:
$(
yaml-quote
${
NUM_NODES
})
MASTER_NAME:
$(
yaml-quote
${
MASTER_NAME
})
EOF
EOF
if
[
-n
"
${
APISERVER_TEST_ARGS
:-}
"
]
;
then
if
[
-n
"
${
APISERVER_TEST_ARGS
:-}
"
]
;
then
cat
>>
$file
<<
EOF
cat
>>
$file
<<
EOF
...
...
cluster/gce/configure-vm.sh
View file @
42bd5e2e
...
@@ -449,7 +449,6 @@ enable_manifest_url: '$(echo "${ENABLE_MANIFEST_URL:-}" | sed -e "s/'/''/g")'
...
@@ -449,7 +449,6 @@ enable_manifest_url: '$(echo "${ENABLE_MANIFEST_URL:-}" | sed -e "s/'/''/g")'
manifest_url: '
$(
echo
"
${
MANIFEST_URL
:-}
"
|
sed
-e
"s/'/''/g"
)
'
manifest_url: '
$(
echo
"
${
MANIFEST_URL
:-}
"
|
sed
-e
"s/'/''/g"
)
'
manifest_url_header: '
$(
echo
"
${
MANIFEST_URL_HEADER
:-}
"
|
sed
-e
"s/'/''/g"
)
'
manifest_url_header: '
$(
echo
"
${
MANIFEST_URL_HEADER
:-}
"
|
sed
-e
"s/'/''/g"
)
'
num_nodes:
$(
echo
"
${
NUM_NODES
:-}
"
|
sed
-e
"s/'/''/g"
)
num_nodes:
$(
echo
"
${
NUM_NODES
:-}
"
|
sed
-e
"s/'/''/g"
)
master_node:
$(
echo
"
${
MASTER_NAME
:-}
"
|
sed
-e
"s/'/''/g"
)
e2e_storage_test_environment: '
$(
echo
"
$E2E_STORAGE_TEST_ENVIRONMENT
"
|
sed
-e
"s/'/''/g"
)
'
e2e_storage_test_environment: '
$(
echo
"
$E2E_STORAGE_TEST_ENVIRONMENT
"
|
sed
-e
"s/'/''/g"
)
'
kube_uid: '
$(
echo
"
${
KUBE_UID
}
"
|
sed
-e
"s/'/''/g"
)
'
kube_uid: '
$(
echo
"
${
KUBE_UID
}
"
|
sed
-e
"s/'/''/g"
)
'
EOF
EOF
...
...
cluster/gce/gci/configure-helper.sh
View file @
42bd5e2e
...
@@ -752,10 +752,6 @@ function start-kube-addons {
...
@@ -752,10 +752,6 @@ function start-kube-addons {
fi
fi
if
[[
"
${
ENABLE_NODE_PROBLEM_DETECTOR
:-}
"
==
"true"
]]
;
then
if
[[
"
${
ENABLE_NODE_PROBLEM_DETECTOR
:-}
"
==
"true"
]]
;
then
setup-addon-manifests
"addons"
"node-problem-detector"
setup-addon-manifests
"addons"
"node-problem-detector"
local
-r
node_problem_detector_file
=
"
${
dst_dir
}
/node-problem-detector/node-problem-detector.yaml"
mv
"
${
dst_dir
}
/node-problem-detector/node-problem-detector.yaml.in"
"
${
node_problem_detector_file
}
"
# Replace the salt configurations with variable values.
sed
-i
-e
"s@{{ *pillar
\[
'master_node'
\]
*}}@
${
MASTER_NAME
}
@g"
"
${
node_problem_detector_file
}
"
fi
fi
if
echo
"
${
ADMISSION_CONTROL
:-}
"
|
grep
-q
"LimitRanger"
;
then
if
echo
"
${
ADMISSION_CONTROL
:-}
"
|
grep
-q
"LimitRanger"
;
then
setup-addon-manifests
"admission-controls"
"limit-range"
setup-addon-manifests
"admission-controls"
"limit-range"
...
...
cluster/saltbase/salt/kube-addons/init.sls
View file @
42bd5e2e
...
@@ -153,8 +153,7 @@ addon-dir-create:
...
@@ -153,8 +153,7 @@ addon-dir-create:
{% if pillar.get('enable_node_problem_detector', '').lower() == 'true' %}
{% if pillar.get('enable_node_problem_detector', '').lower() == 'true' %}
/etc/kubernetes/addons/node-problem-detector/node-problem-detector.yaml:
/etc/kubernetes/addons/node-problem-detector/node-problem-detector.yaml:
file.managed:
file.managed:
- source: salt://kube-addons/node-problem-detector/node-problem-detector.yaml.in
- source: salt://kube-addons/node-problem-detector/node-problem-detector.yaml
- template: jinja
- user: root
- user: root
- group: root
- group: root
- file_mode: 644
- file_mode: 644
...
...
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