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
9bd05bde
Commit
9bd05bde
authored
Mar 11, 2017
by
Piotr Szczesniak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setup fluentd-ds-ready label in startup script not in kubelet
parent
b1cac347
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
4 deletions
+17
-4
config-default.sh
cluster/gce/config-default.sh
+7
-0
config-test.sh
cluster/gce/config-test.sh
+7
-0
kubelet_node_status.go
pkg/kubelet/kubelet_node_status.go
+3
-4
No files found.
cluster/gce/config-default.sh
View file @
9bd05bde
...
...
@@ -106,6 +106,13 @@ ENABLE_L7_LOADBALANCING="${KUBE_ENABLE_L7_LOADBALANCING:-glbc}"
# standalone - Heapster only. Metrics available via Heapster REST API.
ENABLE_CLUSTER_MONITORING
=
"
${
KUBE_ENABLE_CLUSTER_MONITORING
:-
influxdb
}
"
# Historically fluentd was a manifest pod and then was migrated to DaemonSet.
# To avoid situation during cluster upgrade when there are two instances
# of fluentd running on a node, kubelet need to mark node on which
# fluentd is not running as a manifest pod with appropriate label.
# TODO(piosz): remove this in 1.8
NODE_LABELS
=
"
${
KUBE_NODE_LABELS
:-
alpha
.kubernetes.io/fluentd-ds-ready=true
}
"
# Optional: Enable node logging.
ENABLE_NODE_LOGGING
=
"
${
KUBE_ENABLE_NODE_LOGGING
:-
true
}
"
LOGGING_DESTINATION
=
"
${
KUBE_LOGGING_DESTINATION
:-
gcp
}
"
# options: elasticsearch, gcp
...
...
cluster/gce/config-test.sh
View file @
9bd05bde
...
...
@@ -137,6 +137,13 @@ CONTROLLER_MANAGER_TEST_ARGS="${CONTROLLER_MANAGER_TEST_ARGS:-} ${TEST_CLUSTER_R
SCHEDULER_TEST_ARGS
=
"
${
SCHEDULER_TEST_ARGS
:-}
${
TEST_CLUSTER_API_CONTENT_TYPE
}
"
KUBEPROXY_TEST_ARGS
=
"
${
KUBEPROXY_TEST_ARGS
:-}
${
TEST_CLUSTER_API_CONTENT_TYPE
}
"
# Historically fluentd was a manifest pod and then was migrated to DaemonSet.
# To avoid situation during cluster upgrade when there are two instances
# of fluentd running on a node, kubelet need to mark node on which
# fluentd is not running as a manifest pod with appropriate label.
# TODO(piosz): remove this in 1.8
NODE_LABELS
=
"
${
KUBE_NODE_LABELS
:-
alpha
.kubernetes.io/fluentd-ds-ready=true
}
"
# Optional: Enable node logging.
ENABLE_NODE_LOGGING
=
"
${
KUBE_ENABLE_NODE_LOGGING
:-
true
}
"
LOGGING_DESTINATION
=
"
${
KUBE_LOGGING_DESTINATION
:-
gcp
}
"
# options: elasticsearch, gcp
...
...
pkg/kubelet/kubelet_node_status.go
View file @
9bd05bde
...
...
@@ -192,10 +192,9 @@ func (kl *Kubelet) initialNode() (*v1.Node, error) {
ObjectMeta
:
metav1
.
ObjectMeta
{
Name
:
string
(
kl
.
nodeName
),
Labels
:
map
[
string
]
string
{
metav1
.
LabelHostname
:
kl
.
hostname
,
metav1
.
LabelOS
:
goruntime
.
GOOS
,
metav1
.
LabelArch
:
goruntime
.
GOARCH
,
metav1
.
LabelFluentdDsReady
:
"true"
,
metav1
.
LabelHostname
:
kl
.
hostname
,
metav1
.
LabelOS
:
goruntime
.
GOOS
,
metav1
.
LabelArch
:
goruntime
.
GOARCH
,
},
},
Spec
:
v1
.
NodeSpec
{
...
...
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