Kubernetes Deployments: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=External= | =External= | ||
* https://kubernetes.io/docs/concepts/workloads/controllers/deployment/ | * https://kubernetes.io/docs/concepts/workloads/controllers/deployment/ | ||
=Internal= | =Internal= | ||
* [[ | * [[Kubernetes Workload Resources#Deployment|Kubernetes Workload Resources]] | ||
=Overview= | =Overview= | ||
Line 9: | Line 9: | ||
A Deployment brings scalability, self-healing, zero-downtime rolling updates and versioned rollbacks to a set of [[Kubernetes_Pod_and_Container_Concepts#Pod|pods]]. | A Deployment brings scalability, self-healing, zero-downtime rolling updates and versioned rollbacks to a set of [[Kubernetes_Pod_and_Container_Concepts#Pod|pods]]. | ||
=<span id='API'></span>Deployment Manifest= | |||
{{Internal|Kubernetes Deployment Manifest|Deployment Manifest}} | {{Internal|Kubernetes Deployment Manifest|Deployment Manifest}} | ||
=Pod Names= | |||
{{External|https://medium.com/faun/kubernetes-pod-naming-convention-78272fcc53ed}} | |||
⚠️ The pod template manifest allows specifying a pod name, however it will be ignored. If it is not specified, that is fine. The pod names will be generated based on the deployment name, appending random sequences of characters: | |||
<syntaxhighlight lang='text'> | |||
httpd-6b8bb7895d-m9bzt | |||
</syntaxhighlight> | |||
=Playground Example= | |||
{{External|https://github.com/ovidiuf/playground/tree/master/kubernetes/simple-deployment}} | |||
=Scaling= | |||
A Deployment has a Scale sub-resource, allowing it to be controlled by a [[Kubernetes Horizontal Pod Autoscaler#Overview|horizontal pod autoscaler]]. | |||
=Operations= | |||
{{Internal|Kubernetes Deployment Operations|Deployment Operations}} |
Latest revision as of 23:28, 11 July 2023
External
Internal
Overview
A Deployment brings scalability, self-healing, zero-downtime rolling updates and versioned rollbacks to a set of pods.
Deployment Manifest
Pod Names
⚠️ The pod template manifest allows specifying a pod name, however it will be ignored. If it is not specified, that is fine. The pod names will be generated based on the deployment name, appending random sequences of characters:
httpd-6b8bb7895d-m9bzt
Playground Example
Scaling
A Deployment has a Scale sub-resource, allowing it to be controlled by a horizontal pod autoscaler.