edit-icon download-icon

Update a service

Last Updated: Apr 23, 2018

You can update a service in the Container Service console or Kubernetes dashboard.

Update a service in Container Service console

  1. Log on to the Container Service console.

  2. Click Kubernetes > Application > Service in the left-side navigation pane.

  3. Select the cluster and namespace from the Clusters and Namespace drop-down lists.

  4. Click Update at the right of the service (nginx-svc in this example).

    1

  5. The Update dialog box appears. Modify the template. In this example, change the nodePort to 31000. Then, click OK.

    1

  6. On the Service List page, view the changes of the service. In this example, the nodePort is changed as follows.

    1

Update a service in Kubernetes dashboard

  1. Log on to the Container Service console.

  2. Click Kubernetes > Clusters in the left-side navigation pane.

  3. Click Dashboard at the right of the cluster.

    1

  4. In the Kubernetes dashboard, select the corresponding namespace and click Services in the left-side navigation pane.

  5. Click 1 at the right of the service and then select View/edit YAML from the list.

    1

  6. The Edit a Service dialog box appears. Modify the configurations. In this example, change the nodePort to 31000. Then, click UPDATE.

    1

Thank you! We've received your feedback.