kubernetesk8s.io/kubernetes/pkg/controller/deployment Index | Files | Directories

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

Constants

const (
	// FullDeploymentResyncPeriod means we'll attempt to recompute the required replicas
	// of all deployments.
	// This recomputation happens based on contents in the local caches.
	FullDeploymentResyncPeriod = 30 * time.Second
	// We must avoid creating new replica set / counting pods until the replica set / pods store has synced.
	// If it hasn't synced, to avoid a hot loop, we'll wait this long between checks.
	StoreSyncedPollPeriod = 100 * time.Millisecond
	// MaxRetries is the number of times a deployment will be retried before it is dropped out of the queue.
	MaxRetries = 5
)

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(client clientset.Interface, resyncPeriod controller.ResyncPeriodFunc) *DeploymentController

NewDeploymentController creates a new DeploymentController.

func (*DeploymentController) Run

func (dc *DeploymentController) Run(workers int, stopCh <-chan struct{})

Run begins watching and syncing.

Source Files

deployment_controller.go recreate.go rollback.go rolling.go sync.go

Directories

PathSynopsis
pkg/controller/deployment/util
Version
v1.4.0-beta.10
Published
Sep 22, 2016
Platform
js/wasm
Imports
30 packages
Last checked
3 minutes ago

Tools for package owners.