File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1604,16 +1604,12 @@ function Install-LoggingAgent {
1604
1604
function Configure-LoggingAgent {
1605
1605
$fluentd_config_dir = " $STACKDRIVER_ROOT \LoggingAgent\config.d"
1606
1606
$fluentd_config_file = " $fluentd_config_dir \k8s_containers.conf"
1607
- if (-not (ShouldWrite- File $fluentd_config_file )) {
1608
- Log- Output (" Skip: fluentd logging config $fluentd_config_file already " +
1609
- " exists" )
1610
- return
1611
- }
1612
-
1607
+
1613
1608
# Create a configuration file for kubernetes containers.
1614
1609
# The config.d directory should have already been created automatically, but
1615
1610
# try creating again just in case.
1616
1611
New-Item $fluentd_config_dir - ItemType ' directory' - Force | Out-Null
1612
+
1617
1613
$config = $FLUENTD_CONFIG.replace (' NODE_NAME' , (hostname))
1618
1614
$config | Out-File - FilePath $fluentd_config_file - Encoding ASCII
1619
1615
Log- Output " Wrote fluentd logging config to $fluentd_config_file "
You can’t perform that action at this time.
0 commit comments