From cadb39c02bf051e97f27dea5ef87fa761a38261b Mon Sep 17 00:00:00 2001 From: Carlos Ponce Date: Tue, 29 Jun 2021 00:16:50 -0300 Subject: [PATCH 1/3] Dockerfile --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4486246 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM node:14.16.1-alpine3.13 +WORKDIR /app +COPY package*.json ./ +RUN npm install +COPY . . +EXPOSE 8080 +CMD ["node", "index.js"] From a459bf3c0e29d8a97f1aabc94029cf2546ea6cc1 Mon Sep 17 00:00:00 2001 From: Carlos Ponce Date: Fri, 2 Jul 2021 21:28:50 -0300 Subject: [PATCH 2/3] manifestos --- k8s/deployment.yaml | 19 +++++++++++++++++++ k8s/service.yaml | 10 ++++++++++ 2 files changed, 29 insertions(+) create mode 100644 k8s/deployment.yaml create mode 100644 k8s/service.yaml diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml new file mode 100644 index 0000000..2c74122 --- /dev/null +++ b/k8s/deployment.yaml @@ -0,0 +1,19 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: swagger +spec: + replicas: 2 + selector: + matchLabels: + app: swagger + template: + metadata: + labels: + app: swagger + spec: + containers: + - name: site + image: cadu1982/api-conversao + ports: + - containerPort: 80 diff --git a/k8s/service.yaml b/k8s/service.yaml new file mode 100644 index 0000000..3e32ea8 --- /dev/null +++ b/k8s/service.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Service +metadata: + name: swagger-service +spec: + selector: + app: swagger + ports: + - port: 80 + type: NodePort From 5ef7fad42928cc7c4ef8e93682634908c3f5fd77 Mon Sep 17 00:00:00 2001 From: Carlos Ponce Date: Mon, 5 Jul 2021 21:16:37 -0300 Subject: [PATCH 3/3] foi --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 43b1a71..a5564cb 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,4 @@ +# Ta tudo certo const express = require('express'); const os = require('os') const app = express();