From 8fef4634904c21fb50b4ce53701cb42a10e7f247 Mon Sep 17 00:00:00 2001 From: ReemaR123 Date: Mon, 4 Nov 2024 20:55:52 +0530 Subject: [PATCH 1/2] Create Dockerfile --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..9807314f8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM ubuntu +RUN apt update +RUN apt install apache2 -y +ADD . /var/www/html/ +ENTRYPOINT apachectl -D FOREGROUND From bfc56918ddd84ca6afa3e161c699f88462b91877 Mon Sep 17 00:00:00 2001 From: ReemaR123 Date: Tue, 19 Nov 2024 20:37:50 +0530 Subject: [PATCH 2/2] Create Deployment.yaml --- Deployment.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Deployment.yaml diff --git a/Deployment.yaml b/Deployment.yaml new file mode 100644 index 000000000..581809abc --- /dev/null +++ b/Deployment.yaml @@ -0,0 +1,21 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: nginx-deployment + labels: + app: nginx +spec: + replicas: 2 + selector: + matchLabels: + app: nginx + template: + metadata: + labels: + app: nginx + spec: + containers: + - name: nginx + image: reemar123/project1:latest + ports: + - containerPort: 80