Question

Rest API, creating containers

Hello Digitalocean,

We are a SaaS company based on Canada, we host our product on AWS, we are thinking to migrate every think to digitalocean ASAP.

We would like to know if there is a REST API that we can use to create containers, since we gonna use Digitalocean Kubernetes.

Our question is based on: Our SaaS model, because we create a container per client ( we have a CRM ).

Otherwise, what are your suggestions please.

Thank you


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

You could use the DigitalOcean API to create your Docker images as described here:

https://docs.digitalocean.com/products/container-registry/quickstart/

For the deployment of those images to an orchestration system like Kubernetes, you could use a CI/CD tool.

For example, one option is to use CircleCI as described here:

https://www.digitalocean.com/community/tutorials/how-to-automate-deployments-to-digitalocean-kubernetes-with-circleci

Alternatively, there are other CI/CD tools out there that you might prefer but this would depend on the skills that you have in your current Ops team and previous experience. To name a few tools: GitHub Actions, GitLab CI/CD, Flux:

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-continuous-delivery-pipeline-with-flux-on-digitalocean-kubernetes

Hope that this helps. Best, Bobby