This topic describes how to update a Kubernetes service in the Container Service console or the Kubernetes dashboard.

Update a service in the Container Service console

  1. Log on to the Container Service console.
  2. In the left-side navigation pane under Kubernetes, choose Discovery and Load Balancing > Service.
  3. Select the target cluster and namespace, and then click Update on the right of the target service. In this example, the target service is named nginx-svc.


  4. In the displayed dialog box, update the service parameters. Then, click Update. In this example, the service tag is updated from app:nginx-v1 to app:nginx-v2.


  5. In the service list, click Details on the right of the target service to view the service updates. In this example, the updated service tag app:nginx-v2 is displayed.


Update a service in the Kubernetes dashboard

  1. Log on to the Container Service console.
  2. In the left-side navigation pane under Kubernetes, click Clusters.
  3. Click Dashboard on the right of the target cluster.


  4. In the Kubernetes dashboard, select the target namespace and then click Services in the left-side navigation pane.
  5. Click the icon on the right of the target service and then click View/edit YAML.


  6. In the displayed dialog box, modify the service settings. Then, click UPDATE. In this example, the nodePort is changed to 31000.