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
4 changes: 4 additions & 0 deletions Task-2/febanajim@mulearn/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM python:3.9-slim
WORKDIR /app
COPY script.py .
CMD ["python", "-u", "script.py"]
7 changes: 7 additions & 0 deletions Task-2/febanajim@mulearn/script.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import time

print("🚀 Container Started")

while True:
print("Hello World")
time.sleep(5)
2 changes: 2 additions & 0 deletions febanajim@mulearn/FInalProject/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM nginx:alpine
COPY index.html /usr/share/nginx/html/index.html
23 changes: 23 additions & 0 deletions febanajim@mulearn/FInalProject/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: webapp-deployment
spec:
replicas: 3
selector:
matchLabels:
app: scalable-web
template:
metadata:
labels:
app: scalable-web
spec:
containers:
- name: webapp-container
image: local-webapp:latest
imagePullPolicy: Never
ports:
- containerPort: 80
env:
- name: STUDENT_NAME
value: "Feba Najim"
7 changes: 7 additions & 0 deletions febanajim@mulearn/FInalProject/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!DOCTYPE html>
<html>
<body>
<h1>My Kubernetes Scalable App is Live! </h1>
<p> This is Feba Najim, Muid:febanajim@mulearn</p>
</body>
</html>
Binary file added febanajim@mulearn/FInalProject/kind.exe
Binary file not shown.
2 changes: 2 additions & 0 deletions febanajim@mulearn/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Hi
Myself Feba Najim, final year B.Tech Computer Science student from MES College of Engineering, Kuttippuram.