Update and Adaptation
Application configuration items include image address, Service, and storage disk mounting. Update and make adaptation based on the live environment.
In this example, update the WordPress service.
- On the ELB console, buy an elastic load balancer.
- Record the ELB ID and the corresponding subnet ID.
- Log in to the CCE console, choose Resource Management > Network and find the WordPress service. Add the following annotations to its YAML file:
annotations: kubernetes.io/elb.class: union kubernetes.io/elb.id: 9d06a39d-12e1-4ada-835d-c204397498a3 kubernetes.io/elb.subnet-id: f86ba71c-beb2-46e1-8910-39c8a7d4bb36 kubernetes.io/session-affinity-mode: SOURCE_IP
If the image of your application fails to be pulled, edit the YAML file on the workload page of the CCE console. Set the image address to the repository address obtained from the SWR console.
Last Article: Restoring Kubernetes Objects in the Created CCE Cluster
Next Article: Debugging and Starting the Application
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.