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