mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 05:40:42 +00:00 
			
		
		
		
	Upgrade Stackdriver Logging Agent addon image to 0.6-1.6.0-1 to use Fluentd v1.2.
This commit is contained in:
		| @@ -61,7 +61,8 @@ 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> | ||||||
|  |         @type multi_format | ||||||
|         <pattern> |         <pattern> | ||||||
|           format json |           format json | ||||||
|           time_key time |           time_key time | ||||||
| @@ -71,6 +72,7 @@ data: | |||||||
|           format /^(?<time>.+) (?<stream>stdout|stderr) [^ ]* (?<log>.*)$/ |           format /^(?<time>.+) (?<stream>stdout|stderr) [^ ]* (?<log>.*)$/ | ||||||
|           time_format %Y-%m-%dT%H:%M:%S.%N%:z |           time_format %Y-%m-%dT%H:%M:%S.%N%:z | ||||||
|         </pattern> |         </pattern> | ||||||
|  |       </parse> | ||||||
|     </source> |     </source> | ||||||
|  |  | ||||||
|     <filter reform.**> |     <filter reform.**> | ||||||
|   | |||||||
| @@ -64,7 +64,8 @@ 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> | ||||||
|  |         @type multi_format | ||||||
|         <pattern> |         <pattern> | ||||||
|           format json |           format json | ||||||
|           time_key time |           time_key time | ||||||
| @@ -74,6 +75,7 @@ data: | |||||||
|           format /^(?<time>.+) (?<stream>stdout|stderr) [^ ]* (?<log>.*)$/ |           format /^(?<time>.+) (?<stream>stdout|stderr) [^ ]* (?<log>.*)$/ | ||||||
|           time_format %Y-%m-%dT%H:%M:%S.%N%:z |           time_format %Y-%m-%dT%H:%M:%S.%N%:z | ||||||
|         </pattern> |         </pattern> | ||||||
|  |       </parse> | ||||||
|     </source> |     </source> | ||||||
|  |  | ||||||
|     <filter reform.**> |     <filter reform.**> | ||||||
|   | |||||||
| @@ -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:-}" | ||||||
|   | |||||||
| @@ -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:-}" | ||||||
|   | |||||||
| @@ -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} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user