From d14489e9eef6c6ec95d580ec8e4d80fc80b2cc7b Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 5 Jun 2021 18:24:30 +0200 Subject: [PATCH] Add service to nginx test deployment --- v3-calico/nginx-test-deployment.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/v3-calico/nginx-test-deployment.yaml b/v3-calico/nginx-test-deployment.yaml index af12278..f93243e 100644 --- a/v3-calico/nginx-test-deployment.yaml +++ b/v3-calico/nginx-test-deployment.yaml @@ -17,3 +17,14 @@ spec: image: nginx:1.20.0-alpine ports: - containerPort: 80 +--- +apiVersion: v1 +kind: Service +metadata: + name: nginx-service +spec: + selector: + app: nginx + ports: + - protocol: TCP + port: 80