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
a0a7686e
Commit
a0a7686e
authored
May 02, 2018
by
Bryan Moyles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the logging agent's node name as the metadata agent URL.
parent
ed9b25c9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
10 deletions
+4
-10
fluentd-gcp-ds.yaml
cluster/addons/fluentd-gcp/fluentd-gcp-ds.yaml
+2
-2
config-default.sh
cluster/gce/config-default.sh
+1
-1
config-test.sh
cluster/gce/config-test.sh
+1
-1
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+0
-6
No files found.
cluster/addons/fluentd-gcp/fluentd-gcp-ds.yaml
View file @
a0a7686e
...
...
@@ -38,13 +38,13 @@ spec:
-
name
:
config-volume
mountPath
:
/etc/google-fluentd/config.d
env
:
-
name
:
STACKDRIVER_METADATA_AGENT_URL
value
:
{{
stackdriver_metadata_agent_url
}}
-
name
:
NODE_NAME
valueFrom
:
fieldRef
:
apiVersion
:
v1
fieldPath
:
spec.nodeName
-
name
:
STACKDRIVER_METADATA_AGENT_URL
value
:
http://$(NODE_NAME):8799
# Liveness probe is aimed to help in situarions where fluentd
# silently hangs for no apparent reasons until manual restart.
# The idea of this probe is that if fluentd is not queueing or
...
...
cluster/gce/config-default.sh
View file @
a0a7686e
...
...
@@ -399,7 +399,7 @@ HEAPSTER_GCP_BASE_CPU="${HEAPSTER_GCP_BASE_CPU:-80m}"
HEAPSTER_GCP_CPU_PER_NODE
=
"
${
HEAPSTER_GCP_CPU_PER_NODE
:-
0
.5
}
"
# Adding to PROVIDER_VARS, since this is GCP-specific.
PROVIDER_VARS
=
"
${
PROVIDER_VARS
:-}
FLUENTD_GCP_VERSION FLUENTD_GCP_MEMORY_LIMIT FLUENTD_GCP_CPU_REQUEST FLUENTD_GCP_MEMORY_REQUEST HEAPSTER_GCP_BASE_MEMORY HEAPSTER_GCP_MEMORY_PER_NODE HEAPSTER_GCP_BASE_CPU HEAPSTER_GCP_CPU_PER_NODE CUSTOM_KUBE_DASHBOARD_BANNER LOGGING_STACKDRIVER_RESOURCE_TYPES
STACKDRIVER_METADATA_AGENT_URL
"
PROVIDER_VARS
=
"
${
PROVIDER_VARS
:-}
FLUENTD_GCP_VERSION FLUENTD_GCP_MEMORY_LIMIT FLUENTD_GCP_CPU_REQUEST FLUENTD_GCP_MEMORY_REQUEST HEAPSTER_GCP_BASE_MEMORY HEAPSTER_GCP_MEMORY_PER_NODE HEAPSTER_GCP_BASE_CPU HEAPSTER_GCP_CPU_PER_NODE CUSTOM_KUBE_DASHBOARD_BANNER LOGGING_STACKDRIVER_RESOURCE_TYPES"
# Fluentd configuration for node-journal
ENABLE_NODE_JOURNAL
=
"
${
ENABLE_NODE_JOURNAL
:-
false
}
"
...
...
cluster/gce/config-test.sh
View file @
a0a7686e
...
...
@@ -415,7 +415,7 @@ HEAPSTER_GCP_BASE_CPU="${HEAPSTER_GCP_BASE_CPU:-80m}"
HEAPSTER_GCP_CPU_PER_NODE
=
"
${
HEAPSTER_GCP_CPU_PER_NODE
:-
0
.5
}
"
# Adding to PROVIDER_VARS, since this is GCP-specific.
PROVIDER_VARS
=
"
${
PROVIDER_VARS
:-}
FLUENTD_GCP_VERSION FLUENTD_GCP_MEMORY_LIMIT FLUENTD_GCP_CPU_REQUEST FLUENTD_GCP_MEMORY_REQUEST HEAPSTER_GCP_BASE_MEMORY HEAPSTER_GCP_MEMORY_PER_NODE HEAPSTER_GCP_BASE_CPU HEAPSTER_GCP_CPU_PER_NODE CUSTOM_KUBE_DASHBOARD_BANNER LOGGING_STACKDRIVER_RESOURCE_TYPES
STACKDRIVER_METADATA_AGENT_URL
"
PROVIDER_VARS
=
"
${
PROVIDER_VARS
:-}
FLUENTD_GCP_VERSION FLUENTD_GCP_MEMORY_LIMIT FLUENTD_GCP_CPU_REQUEST FLUENTD_GCP_MEMORY_REQUEST HEAPSTER_GCP_BASE_MEMORY HEAPSTER_GCP_MEMORY_PER_NODE HEAPSTER_GCP_BASE_CPU HEAPSTER_GCP_CPU_PER_NODE CUSTOM_KUBE_DASHBOARD_BANNER LOGGING_STACKDRIVER_RESOURCE_TYPES"
# Fluentd configuration for node-journal
ENABLE_NODE_JOURNAL
=
"
${
ENABLE_NODE_JOURNAL
:-
false
}
"
...
...
cluster/gce/gci/configure-helper.sh
View file @
a0a7686e
...
...
@@ -2161,12 +2161,6 @@ function setup-fluentd {
sed
-i
-e
"s@{{ fluentd_gcp_configmap_name }}@
${
fluentd_gcp_configmap_name
}
@g"
"
${
fluentd_gcp_yaml
}
"
fluentd_gcp_version
=
"
${
FLUENTD_GCP_VERSION
:-
0
.2-1.5.30-1-k8s
}
"
sed
-i
-e
"s@{{ fluentd_gcp_version }}@
${
fluentd_gcp_version
}
@g"
"
${
fluentd_gcp_yaml
}
"
if
[[
"
${
STACKDRIVER_METADATA_AGENT_URL
:-}
"
!=
""
]]
;
then
metadata_agent_url
=
"
${
STACKDRIVER_METADATA_AGENT_URL
}
"
else
metadata_agent_url
=
"http://
${
HOSTNAME
}
:8799"
fi
sed
-i
-e
"s@{{ stackdriver_metadata_agent_url }}@
${
metadata_agent_url
}
@g"
"
${
fluentd_gcp_yaml
}
"
update-prometheus-to-sd-parameters
${
fluentd_gcp_yaml
}
start-fluentd-resource-update
${
fluentd_gcp_yaml
}
update-container-runtime
${
fluentd_gcp_configmap_yaml
}
...
...
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