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 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