The invention particularly relates to a method for automatically creating and mounting an LVM volume in a K8s environment. The method for automatically creating and mounting the LVM volume in the K8senvironment comprises the following steps of: based on the Kubernetes environment, firstly, making a mirror image for executing automatic creation and mounting of the LVM volume, and then, defining aConfigmap tube and a Job management single copy Pod to run the made mirror image, configuring container permission, environment variables, mount required and selecting nodes; and finally, using a Kubernetes client to operate the previously created yaml file, including Configmap and Deployment, so as to achieve automatic creation and LVM volume mounting of target node operation; repeated operationcan be realized, subsequent expansion of the LVM volume is supported, node service is provided, and local storage is used. According to the method for automatically creating and mounting the LVM volume in the K8s environment, conversion from the target disk to the LVM volume is completed by reading related configurations through Kubernetes Job, and the LVM volume is mounted on the target directoryto provide service for use, so that the usability and manageability are greatly improved compared with the process of manually completing disk initialization and mounting, and the requirement of using local storage by Kubernetes service in the production environment can be met.