1

I want to set up gcsFUSE on my cluster. It's easier to do this in Debian jessie according to the gcsFUSE page.

The config-default.sh that kube-up.sh uses contains the following:

NODE_OS_DISTRIBUTION=${KUBE_NODE_OS_DISTRIBUTION:-${KUBE_OS_DISTRIBUTION:-debian}}

which sets up wheezy. What do I change this to to get jessie? I've tried replacing debian with the values debian-8 and jessie, without any luck:

$ cluster/kube-up.sh
Cannot operate on cluster using node os distro: jessie
J Bramble
  • 237
  • 2
  • 7

1 Answers1

1

from reading the cluster/gce/util.sh you can use KUBE_GCE_MASTER_IMAGE / KUBE_GCE_MASTER_PROJECT and KUBE_GCE_NODE_IMAGE / KUBE_GCE_NODE_PROJECT for that purpose.

E.g. with:

  KUBE_GCE_MASTER_IMAGE=debian-8-jessie-v20170124   
  KUBE_GCE_MASTER_PROJECT=debian-8
  KUBE_GCE_NODE_IMAGE=debian-8-jessie-v20170124 
  KUBE_GCE_NODE_PROJECT=debian-8

You can find the relevant images on the with:

gcloud compute images list --filter=debian

These environment variables are used to then create the instances with

 gcloud compute instance-templates create ...

The related documentation has some further details.

pagid
  • 13,559
  • 11
  • 78
  • 104
  • When I list relevant images using the command you suggested, I get "debian-8-jessie-v20170124". However, if I put this value in the config-default.sh file as mentioned, I get "Cannot operate on cluster using node os distro: debian-8-jessie-v20170124". – J Bramble Feb 07 '17 at 11:14
  • The four settings you mention - where should I set these? Do I just leave the NODE_OS_DISTRIBUTION setting as it was (set to Debian)? – J Bramble Feb 07 '17 at 11:23
  • Just set these as environment variables for your kube-up.sh ... NODE_OS_DISTRIBUTION should be "debian" – pagid Feb 07 '17 at 11:58