All Products
Search
Document Center

Container Service for Kubernetes:Application synchronization options

Last Updated:Feb 27, 2024

Argo CD provides options to allow you to synchronize resources to the specified cluster on demand. This topic describes these options.

For more information, see Argo CD Sync Options.

Sync option

Description

Prune

Specify whether to delete the subresources of an application in the cluster if the subresources cannot be found in the Git repository.

Validate

Set to false to disable resource validation for some resources.

CreateNamespace

Automatically create a namespace in the specified cluster during resource synchronization.

ApplyOutOfSyncOnly

Synchronize only resources in the OutOfSync state to accelerate the synchronization process.

PruneLast

Prune resources only during the final synchronization stage (other resources are deployed and run as normal).

RespectIgnoreDifferences

Ignore the fields in spec.ignoreDifferences from the desired state (git) during the synchronization process.

ServerSideApply

Apply the changes on the server side instead of the client side. For more information, see kubectl apply --server-side.

ServerSideApply can also be used to patch existing resources by providing a partial YAML.

PrunePropagationPolicy

The resource prune and propagation policy. Valid values:

  • background: Delete dependent objects in the after deleting the owner object.

  • foreground: Delete the owner object after deleting the dependent objects.

  • orphan: Delete only the owner object. The dependent objects become orphan objects.

Default value: foreground.

Replace

Use kubectl replace/create instead of kubectl apply to synchronize resources.

References

For more information about how to use GitOps to create and deploy applications, see Application management or Use an ApplicationSet to create multiple applications.