Change kubernetes master env variable on GKE

1/23/2017

I want to enable Stackdriver logging with my Kubernetes cluster on GKE.

It's stated here: https://kubernetes.io/docs/user-guide/logging/stackdriver/

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 KUBE_LOGGING_DESTINATION flag to gcp when manually starting a cluster using kube-up.sh.

But my cluster was created without this option enabled.

How do I change the environment variable while my cluster is running?

-- Kerumen
google-kubernetes-engine
kubernetes

1 Answer

1/23/2017

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!).

-- Robert Bailey
Source: StackOverflow