From bed2d5b6ef1de21336d207f629f9d3321c04947c Mon Sep 17 00:00:00 2001 From: Bryan Dollery Date: Wed, 16 Sep 2020 00:37:39 +0300 Subject: [PATCH] Updated app to run with nodeports --- demo-app/frontend.yaml | 3 ++- demo-app/products-api.yaml | 1 - demo-app/public-api.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/demo-app/frontend.yaml b/demo-app/frontend.yaml index 5f6fe50..427c934 100644 --- a/demo-app/frontend.yaml +++ b/demo-app/frontend.yaml @@ -1,4 +1,5 @@ --- +# Service to expose web frontend apiVersion: v1 kind: Service metadata: @@ -6,7 +7,7 @@ metadata: labels: app: frontend spec: - type: ClusterIP + type: NodePort ports: - port: 80 targetPort: 80 diff --git a/demo-app/products-api.yaml b/demo-app/products-api.yaml index ac72480..165bb41 100644 --- a/demo-app/products-api.yaml +++ b/demo-app/products-api.yaml @@ -1,5 +1,4 @@ --- -# Service to expose web frontend apiVersion: v1 kind: Service diff --git a/demo-app/public-api.yaml b/demo-app/public-api.yaml index a8f687d..dda4e95 100644 --- a/demo-app/public-api.yaml +++ b/demo-app/public-api.yaml @@ -6,7 +6,7 @@ metadata: labels: app: public-api spec: - type: ClusterIP + type: NodePort ports: - port: 8080 targetPort: 8080