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
-
Create Application POST https://api.humanitec.io/orgs/{{org_id}}/apps
-
Create Empty Application Delta POST https://api.humanitec.io/orgs/{{org_id}}/apps/{{app_id}}/deltas
-
And an ingress rule to the frontend workload PATCH https://api.humanitec.io/orgs/{{org_id}}/apps/{{app_id}}/deltas/{{delta_id}}
-
Deploy application using the delta POST https://api.humanitec.io/orgs/{{org_id}}/apps/{{app_id}}/envs/development/deploys
-
Check the running application GET https://api.humanitec.io/orgs/{{org_id}}/apps/{{app_id}}/envs/development/runtime
-
Check the resources of the running application GET https://api.humanitec.io/orgs/{{org_id}}/apps/{{app_id}}/envs/development/resources
-
Delete Application DELETE https://api.humanitec.io/orgs/{{org_id}}/apps/{{app_id}}