Difference between revisions of "Kubernetes deployments"

From wikieduonline
Jump to navigation Jump to search
 
(35 intermediate revisions by 2 users not shown)
Line 1: Line 1:
A Deployment provides declarative updates for [[Pods]] and [[ReplicaSets]].
+
Kubernetes deployments provides declarative updates for <code>[[Pods]]</code> and <code>[[ReplicaSets]]</code>.
 +
* https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
  
https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
+
* [[Kubernetes deployments strategies|Strategies]]: <code>[[Recreate]]</code> or <code>[[RollingUpdate]]</code>
 +
* [[Kubernetes Canary Deployments]] <code>[[track:]]</code>
 +
* <code>[[replicas:]]</code>
 +
* <code>[[kind: Deployment]]</code>
  
 +
* <code>[[Replicas:]], [[RollingUpdateStrategy:]], [[Containers:]], [[image]]:, [[Volumes:]], [[Mounts:]]</code>
  
* <code>[[kubectl rollout]]</code>
+
== Commands ==
 +
* <code>[[kubectl rollout]]</code>: <code>[[kubectl rollout status|status]], [[kubectl rollout restart|restart]], [[kubectl rollout resume|resume]], [[kubectl rollout pause|pause]], [[kubectl rollout history|history]], [[kubectl rollout undo|undo]]</code>
 
* <code>[[kubectl create deployment]] hello-minikube --image=k8s.gcr.io/echoserver:1.10</code>
 
* <code>[[kubectl create deployment]] hello-minikube --image=k8s.gcr.io/echoserver:1.10</code>
 
:: <code>[[kubectl expose]] deployment hello-minikube --type=[[NodePort]] --port=8080</code>
 
:: <code>[[kubectl expose]] deployment hello-minikube --type=[[NodePort]] --port=8080</code>
  
 
* <code>[[kubectl describe deployment]] mysql</code>
 
* <code>[[kubectl describe deployment]] mysql</code>
 +
* <code>[[kubectl get deployments]]</code>
 +
* <code>[[kubectl get deployments -A]]</code> 
 
* <code>[[kubectl scale deployment]]</code>
 
* <code>[[kubectl scale deployment]]</code>
  
 
== Activities ==
 
== Activities ==
* [[CKA v1.23]]: [[Understand deployments]] and how to perform [[rolling update]] and [[rollbacks]]
+
* [[CKA v1.24]]: [[Understand the primitives used to create robust, self-healing, application deployments]]
* [[CKA v1.18]]: Understand [[Kubernetes deployments|deployments]] and how to perform [[updates]] and [[rollbacks]]
+
* [[CKA v1.23]]: [[Understand deployments and how to perform rolling update and rollbacks]]
 +
* [[CKA v1.18]]: [[Understand deployments and how to perform rolling update and rollbacks|Understand Kubernetes deployments and how to perform updates and rollbacks]]
 
* [[CKA v1.15]]: Understand Deployments and how to perform [[rolling updates]]
 
* [[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
 +
* [[Update your deployment with a new image version]]: [[kubectl set]]
 +
 +
== Errors ==
 +
* <code>[[Error: creating Synthetics Canary]]</code>
  
 
== Related terms ==
 
== Related terms ==
 
* [[Canary Deployment]]
 
* [[Canary Deployment]]
* <code>[[kind: Deployment]]</code>
 
* [[Kubernetes services]]
 
 
* <code>[[kubectl scale]]</code>
 
* <code>[[kubectl scale]]</code>
 
* <code>[[kubectl rolling-update]]</code> (deprecated)
 
* <code>[[kubectl rolling-update]]</code> (deprecated)
 +
* <code>[[kubectl rollout pause]]</code>
 +
* [[Kubernetes services]]
 +
* [[Kubernetes Rolling updates]]
 +
* <code>[[kind: ReplicaSet]]</code>
 +
* [[Kubernetes pod affinity and anti affinity]]
 +
* <code>[[deployment.kubernetes.io]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{Kubernetes deployments}}
 
* {{Kubernetes Workloads}}
 
* {{Kubernetes Workloads}}
* {{Kubernetes deployments}}
 
 
  
 
[[Category:Kubernetes]]
 
[[Category:Kubernetes]]

Latest revision as of 13:15, 11 March 2024

Kubernetes deployments provides declarative updates for Pods and ReplicaSets.

Commands[edit]

kubectl expose deployment hello-minikube --type=NodePort --port=8080

Activities[edit]

Errors[edit]

Related terms[edit]

See also[edit]

Advertising: