<p>I want to enable Stackdriver logging with my Kubernetes cluster on GKE.</p>

<p>It's stated here: <a href="https://kubernetes.io/docs/user-guide/logging/stackdriver/" rel="nofollow noreferrer">https://kubernetes.io/docs/user-guide/logging/stackdriver/</a></p>

<blockquote>
  <p>This article assumes that you have created a Kubernetes cluster with cluster-level logging support for sending logs to Stackdriver Logging. You can do this either by selecting the Enable Stackdriver Logging checkbox in the create cluster dialogue in GKE, or by setting the <code>KUBE_LOGGING_DESTINATION</code> flag to gcp when manually starting a cluster using <code>kube-up.sh</code>.</p>
</blockquote>

<p>But my cluster was created without this option enabled.</p>

<p>How do I change the environment variable while my cluster is running?</p>

<p>Unfortunately, logging isn't a setting that can be enabled/disabled on a cluster once it is running. This is something that we hope to change in the near future, but in the mean time your best bet is to delete and recreate your cluster (sorry!). </p>
