How to try "Encrypt secret data at rest" feature in GKE

3/22/2018

K8s has this feature to encrypt secret data, which requires modification of kube-apiserver config, how can i do this in GKE?

-- Tao Li
encryption
google-kubernetes-engine
kubernetes

2 Answers

1/31/2019

It appears you can, now. From the latest gcloud release notes:

### Kubernetes Engine

* Promoted the `--database-encryption-key` flag of `gcloud container clusters 
create` to beta. The flag enables support for encryption of Kubernetes Secrets.

https://cloud.google.com/sdk/docs/release-notes

-- Dylan
Source: StackOverflow

3/23/2018

Short answer is, you can't.

The Kubernetes Engine master is managed by Google, so you can't change its runtime parameters. Nonetheless, while the data may not be encrypted inside the etcd running on the master node, the contents of the master node itself are encrypted as the link Will pointed to explains.

-- Lopson
Source: StackOverflow