From 57cf353500020ef26df833d6b2a0cbdcfaacc410 Mon Sep 17 00:00:00 2001 From: Oriol Date: Tue, 14 Mar 2023 22:13:23 +0000 Subject: [PATCH] . --- simple_nginx/ingress.yaml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/simple_nginx/ingress.yaml b/simple_nginx/ingress.yaml index 1629864..3e81ebc 100644 --- a/simple_nginx/ingress.yaml +++ b/simple_nginx/ingress.yaml @@ -24,4 +24,24 @@ spec: - name: name-of-service-port protocol: TCP port: 80 - targetPort: http-web-svc \ No newline at end of file + targetPort: http-web-svc +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: nginx-service +spec: + selector: + matchLabels: + app: nginx-backend + replicas: 2 # tells deployment to run 2 pods matching the template + template: + metadata: + labels: + app: nginx + spec: + containers: + - name: nginx + image: nginx:1.14.2 + ports: + - containerPort: 80 \ No newline at end of file