Run Commands
Read the PPS series >

Service PPS

Enable a pipeline to be treated as a long-running service.

Spec #

This is a top-level attribute of the pipeline spec.

{
  "pipeline": {...},
  "transform": {...},
  "service": {
    "internal_port": int,
    "external_port": int
  },
  ...
}

Attributes #

AttributeDescription
internal_portThe port that the user code binds to inside the container.
external_portThe port on which it is exposed through the NodePorts functionality of Kubernetes services.

Behavior #

When to Use #

You should use the service field in a Pachyderm Pipeline Spec when you want to expose your pipeline as a Kubernetes service, and allow other Kubernetes services or external clients to connect to it.

Example scenarios: