<p>Last night my Kubernetes cluster on GKE was upgraded to 1.16.8-gke.9. Since then the logs show <code>error: unable to find container named fluentd-gcp</code> every minute. Logging from my applications still works, but I'd like to know what causes this error and how to get rid of this.</p>

<p>Expanding the error yields slightly more details:</p>

<pre><code>{
  "textPayload": "error: unable to find container named fluentd-gcp\n",
  "insertId": "v1b2u2ldrnswujhz2",
  "resource": {
    "type": "k8s_container",
    "labels": {
      "project_id": "foo",
      "pod_name": "fluentd-gke-scaler-cd4d654d7-tgg27",
      "cluster_name": "foo-cluster",
      "container_name": "fluentd-gke-scaler",
      "namespace_name": "kube-system",
      "location": "us-east1-d"
    }
  },
  "timestamp": "2020-04-24T16:15:40.224944500Z",
  "severity": "ERROR",
  "labels": {
    "gke.googleapis.com/log_type": "system",
    "k8s-pod/k8s-app": "fluentd-gke-scaler",
    "k8s-pod/pod-template-hash": "cd4d654d7"
  },
  "logName": "projects/foo/logs/stderr",
  "receiveTimestamp": "2020-04-24T16:15:45.923960735Z"
}
</code></pre>

<p><code>kubectl get all --all-namespaces</code> shows <code>fluentd-gke</code> pods with a <code>fluentd-gke</code> container, not <code>fluentd-gcp</code>.</p>

<p>Any advice would be appreciated and I'm happy to post more details, if you tell me where to look for them.</p>

<p><strong>Edit: More details and related problems on the GKE issue tracker: <a href="https://issuetracker.google.com/issues/156965162" rel="nofollow noreferrer">https://issuetracker.google.com/issues/156965162</a></strong></p>

<p>This will be fixed in <code>GKE 1.16.9-gke.6</code> according to the issue tracker: <a href="https://issuetracker.google.com/issues/156965162" rel="nofollow noreferrer">https://issuetracker.google.com/issues/156965162</a></p>
