From 55f808b12e94f4469992cfeb17fc1f755dfd15d4 Mon Sep 17 00:00:00 2001 From: Shahrukh756 <155889706+Shahrukh756@users.noreply.github.com> Date: Sun, 5 May 2024 18:19:16 +0530 Subject: [PATCH] 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..1028312dd --- /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: shahrukh756/project2:latest + ports: + - containerPort: 80