diff --git a/web-server_deployment.yml b/web-server_deployment.yml index 05ba4eb..327302d 100644 --- a/web-server_deployment.yml +++ b/web-server_deployment.yml @@ -18,7 +18,6 @@ spec: containers: - name: web-server image: quay.io/didierofrivia/go-fetch-products:latest - imagePullPolicy: IfNotPresent env: - name: PORT value: "8080" diff --git a/web-server_service.yml b/web-server_service.yml new file mode 100644 index 0000000..82cbfa9 --- /dev/null +++ b/web-server_service.yml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: web-server +spec: + type: NodePort + ports: + - port: 80 + targetPort: 8080 + selector: + app: web-server