Kubernetes: Edit Heapster deployment in kube-system namespace

4/23/2017

I use the Kubernetes system provided by Google Container Engine. When I try to edit the Heapster deployment to add an influxdb sink:

kubectl --namespace=kube-system edit deployment/heapster-v1.2.0.1

Everything works well, I get the following response:

deployment "heapster-v1.2.0.1" edited

The pods are recreated successfully but after about 1 minute, the deployment is reverted to its default value.

I thought maybe it was the sink configuration line that I added that was the problem, so I tried to edit the deployment again, but just to add a simple label:

  labels:
    k8s-app: heapster
    kubernetes.io/cluster-service: "true"
    version: v1.2.0.1
    test: test

Same thing happens, the deployment is reverted to its original config after 1 minute. I type the following command and the label is gone:

kubectl --namespace=kube-system get -o yaml deployment/heapster-v1.2.0.1

Anyone has an idea how I can edit this Heapster deployment?

Thanks

-- Mathew
google-cloud-platform
kubernetes

0 Answers