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
2 changes: 2 additions & 0 deletions Task-1/albinpsajan@mulearn/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
My name is Albin p sajan.
I am currently doing bteck in computer science and engineering.
5 changes: 5 additions & 0 deletions Task-2/albinpsajan@mulearn/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:3.9
WORKDIR /app
COPY . .
RUN pip install flask
CMD ["python", "app.py"]
7 changes: 7 additions & 0 deletions Task-2/albinpsajan@mulearn/app.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 albinpsajan@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 albinpsajan@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: web-app-deployment
spec:
replicas: 3
selector:
matchLabels:
app: web-app
template:
metadata:
labels:
app: web-app
spec:
containers:
- name: web-app
image: my-web-app:latest
imagePullPolicy: Never
ports:
- containerPort: 80
env:
- name: STUDENT_NAME
value: "Albin"
1 change: 1 addition & 0 deletions albinpsajan@mulearn/FinalProject/final.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"final project submission"
60 changes: 60 additions & 0 deletions albinpsajan@mulearn/FinalProject/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<!DOCTYPE html>
<html>
<head>
<title>My Scalable Web App</title>
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
background: linear-gradient(135deg, #4facfe, #00f2fe);
color: white;
text-align: center;
}

.container {
margin-top: 15%;
}

h1 {
font-size: 3em;
margin-bottom: 10px;
}

p {
font-size: 1.5em;
opacity: 0.9;
}

.card {
background: rgba(255, 255, 255, 0.15);
padding: 30px;
border-radius: 15px;
display: inline-block;
box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.footer {
position: fixed;
bottom: 10px;
width: 100%;
font-size: 0.9em;
opacity: 0.8;
}
</style>
</head>
<body>

<div class="container">
<div class="card">
<h1>Kubernetes Web App</h1>
<p>Deployed using Docker + Kubernetes</p>
<p><strong>Student: Albin</strong></p>
</div>
</div>

<div class="footer">
Powered by Nginx | Scalable Architecture
</div>

</body>
</html>
1 change: 1 addition & 0 deletions albinpsajan@mulearn/FinalProject/new.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"final project submission v2"
19 changes: 19 additions & 0 deletions albinpsajan@mulearn/Task-4/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80
1 change: 1 addition & 0 deletions albinpsajan@mulearn/Task-4/fix.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PR-FIX
13 changes: 13 additions & 0 deletions albinpsajan@mulearn/Task-4/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: nginx-service
spec:
type: NodePort
selector:
app: nginx
ports:
- protocol: TCP
port: 80
targetPort: 80
nodePort: 30007
1 change: 1 addition & 0 deletions albinpsajan@mulearn/Task-4/update.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
update