Container Service Kubernetes (ACK) supports application triggers. You can use application triggers for different methods. This topic describes how to use an application trigger to redeploy an application.
- An ACK cluster is created. For more information, see Create a cluster of ACK Proprietary Edition.
- An application is created. You can use this application to create and test a trigger. In this example, an NGINX application is created.
- Log on to the ACK console.
- In the left-side navigation pane, click Clusters.
- On the Clusters page, click the name of a cluster or click Details in the Actions column. The details page of the cluster appears.
- In the left-side navigation pane, click Workload.
- On the Deployments tab, set the namespace, find the application that you want to manage, and then click Details in the Actions column of the application.
- On the NGINX application details page, click the Triggers tab and click Create Trigger.
- In the Create Trigger dialog box, set Action to Redeploy and click OK.Note Only Redeploy is available in the Action drop-down list.
After the trigger is created, a trigger link appears in the Trigger Link Address column on the Triggers tab.
- Copy the link and open it in your browser. A message appears to display specific information
such as the request ID.
- Go to the NGINX application details page. A new pod appears on the page.
After the new pod is deployed, the original pod is automatically deleted.
What to do next
You can call a trigger by using GET or POST in a third-party system. For example, you can run the curl command to call a trigger.
To call the trigger to redeploy an application, run the following command: