Deployment
A deployment in Kubernetes is a resource object that provides declarative updates to applications. It manages the deployment of replica sets, allowing you to roll out updates seamlessly and easily roll back to previous versions if necessary. Deployments are crucial for scaling applications, managing containerised applications, and ensuring application uptime. More detailed information can be found in the official Kubernetes deployment documentation.
Terraform Mappings:
kubernetes_deployment_v1.metadata[0].name
kubernetes_deployment.metadata[0].name
Supported Methods​
GET
: Get a Deployment by nameLIST
: List all DeploymentsSEARCH
: Search for a Deployment using the ListOptions JSON format e.g. ("labelSelector": "app=wordpress")
Possible Links​
ReplicaSet
​
Deployments are closely related to ReplicaSets, as each Deployment manages one or more ReplicaSets. When you create a Deployment, it automatically creates a ReplicaSet to manage the specified number of pod replicas. During scaling or updates, the Deployment adjusts the ReplicaSet to meet the desired specifications, ensuring smooth rollouts and rollback capabilities.