This document discusses containerizing a REST microservice and deploying it to Kubernetes. It begins by explaining why to build a REST API using Swagger and containerization. It then demonstrates containerizing a sample REST API created with Swagger-node. Finally, it covers deploying the containerized REST API to Kubernetes, including using Kubernetes templates for the deployment and service, and deploying manually or through a CI system.
12. @aroach@CiscoDevNetdeveloper.cisco.com
OpenAPI Spec (fka Swagger)
• Open specification for describing REST APIs
• A top-down approach where you would use
the Swagger Editor to create your Swagger definition
and then use the integrated Swagger Codegen tools to
generate server implementation.
• A bottom-up approach where you have an existing
REST API for which you want to create a Swagger
definition.