Difference between revisions of "Kubernetes deployments"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
* <code>[[kind: Deployment]]</code> | * <code>[[kind: Deployment]]</code> | ||
− | * [[Containers:]], [[image]]:, [[Volumes:]], [[Mounts:]] | + | * <code>[[Containers:]], [[image]]:, [[Volumes:]], [[Mounts:]]</code> |
== Commands == | == Commands == |
Revision as of 12:08, 15 January 2024
Kubernetes deployments provides declarative updates for Pods
and ReplicaSets
.
Contents
Commands
kubectl rollout
:status, restart, resume, pause, history, undo
kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.10
kubectl expose deployment hello-minikube --type=NodePort --port=8080
kubectl describe deployment mysql
kubectl get deployments
kubectl get deployments -A
kubectl scale deployment
Activities
- CKA v1.24: Understand the primitives used to create robust, self-healing, application deployments
- CKA v1.23: Understand deployments and how to perform rolling update and rollbacks
- CKA v1.18: Understand Kubernetes deployments and how to perform updates and rollbacks
- CKA v1.15: Understand Deployments and how to perform rolling updates
- Read https://blog.container-solutions.com/kubernetes-deployment-strategies
- Recreate, rolling-update, a/b testing .../...
- Read https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/#deployment-recommended
Related terms
- Canary Deployment
kubectl scale
kubectl rolling-update
(deprecated)kubectl rollout pause
- Kubernetes services
- Kubernetes Rolling updates
kind: ReplicaSet
- Kubernetes pod affinity and anti affinity
deployment.kubernetes.io
See also
- Kubernetes deployments, strategies:
kind: Deployment
, Strategies:Recreate
orRollingUpdate
,kubectl
[create | describe | get | scale | rollout | deployment/
], Kubernetes Canary Deployments,deployment.kubernetes.io
- Kubernetes Workloads:
Deployment
,ReplicaSet, StatefulSet, DaemonSets, Job, CronJob
,.apps/
Advertising: