Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions k8s/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/Review-Filmes.Web/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<a href="/" id="branding">
<img src="/images/logo.png" alt="" class="logo">
<div class="logo-copy">
<h1 class="site-title">Review de Vídeos</h1>
<h1 class="site-title">Review de Vídeos - V2</h1>
<small class="site-description">Review de Vídeos</small>
</div>
</a> <!-- #branding -->
Expand Down