Use jessie (Debian) for Kubernetes cluster

2/6/2017

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
gcsfuse
google-compute-engine
kubernetes

1 Answer

2/6/2017

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
Source: StackOverflow