✅What is Deployment in k8s
A Deployment provides a configuration for updates for Pods and ReplicaSets.
You describe a desired state in a Deployment, and the Deployment Controller changes the actual state to the desired state at a controlled rate. You can define Deployments to create new replicas for scaling, or to remove existing Deployments and adopt all their resources with new Deployments.
✅Task-1:
Create one Deployment file to deploy a sample todo-app on K8s using the "Auto-healing" and "Auto-Scaling" features
- add a deployment.yml file
apiVersion: apps/v1
kind: Deployment
metadata:
name: node-app-deployment
labels:
app: node-app
spec:
replicas: 3
selector:
matchLabels:
app: node-app
template:
metadata:
labels:
app: node-app
spec:
containers:
- name : node-todo-app
image: sarikak/node-app-batch-6
ports:
- containerPort: 8000
- apply the deployment to your k8s (minikube) cluster by command
kubectl apply -f deployment.yml
📚Happy Learning :)
KubernetesKubernetes deployments#90daysofdevops#90daysofdevops chanllenge#90daysofdevopschallengeTrainWithShubham#trainwithshubham #90daysofdevopschallenge #Linux #OpenSource #Technology #OperatingSystem #90daysdevops #devopscommunity #devopsfodnahai #hiring #immediatejoiners #devopsengineer #cloudcomputing #cloudtechnology #continuousintegration #continuousdelivery #TerraWeek #community #twsstudentscholarship #developertools #linkedin #linuxcommands #shellscripting #scripting #awscommunity #awscommunityday 😉 #aws