Remote Pods with JinaD¶
Inside a Flow¶
A common case of using Jina remotely is to have a Flow running locally with Pod on the remote. Following code creates a Flow with a remote Pod on
184.108.40.206 and uploads the pod yaml to remote using
upload_files. All remote logs are collected by the Flow.
from jina import Flow, Document f = (Flow() .add(uses='_logforward', host='220.127.116.11:8000', upload_files=['custom_encoder.yml'])) with f: f.index(Document())
jtype: Flow pods: - uses: _logforward host: 18.104.22.168:8000 upload-files: - custom_encoder.yml