The invention provides an openstack-based container deployment method and architecture, and belongs to the technical field of communication. The deployment method comprises the following steps: preparing resources necessary for creating a container cluster in an openstack, and creating, by a client, a container cluster template in combination with the resources by calling an interface module; creating, by the client, the container cluster through the interface module according to the input container cluster template and the container cluster size information; verifying, by the interface module, the container cluster size information, and sending the container cluster size information to a decision making module, obtaining, by the decision making module, the configuration information of thecontainer cluster template from a data module, obtaining an arrangement module of a corresponding container management engine from a drive management module, and generating a heat arrangement template; and automatically scheduling, by a heat arrangement module, openstack resources according to the heat arrangement template, and arranging and deploying a container cluster environment. By adoptionof the method and the architecture, the rapid deployment of the container cluster is achieved by means of the container cluster template, the development cost is reduced, and the deployment efficiencyis improved.