diff --git a/src/Dockerfile b/src/Dockerfile new file mode 100644 index 000000000..085ca0803 --- /dev/null +++ b/src/Dockerfile @@ -0,0 +1,2 @@ +FROM ubuntu +RUN apt-get update && apt-get install curl --yes && apt-get install vim --yes \ No newline at end of file diff --git a/src/kubernetes/deployment.yaml b/src/kubernetes/deployment.yaml new file mode 100644 index 000000000..b353ec5ee --- /dev/null +++ b/src/kubernetes/deployment.yaml @@ -0,0 +1,34 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: meudeployment +spec: + replicas: 1 + selector: + matchLabels: + app: web + template: + metadata: + labels: + app: web + spec: + containers: + - name: web + image: 763ed2a0a734/conversao-temperatura:v1 + ports: + - containerPort: 8080 +--- +apiVersion: v1 +kind: Service +metadata: + name: web +spec: + selector: + app: web + ports: + - protocol: TCP + port: 8080 + nodePort: 30000 + type: NodePort + + \ No newline at end of file