Deploy an application to a Kubernetes Cluster via Humanitec

Number of APIs: 8

Deploy a sample application to Kubernetes with the Humanitec API

Running this collection will deploy an application to an example Kubernetes cluster provided by Humanitec.
The details of the application can be found here: https://github.com/humanitec-tutorials

The deployment will consists of a backend and a frontend service as well as a dynamically created postgres database in a gcloud cloudsql instance and a dynamically created DNS record plus ssl certificate.

Requirements

To run this collection you need to be registered as a Humanitec user. Registration and usage of the Humanitec community edition https://humanitec.com/pricing is free.

Once you registered with Humanitec you will be able to create an API token to use this collection. How to obtain an API token is also described here: https://api-docs.humanitec.com/#section/Introduction/Authentication

  1. Create Application POST https://api.humanitec.io/orgs/{{org_id}}/apps

  2. Create Empty Application Delta POST https://api.humanitec.io/orgs/{{org_id}}/apps/{{app_id}}/deltas

  3. Get User Info GET https://api.humanitec.io/current-user

  4. And an ingress rule to the frontend workload PATCH https://api.humanitec.io/orgs/{{org_id}}/apps/{{app_id}}/deltas/{{delta_id}}

  5. Deploy application using the delta POST https://api.humanitec.io/orgs/{{org_id}}/apps/{{app_id}}/envs/development/deploys

  6. Check the running application GET https://api.humanitec.io/orgs/{{org_id}}/apps/{{app_id}}/envs/development/runtime

  7. Check the resources of the running application GET https://api.humanitec.io/orgs/{{org_id}}/apps/{{app_id}}/envs/development/resources

  8. Delete Application DELETE https://api.humanitec.io/orgs/{{org_id}}/apps/{{app_id}}