package deployment
import "k8s.io/kubernetes/pkg/controller/deployment"
Package deployment contains all the logic for handling Kubernetes Deployments. It implements a set of strategies (rolling, recreate) for deploying an application, the means to rollback to previous versions, proportional scaling for mitigating risk, cleanup policy, and other useful features of Deployments.
Index ¶
- type DeploymentController
- func NewDeploymentController(ctx context.Context, dInformer appsinformers.DeploymentInformer, rsInformer appsinformers.ReplicaSetInformer, podInformer coreinformers.PodInformer, client clientset.Interface) (*DeploymentController, error)
- func (dc *DeploymentController) Run(ctx context.Context, workers int)
Types ¶
type DeploymentController ¶
type DeploymentController struct {
// contains filtered or unexported fields
}
DeploymentController is responsible for synchronizing Deployment objects stored in the system with actual running replica sets and pods.
func NewDeploymentController ¶
func NewDeploymentController(ctx context.Context, dInformer appsinformers.DeploymentInformer, rsInformer appsinformers.ReplicaSetInformer, podInformer coreinformers.PodInformer, client clientset.Interface) (*DeploymentController, error)
NewDeploymentController creates a new DeploymentController.
func (*DeploymentController) Run ¶
func (dc *DeploymentController) Run(ctx context.Context, workers int)
Run begins watching and syncing.
Source Files ¶
deployment_controller.go progress.go recreate.go rollback.go rolling.go sync.go
Directories ¶
Path | Synopsis |
---|---|
pkg/controller/deployment/config | |
pkg/controller/deployment/config/v1alpha1 | |
pkg/controller/deployment/util |
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 31 packages
- Last checked
- 3 hours ago –
Tools for package owners.