Search code examples
pythonvespa

How to deploy an application in Vespa to a remote target using pyvespa?


I have Vespa running in a container (using Docker compose) and want to deploy my application package from another container in the same network using pyvespa. The vespa deploy command of Vespa CLI has a target option where I can provide a host, but I don't see such an option when using pyinvoke. Especially the Vespa class has no deploy method. Is this scenario not supported by pyvespa and do I have to use the Vespa CLI?


Solution

  • Prefer using Vespa CLI for control plane changes. The deploy support in pyvespa is for demonstration purposes (e.g. to demonstrate in a notebook).