--- hide: - toc --- # Create Secret When creating a virtual machine using Object Storage (S3) as the image source, sometimes you need to fill in a secret to get through S3's verification. The following will introduce how to create a secret that meets the requirements of the virtual machine. 1. Click __Container Management__ in the left navigation bar, then click __Clusters__ , enter the details of the cluster where the virtual machine is located, click __ConfigMaps & Secrets__ , select the __Secrets__ , and click __Create Secret__ . ![Create Secret](https://docs.daocloud.io/daocloud-docs-images/docs/en/docs/virtnest/images/secret01.png) 2. Enter the creation page, fill in the secret name, select the namespace that is the same as the virtual machine, and note that you need to select the default type __Opaque__ . The secret data needs to follow the following principles - accessKeyId: Data represented in Base64 encoding - secretKey: Data represented in Base64 encoding ![Requirements](https://docs.daocloud.io/daocloud-docs-images/docs/en/docs/virtnest/images/secret02.png) 3. After successful creation, you can use the required secret when creating a virtual machine. ![Use Secret](https://docs.daocloud.io/daocloud-docs-images/docs/en/docs/virtnest/images/secret03.png)