diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml new file mode 100644 index 0000000..0bfba9c --- /dev/null +++ b/k8s/deployment.yaml @@ -0,0 +1,80 @@ +# Postgres Deployment + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: postgre +spec: + replicas: 1 + selector: + matchLabels: + app: postgre + template: + metadata: + labels: + app: postgre + spec: + containers: + - name: postgre + image: postgres:13.1 + env: + - name: POSTGRES_PASSWORD + value: Passw0rd2024! + - name: POSTGRES_USER + value: reviewfilmes + - name: POSTGRES_DB + value: reviewfilmes + ports: + - containerPort: 5432 +--- +# Service +apiVersion: v1 +kind: Service +metadata: + name: postgre +spec: + selector: + app: postgre + ports: + - port: 5432 +--- +# Application Deployment + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: reviewfilmes +spec: + replicas: 3 + selector: + matchLabels: + app: reviewfilmes + template: + metadata: + labels: + app: reviewfilmes + spec: + containers: + - name: reviewfilmes + image: vandeilsonln/review-filmes:v2 + env: + - name: ASPNETCORE_HTTP_PORTS + value: "8080" + - name: ConnectionStrings__DefaultConnection + value: "Host=postgre;Database=reviewfilmes;Username=reviewfilmes;Password=Passw0rd2024!" + ports: + - containerPort: 8080 +--- +# Service +apiVersion: v1 +kind: Service +metadata: + name: reviewfilmes +spec: + selector: + app: reviewfilmes + ports: + - port: 80 + targetPort: 8080 + nodePort: 30000 + type: NodePort \ No newline at end of file diff --git a/src/Review-Filmes.Web/Views/Shared/_Layout.cshtml b/src/Review-Filmes.Web/Views/Shared/_Layout.cshtml index 1de7af7..d33e659 100644 --- a/src/Review-Filmes.Web/Views/Shared/_Layout.cshtml +++ b/src/Review-Filmes.Web/Views/Shared/_Layout.cshtml @@ -30,7 +30,7 @@
-

Review de Vídeos

+

Review de Vídeos - V2

Review de Vídeos