diff --git a/Task-1/albinpsajan@mulearn/README.md b/Task-1/albinpsajan@mulearn/README.md new file mode 100644 index 00000000..a165c1fc --- /dev/null +++ b/Task-1/albinpsajan@mulearn/README.md @@ -0,0 +1,2 @@ +My name is Albin p sajan. +I am currently doing bteck in computer science and engineering. diff --git a/Task-2/albinpsajan@mulearn/Dockerfile b/Task-2/albinpsajan@mulearn/Dockerfile new file mode 100644 index 00000000..7eccc31c --- /dev/null +++ b/Task-2/albinpsajan@mulearn/Dockerfile @@ -0,0 +1,5 @@ +FROM python:3.9 +WORKDIR /app +COPY . . +RUN pip install flask +CMD ["python", "app.py"] diff --git a/Task-2/albinpsajan@mulearn/app.py b/Task-2/albinpsajan@mulearn/app.py new file mode 100644 index 00000000..e6d64ba0 --- /dev/null +++ b/Task-2/albinpsajan@mulearn/app.py @@ -0,0 +1,7 @@ +import time + +print("🚀 Container Started") + +while True: + print("Hello World") + time.sleep(5) diff --git a/albinpsajan@mulearn/FinalProject/Dockerfile b/albinpsajan@mulearn/FinalProject/Dockerfile new file mode 100644 index 00000000..6de08c00 --- /dev/null +++ b/albinpsajan@mulearn/FinalProject/Dockerfile @@ -0,0 +1,2 @@ +FROM nginx:alpine +COPY index.html /usr/share/nginx/html/index.html \ No newline at end of file diff --git a/albinpsajan@mulearn/FinalProject/deployment.yaml b/albinpsajan@mulearn/FinalProject/deployment.yaml new file mode 100644 index 00000000..240f2104 --- /dev/null +++ b/albinpsajan@mulearn/FinalProject/deployment.yaml @@ -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" \ No newline at end of file diff --git a/albinpsajan@mulearn/FinalProject/final.txt b/albinpsajan@mulearn/FinalProject/final.txt new file mode 100644 index 00000000..6f4ff79c --- /dev/null +++ b/albinpsajan@mulearn/FinalProject/final.txt @@ -0,0 +1 @@ +"final project submission" diff --git a/albinpsajan@mulearn/FinalProject/index.html b/albinpsajan@mulearn/FinalProject/index.html new file mode 100644 index 00000000..f962b125 --- /dev/null +++ b/albinpsajan@mulearn/FinalProject/index.html @@ -0,0 +1,60 @@ + + + + My Scalable Web App + + + + +
+
+

Kubernetes Web App

+

Deployed using Docker + Kubernetes

+

Student: Albin

+
+
+ + + + + \ No newline at end of file diff --git a/albinpsajan@mulearn/FinalProject/new.txt b/albinpsajan@mulearn/FinalProject/new.txt new file mode 100644 index 00000000..adee0370 --- /dev/null +++ b/albinpsajan@mulearn/FinalProject/new.txt @@ -0,0 +1 @@ +"final project submission v2" diff --git a/albinpsajan@mulearn/Task-4/deployment.yaml b/albinpsajan@mulearn/Task-4/deployment.yaml new file mode 100644 index 00000000..7bea728a --- /dev/null +++ b/albinpsajan@mulearn/Task-4/deployment.yaml @@ -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 \ No newline at end of file diff --git a/albinpsajan@mulearn/Task-4/fix.txt b/albinpsajan@mulearn/Task-4/fix.txt new file mode 100644 index 00000000..99418840 --- /dev/null +++ b/albinpsajan@mulearn/Task-4/fix.txt @@ -0,0 +1 @@ +PR-FIX diff --git a/albinpsajan@mulearn/Task-4/service.yaml b/albinpsajan@mulearn/Task-4/service.yaml new file mode 100644 index 00000000..ca668397 --- /dev/null +++ b/albinpsajan@mulearn/Task-4/service.yaml @@ -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 \ No newline at end of file diff --git a/albinpsajan@mulearn/Task-4/update.txt b/albinpsajan@mulearn/Task-4/update.txt new file mode 100644 index 00000000..7a1e7185 --- /dev/null +++ b/albinpsajan@mulearn/Task-4/update.txt @@ -0,0 +1 @@ +update