Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added akhil-user1.tar
Binary file not shown.
Binary file added akhil-user7.tar
Binary file not shown.
2 changes: 1 addition & 1 deletion deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
app: cicd-demo
spec:
containers:
- image: 591802062023.dkr.ecr.us-east-1.amazonaws.com/mywebapprepo:latest
- image: 283541956656.dkr.ecr.us-east-1.amazonaws.com/my-new-ecr
imagePullPolicy: Always
name: cicd-demo
ports:
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</style>
</head>
<body>
<h1>Welcome to My Beautiful Node.js Web Application ajin abraham </h1>
<h1>Welcome to My Beautiful Node.js Web Application Akhil Sathyan07 </h1>
<p>This is my first Node.js application created on July 20, 08:5 AM.</p>
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRugrXBlGVqi_uWmovWFJPcyBy3I4Mra7viZtdjSYbVAw&s" alt="My Image">
</body>
Expand Down
33 changes: 33 additions & 0 deletions k8s-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: node-app-deployment
spec:
replicas: 3
selector:
matchLabels:
app: node-app
template:
metadata:
labels:
app: node-app
spec:
containers:
- name: node-app
image: 283541956656.dkr.ecr.us-east-1.amazonaws.com/my-new-ecr:latest
ports:
- containerPort: 80

---

apiVersion: v1
kind: Service
metadata:
name: node-app-service
spec:
type: LoadBalancer
ports:
- port: 3000
targetPort: 80
selector:
app: node-app