Deployments
Deployments are one of the most important resources in Kubernetes for running applications. They provide a declarative way to manage pods and replicas.
A deployment defines the desired state for your application, including the container image, number of replicas, resource limits, and more. The Kubernetes control plane works to match the actual state of your cluster to the desired state in the deployment.
For example, here is a simple deployment manifest:
deployment.yaml
apiVersion: apps/v1 kind: Deployment metadata:     name: myapp-deployment spec:     replicas: 3     selector:     matchLabels:       app: myapp     template:     metadata:       labels:         app: myapp     spec:       containers...