This example demonstrates how to update images for Deployment and StatefulSet workloads in Tencent Cloud Container Service using Cloud Native Build.
secret_id Secret ID, details in doc/access.mdsecret_key Secret Keyregion Cluster region, format like: ap-nanjing. Details in doc/regions.mdcluster_id Cluster ID, format like: cls-m9miwj4unamespace Namespace of the workload, e.g. defaultworkload_kind Workload type. Supports deployment, statefulsetworkload_name Workload namecontainer_names Container names, separate multiple with commascontainer_images New container images to update, separate multiple with commas# Example image update configuration
main:
push:
- stages:
- name: Update image using TKE plugin
image: tencentcom/deploy-to-tke
settings:
secret_id: AKID***MpL4
secret_key: mRH1***wu0C
region: ap-***
cluster_id: cls-***
namespace: default
workload_kind: deployment
workload_name: my-***-deployment
container_names: container-***-1
container_images: nginx-***:v1