Provisioning of API and Policy Updates
About this task
To provision the API definition and policy updates for a Microgateway deployed in the Kubernetes pod, you have to update the API and redeploy AppMesh.
To provision API and policy updates in the AppMesh environment
Procedure
What to do next
To allow redeployment updates to occur with zero downtime of the pods, the Kubernetes out-of-the-box support through rolling updates is used. This ensures that the deployment does not break the current requests, and no requests are dropped due to a pod failure.
The Kubernetes rolling updates strategy used in AppMesh redeployment has the following parameters:
RollingUpdate
. New pods are added gradually, and old pods are terminated gradually.maxSurge
. The number of pods that can be created above the desired amount of pods during an update.maxUnavailable
. The number of pods that can be unavailable during the update process.
Sample Rolling Update strategy you must add in the deployment descriptor that allows for maximum available pods is as follows:
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1