Day 32 : Launching your Kubernetes Cluster with Deployment
we will continue our kubernetes project from yesterday. If you have not read it please check it from here :https://hashnode.com/post/cli9h3lys00030al733g0gn4a
we will deploy that app. For that we need to create deploment.yml
apiVersion: apps/v1
kind: Deployment
metadata:
name: nodw-app
labels:
app: node-app
spec:
replicas: 5
selector:
matchLabels:
app: node-app
template:
metadata:
labels:
app: node-app
spec:
containers:
- name: node-app
image: patelajay745/node-app-new:latest
ports:
- containerPort: 3000
After creating this file you can deploy using the following command
kubectl apply -f deployment.yml
and your deployment will be created as below.

you can check your deployment by runinng following command

and you can checkyour running pod by running following command.

That was it for today's challenge. If you have any questions/suggestions please write in comments.
See you tomorrow for more Kubernetes awesomeness! 👋😄
#Kubernetes #Deployment #DevOps #Containerization #TechJourney



