<p>Created new cluster in GKE and see in logs error:</p>
<p>&quot;ERROR: logging before flag.Parse: E0907 16:33:58.813216       1 nanny_lib.go:128] Get <a href="https://10.0.0.1:443/api/v1/nodes?resourceVersion=0" rel="nofollow noreferrer">https://10.0.0.1:443/api/v1/nodes?resourceVersion=0</a>: http2: no cached connection was available
&quot;</p>
<pre class="lang-json prettyprint-override"><code>{
  textPayload: &quot;ERROR: logging before flag.Parse: E0907 16:33:58.813216       1 nanny_lib.go:128] Get https://10.0.0.1:443/api/v1/nodes?resourceVersion=0: http2: no cached connection was available&quot;
  insertId: &quot;zzz&quot;
  resource: {
    type: &quot;k8s_container&quot;
    labels: {
      project_id: &quot;zzz&quot;
      namespace_name: &quot;kube-system&quot;
      container_name: &quot;metrics-server-nanny&quot;
      pod_name: &quot;metrics-server-v0.3.6-7b7d6c7576-jksst&quot;
      cluster_name: &quot;zzz&quot;
      location: &quot;zzz&quot;
    }
  }
  timestamp: &quot;2020-09-07T16:33:58.813411604Z&quot;
  severity: &quot;ERROR&quot;
  labels: {
    gke.googleapis.com/log_type: &quot;system&quot;
    k8s-pod/version: &quot;v0.3.6&quot;
    k8s-pod/k8s-app: &quot;metrics-server&quot;
    k8s-pod/pod-template-hash: &quot;7b7d6c7576&quot;
  }
  logName: &quot;projects/zzz/logs/stderr&quot;
  receiveTimestamp: &quot;2020-09-07T16:34:05.273766386Z&quot;
}
</code></pre>
<p>I try to find a solution on how to fix this error.</p>
<p>Master version: 1.16.13-gke.1</p>
<p>Cloud Operations for GKE: System and workload logging and monitoring</p>

<p>I've test in my account with versions: <code>1.16.13-gke.1</code>, <code>1.16.13-gke.400</code> and <code>1.17.9-gke1503</code> and got a similar error, but not the same:</p>
<pre><code>$ kubectl logs metrics-server-v0.3.6-547dc87f5f-jrnjt -c metrics-server-nanny -n kube-system

ERROR: logging before flag.Parse: I0910 11:57:46.951966       1 pod_nanny.go:67] Invoked by [/pod_nanny --config-dir=/etc/config --cpu=40m --extra-cpu=0.5m --memory=35Mi --extra-memory=4Mi --threshold=5 --deployment=metrics-server-v0.3.6 --container=metrics-server --poll-period=300000 --estimator=exponential --scale-down-delay=24h --minClusterSize=5]
ERROR: logging before flag.Parse: I0910 11:57:46.952179       1 pod_nanny.go:68] Version: 1.8.8
ERROR: logging before flag.Parse: I0910 11:57:46.952258       1 pod_nanny.go:84] Watching namespace: kube-system, pod: metrics-server-v0.3.6-547dc87f5f-jrnjt, container: metrics-server.
ERROR: logging before flag.Parse: I0910 11:57:46.952320       1 pod_nanny.go:85] storage: MISSING, extra_storage: 0Gi
ERROR: logging before flag.Parse: I0910 11:57:46.954042       1 pod_nanny.go:115] cpu: 40m, extra_cpu: 0.5m, memory: 35Mi, extra_memory: 4Mi
ERROR: logging before flag.Parse: I0910 11:57:46.954164       1 pod_nanny.go:144] Resources: [{Base:{i:{value:40 scale:-3} d:{Dec:&lt;nil&gt;} s:40m Format:DecimalSI} ExtraPerNode:{i:{value:5 scale:-4} d:{Dec:&lt;nil&gt;} s: Format:DecimalSI} Name:cpu} {Base:{i:{value:36700160 scale:0} d:{Dec:&lt;nil&gt;} s:35Mi Format:BinarySI} ExtraPerNode:{i:{value:4194304 scale:0} d:{Dec:&lt;nil&gt;} s:4Mi Format:BinarySI} Name:memory}]
</code></pre>
<p>Since I haven't deployed anything in the cluster, it seems to me some issue in <em>System and workload logging and monitoring</em> plugin enabled by default in GKE.</p>
<p>My sugestion is open a ticket public issue in <a href="https://cloud.google.com/support/docs/issue-trackers" rel="nofollow noreferrer">GCP Issue tracker</a> since the containers are managed by GKE.</p>
