Using Huawei cloud resources to create an inference model for face recognition.
I have face the issue during installing docker on my Ubuntu 22.04. Here is a method to resolve it Docker Installation.
Environment | Version | Function |
---|---|---|
Architecture | x86_64 | |
Ubuntu | 22.04 | |
python | 3.10.12 | |
Docker | 27.2.0 | Deploy image |
Kubectl | 4.5.7 | For K8s debugging |
- VPC
- ELB
- CCE
- NAT
- Redis
- RDS
- Function Graph
- OBS
- EIP x 3
- SWR
Focus on some complicated service only. Others just follow documentation to create.
CCE: Using for deploying application
- Choose any type (I choose CCE Turbo Cluster)
- Create nodepool (I choose spec: c7n.4xlarge.2 | 16 vCPUs | 32 GiB)
- Create deployment & service in backend_code/README.md
NAT: Bind with CCE's node subnet, provide node with capability to connect public internet for downloading document
- Create NAT
- Buy EIP
- Create SNAT rule and bind with EIP bought just now
SWR: SWR is a service to upload CCE needed image
- Copy login cmd from SWR
- Create Resources
- Clone this repository
- Update environment variables
- Modify push docker image dest
# Build the Docker image
image="swr.ap-southeast-3.myhuaweicloud.com/model-deploy/${name}"
docker build -t ${image}:v${version} .
- run script inside
backend_code
directory andfrontend_code
directory
./run.sh <image-name> [-v <version>] [-s]
- Generate terraform script for one-step create resources
- Generate yaml script for one-step deploy CCE