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
02b7ed32
Commit
02b7ed32
authored
Nov 12, 2018
by
Ling Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade Stackdriver Logging Agent addon image to 0.6-1.6.0-1 to use Fluentd v1.2.
parent
7712766d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
26 deletions
+30
-26
fluentd-gcp-configmap-old.yaml
cluster/addons/fluentd-gcp/fluentd-gcp-configmap-old.yaml
+12
-10
fluentd-gcp-configmap.yaml
cluster/addons/fluentd-gcp/fluentd-gcp-configmap.yaml
+12
-10
config-default.sh
cluster/gce/config-default.sh
+2
-2
config-test.sh
cluster/gce/config-test.sh
+2
-2
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+2
-2
No files found.
cluster/addons/fluentd-gcp/fluentd-gcp-configmap-old.yaml
View file @
02b7ed32
...
@@ -61,16 +61,18 @@ data:
...
@@ -61,16 +61,18 @@ data:
# reform.var.log.containers.<POD_NAME>_<NAMESPACE_NAME>_<CONTAINER_NAME>-<CONTAINER_ID>.log
# reform.var.log.containers.<POD_NAME>_<NAMESPACE_NAME>_<CONTAINER_NAME>-<CONTAINER_ID>.log
tag reform.*
tag reform.*
read_from_head true
read_from_head true
format multi_format
<parse>
<pattern>
@type multi_format
format json
<pattern>
time_key time
format json
time_format %Y-%m-%dT%H:%M:%S.%NZ
time_key time
</pattern>
time_format %Y-%m-%dT%H:%M:%S.%NZ
<pattern>
</pattern>
format /^(?<time>.+) (?<stream>stdout|stderr) [^ ]* (?<log>.*)$/
<pattern>
time_format %Y-%m-%dT%H:%M:%S.%N%:z
format /^(?<time>.+) (?<stream>stdout|stderr) [^ ]* (?<log>.*)$/
</pattern>
time_format %Y-%m-%dT%H:%M:%S.%N%:z
</pattern>
</parse>
</source>
</source>
<filter reform.**>
<filter reform.**>
...
...
cluster/addons/fluentd-gcp/fluentd-gcp-configmap.yaml
View file @
02b7ed32
...
@@ -64,16 +64,18 @@ data:
...
@@ -64,16 +64,18 @@ data:
# reform.var.log.containers.<POD_NAME>_<NAMESPACE_NAME>_<CONTAINER_NAME>-<CONTAINER_ID>.log
# reform.var.log.containers.<POD_NAME>_<NAMESPACE_NAME>_<CONTAINER_NAME>-<CONTAINER_ID>.log
tag reform.*
tag reform.*
read_from_head true
read_from_head true
format multi_format
<parse>
<pattern>
@type multi_format
format json
<pattern>
time_key time
format json
time_format %Y-%m-%dT%H:%M:%S.%NZ
time_key time
</pattern>
time_format %Y-%m-%dT%H:%M:%S.%NZ
<pattern>
</pattern>
format /^(?<time>.+) (?<stream>stdout|stderr) [^ ]* (?<log>.*)$/
<pattern>
time_format %Y-%m-%dT%H:%M:%S.%N%:z
format /^(?<time>.+) (?<stream>stdout|stderr) [^ ]* (?<log>.*)$/
</pattern>
time_format %Y-%m-%dT%H:%M:%S.%N%:z
</pattern>
</parse>
</source>
</source>
<filter reform.**>
<filter reform.**>
...
...
cluster/gce/config-default.sh
View file @
02b7ed32
...
@@ -406,8 +406,8 @@ fi
...
@@ -406,8 +406,8 @@ fi
# Fluentd requirements
# Fluentd requirements
# YAML exists to trigger a configuration refresh when changes are made.
# YAML exists to trigger a configuration refresh when changes are made.
FLUENTD_GCP_YAML_VERSION
=
"v3.
1
.0"
FLUENTD_GCP_YAML_VERSION
=
"v3.
2
.0"
FLUENTD_GCP_VERSION
=
"
${
FLUENTD_GCP_VERSION
:-
0
.
5-1.5.36-1-k8s
}
"
FLUENTD_GCP_VERSION
=
"
${
FLUENTD_GCP_VERSION
:-
0
.
6-1.6.0-1
}
"
FLUENTD_GCP_MEMORY_LIMIT
=
"
${
FLUENTD_GCP_MEMORY_LIMIT
:-}
"
FLUENTD_GCP_MEMORY_LIMIT
=
"
${
FLUENTD_GCP_MEMORY_LIMIT
:-}
"
FLUENTD_GCP_CPU_REQUEST
=
"
${
FLUENTD_GCP_CPU_REQUEST
:-}
"
FLUENTD_GCP_CPU_REQUEST
=
"
${
FLUENTD_GCP_CPU_REQUEST
:-}
"
FLUENTD_GCP_MEMORY_REQUEST
=
"
${
FLUENTD_GCP_MEMORY_REQUEST
:-}
"
FLUENTD_GCP_MEMORY_REQUEST
=
"
${
FLUENTD_GCP_MEMORY_REQUEST
:-}
"
...
...
cluster/gce/config-test.sh
View file @
02b7ed32
...
@@ -418,8 +418,8 @@ fi
...
@@ -418,8 +418,8 @@ fi
# Fluentd requirements
# Fluentd requirements
# YAML exists to trigger a configuration refresh when changes are made.
# YAML exists to trigger a configuration refresh when changes are made.
FLUENTD_GCP_YAML_VERSION
=
"v3.
1
.0"
FLUENTD_GCP_YAML_VERSION
=
"v3.
2
.0"
FLUENTD_GCP_VERSION
=
"
${
FLUENTD_GCP_VERSION
:-
0
.
5-1.5.36-1-k8s
}
"
FLUENTD_GCP_VERSION
=
"
${
FLUENTD_GCP_VERSION
:-
0
.
6-1.6.0-1
}
"
FLUENTD_GCP_MEMORY_LIMIT
=
"
${
FLUENTD_GCP_MEMORY_LIMIT
:-}
"
FLUENTD_GCP_MEMORY_LIMIT
=
"
${
FLUENTD_GCP_MEMORY_LIMIT
:-}
"
FLUENTD_GCP_CPU_REQUEST
=
"
${
FLUENTD_GCP_CPU_REQUEST
:-}
"
FLUENTD_GCP_CPU_REQUEST
=
"
${
FLUENTD_GCP_CPU_REQUEST
:-}
"
FLUENTD_GCP_MEMORY_REQUEST
=
"
${
FLUENTD_GCP_MEMORY_REQUEST
:-}
"
FLUENTD_GCP_MEMORY_REQUEST
=
"
${
FLUENTD_GCP_MEMORY_REQUEST
:-}
"
...
...
cluster/gce/gci/configure-helper.sh
View file @
02b7ed32
...
@@ -2323,10 +2323,10 @@ function setup-fluentd {
...
@@ -2323,10 +2323,10 @@ function setup-fluentd {
fluentd_gcp_configmap_name
=
"fluentd-gcp-config-old"
fluentd_gcp_configmap_name
=
"fluentd-gcp-config-old"
fi
fi
sed
-i
-e
"s@{{ fluentd_gcp_configmap_name }}@
${
fluentd_gcp_configmap_name
}
@g"
"
${
fluentd_gcp_yaml
}
"
sed
-i
-e
"s@{{ fluentd_gcp_configmap_name }}@
${
fluentd_gcp_configmap_name
}
@g"
"
${
fluentd_gcp_yaml
}
"
fluentd_gcp_yaml_version
=
"
${
FLUENTD_GCP_YAML_VERSION
:-
v3
.
1
.0
}
"
fluentd_gcp_yaml_version
=
"
${
FLUENTD_GCP_YAML_VERSION
:-
v3
.
2
.0
}
"
sed
-i
-e
"s@{{ fluentd_gcp_yaml_version }}@
${
fluentd_gcp_yaml_version
}
@g"
"
${
fluentd_gcp_yaml
}
"
sed
-i
-e
"s@{{ fluentd_gcp_yaml_version }}@
${
fluentd_gcp_yaml_version
}
@g"
"
${
fluentd_gcp_yaml
}
"
sed
-i
-e
"s@{{ fluentd_gcp_yaml_version }}@
${
fluentd_gcp_yaml_version
}
@g"
"
${
fluentd_gcp_scaler_yaml
}
"
sed
-i
-e
"s@{{ fluentd_gcp_yaml_version }}@
${
fluentd_gcp_yaml_version
}
@g"
"
${
fluentd_gcp_scaler_yaml
}
"
fluentd_gcp_version
=
"
${
FLUENTD_GCP_VERSION
:-
0
.
5-1.5.36-1-k8s
}
"
fluentd_gcp_version
=
"
${
FLUENTD_GCP_VERSION
:-
0
.
6-1.6.0-1
}
"
sed
-i
-e
"s@{{ fluentd_gcp_version }}@
${
fluentd_gcp_version
}
@g"
"
${
fluentd_gcp_yaml
}
"
sed
-i
-e
"s@{{ fluentd_gcp_version }}@
${
fluentd_gcp_version
}
@g"
"
${
fluentd_gcp_yaml
}
"
update-daemon-set-prometheus-to-sd-parameters
${
fluentd_gcp_yaml
}
update-daemon-set-prometheus-to-sd-parameters
${
fluentd_gcp_yaml
}
start-fluentd-resource-update
${
fluentd_gcp_yaml
}
start-fluentd-resource-update
${
fluentd_gcp_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