Components
The diagram in the Zun WebSocket proxy section shows the architecture of Zun. Zun has two binaries: zun-api
and zun-compute
. These two services together carry the whole life cycle of container management of containers. These services interact with other OpenStack services such as Glance for the container images, Cinder for providing volume to the containers, and Neutron for the connectivity between containers and the outside world. The request for containers is finally communicated to the Docker services running on the compute node. Docker then creates the container for the users.
zun-api
zun-api
is a WSGI server that serves the users' API requests. For every resource in Zun, there are separate handlers:
- Container
- Host
- Images
- Zun services
Each of the controllers handle a request for specific resources. They validate the request for permissions, validate the OpenStack resources including validating if the image is present in Docker Hub or Glance, and create a DB object for the resource...