Google Container Engine initialisation script

10/10/2016

In Google Dataproc there is the option to specify a script to run when initialising the cluster. Is there any equivalent for GKE? I want to use it to install xfsprogs on the nodes so I can mount xfs volumes in containers.

-- Matthew Jones
google-kubernetes-engine

1 Answer

10/12/2016

There isn't an api field that you can set that will cause a script to be executed on each node when the node is created. Instead, we recommend that you use a DaemonSet object to customize each node. See https://github.com/kubernetes/contrib/pull/892 for an example of how this can be done.

-- Robert Bailey
Source: StackOverflow