Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you install Python libraries on gcloud kubernetes nodes?

I have a gcloud Kubernetes cluster running and a Google bucket that holds some data I want to run on the cluster.

In order to use the data in the bucket, I need gcsfs installed on the nodes. How do I install packages like this on the cluster using gcloud, kubectl, etc.?

like image 976
Brendan Martin Avatar asked Aug 26 '26 14:08

Brendan Martin


1 Answers

Check if a recipe like "Launch development cluster on Google Cloud Platform with Kubernetes and Helm" could help.

Using Helm, you can define workers with additional pip packages:

worker:
  replicas: 8
  limits:
    cpu: 2
    memory: 7500000000
  pipPackages: >-
    git+https://github.com/gcsfs/gcsfs.git
    git+https://github.com/xarray/xarray.git
  condaPackages: >-
    -c conda-forge 
    zarr
    blosc
like image 72
VonC Avatar answered Aug 29 '26 11:08

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!