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 @@ + + +
+Deployed using Docker + Kubernetes
+Student: Albin
+