pachyderm

by joaquinito2051

Helm chartv0.5.1App 1.8.6

Pachyderm is a large-scale container-based workflow engine that offers complete version control for data and reproducible data processing

About this chart

Pachyderm Helm Chart

Pachyderm is a language-agnostic and cloud infrastructure-agnostic large-scale data processing framework based on software containers. This chart can be used to deploy Pachyderm backed by object stores of different Cloud providers.

  • https://pachyderm.io
  • https://github.com/pachyderm/pachyderm

Prerequisites Details

  • Dynamic provisioning of PVs (for non-local deployments)

General chart settings

The following table lists the configurable parameters of pachd and their default values:

ParameterDescriptionDefault
rbac.createEnable RBACtrue
pachd.exposeObjApiExpose S3 APIfalse
pachd.image.repositoryContainer image namepachyderm/pachd
pachd.pfsCacheFile System cache size0G
*.image.tagContainer image tag<latest version>
*.image.pullPolicyImage pull policyAlways
*.worker.repositoryWorker image namepachyderm/worker
*.worker.tagWorker image tag<latest version>
*.replicaCountNumber of pachds1
*.resources.requestsMemory and cpu request{512M,250m}
*.resources.limitsMemory and cpu limitnil
*.service.grpc.annotationsGRPC service additional annotations{}
*.service.grpc.portGRPC service port30650
*.service.grpc.typeGRPC service typeNodePort

Next table lists the configurable parameters of etcd and their default values:

ParameterDescriptionDefault
etcd.image.repositoryContainer image namequay.io/coreos/etcd
*.image.tagContainer image tag<latest version>
*.image.pullPolicyImage pull policyIfNotPresent
*.resources.requestsMemory and cpu request{250M,250m}
*.resources.limitsMemory and cpu limitnil
*.persistence.enabledEnable persistencefalse
*.persistence.sizeStorage request20G
*.persistence.accessModeAccess mode for PVReadWriteOnce
*.persistence.storageClassPVC storage classnil

Next table lists the configurable parameters of dash and their default values:

ParameterDescriptionDefault
enabledDeploy the dashboardtrue
dash.image.repositoryContainer image namepachyderm/dash
*.image.tagContainer image tag<latest version>
*.image.pullPolicyImage pull policyIfNotPresent
*.resources.requestsMemory and cpu request{250M,250m}
*.resources.limitsMemory and cpu limitnil
*.service.http.portHTTP service port8080
*.service.grpc.portGRPC service port8081
*.proxy.image.repositoryProxy container image namepachyderm/grpc-proxy
*.proxy.image.tagProxy container image tag<latest version>
*.proxy.image.pullPolicyProxy image pull policyIfNotPresent
*.proxy.resources.requestsProxy memory and cpu request{250M,250m}
*.proxy.resources.limitsProxy memory and cpu limitnil

In order to set which object store credentials you want to use, please set the flag credentials with one of the following values: local | s3 | google | amazon | microsoft.

ParameterDescriptionDefault
credentialsBackend credentials""

Based on the storage credentials used, fill in the corresponding parameters for your object store. Note that The local installation will deploy Pachyderm on your local Kubernetes cluster (i.e: minikube) backed by your local storage unit.

On-premises deployment

  • On an on-premise environment like Openstack, a S3 endpoint can be used as storage backend. The following credentials (such as Minio credentials) are configurable:
ParameterDescriptionDefault
s3.accessKeyS3 access key""
s3.secretKeyS3 secret key""
s3.bucketNameS3 bucket name""
s3.endpointS3 endpoint""
s3.secureS3 secure"0"
s3.signatureS3 signature"1"

Google Cloud

  • With Google Cloud credentials, you must define your GCS bucket name:
ParameterDescriptionDefault
google.bucketNameGCS bucket name""
google.credentialsGCP credentials""

Amazon Web Services

  • On Amazon Web Services, please set the next values:
ParameterDescriptionDefault
amazon.bucketNameAmazon bucket name""
amazon.distributionAmazon distribution""
amazon.idAmazon id""
amazon.regionAmazon region""
amazon.roleArnAmazon role arn""
amazon.secretAmazon secret""
amazon.tokenAmazon token""

Microsoft Azure

  • As for Microsoft Azure, you must specify the following parameters:
ParameterDescriptionDefault
microsoft.containerContainer""
microsoft.idAccount name""
microsoft.secretAccount key""

How to install the chart

We strongly suggest that the installation of Pachyderm should be performed in its own namespace. Note that you should have RBAC enabled in your cluster to make the installation work with the default settings. The default installation will deploy Pachyderm on your local Kubernetes cluster:

$ helm install --namespace pachyderm --name my-release stable/pachyderm

You should install the chart specifying each parameter using the --set key=value[,key=value] argument to helm install. Please consult the values.yaml file for more information regarding the parameters. For example:

$ helm install --namespace pachyderm --name my-release \
--set credentials=s3,s3.accessKey=myaccesskey,s3.secretKey=mysecretkey,s3.bucketName=default_bucket,s3.endpoint=domain.subdomain:8080,etcd.persistence.enabled=true,etcd.persistence.accessMode=ReadWriteMany \
stable/pachyderm

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart:

$ helm install --namespace pachyderm --name my-release -f values.yaml stable/pachyderm

Specifying a pachyderm version

To specify a pachyderm version run the following command:

$ helm install --namespace pachyderm --name my-release \
--set pachd.image.tag=1.8.6,pachd.worker.tag=1.8.6 \
stable/pachyderm

Accessing the pachd service

In order to use Pachyderm, please login through ssh to the master node and install the Pachyderm client:

$ curl -o /tmp/pachctl.deb -L https://github.com/pachyderm/pachyderm/releases/download/v1.8.6/pachctl_1.8.6_amd64.deb && sudo dpkg -i /tmp/pachctl.deb

Please note that the client version should correspond with the pachd service version. For more information please consult the official documentation . Also, if you have your kubernetes client properly configured to talk with your remote cluster, you can simply install pachctl on your local machine and execute: pachctl --namespace <namespace> port-forward &.

Clean-up

In order to remove the Pachyderm release, you can execute the following commands:

$ helm list
$ helm delete --purge <release-name>

Deploy pachyderm with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has pachyderm on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartpachyderm is pinned at v0.5.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply