[ci skip] add finance app frontend and increase echo replicas

This commit is contained in:
viktorbarzin 2023-03-12 01:37:25 +00:00
parent 83d000bde0
commit 29e7dfc6a2
No known key found for this signature in database
GPG key ID: 0EB088298288D958
3 changed files with 35 additions and 1 deletions

View file

@ -21,7 +21,7 @@ resource "kubernetes_deployment" "echo" {
}
}
spec {
replicas = 1
replicas = 5
selector {
match_labels = {
run = "echo"

View file

@ -133,6 +133,40 @@ resource "kubernetes_deployment" "finance_app" {
}
}
resource "kubernetes_deployment" "finance_app_frontend" {
metadata {
name = "finance-app-frontend"
namespace = "finance-app"
labels = {
app = "finance-app-frontend"
}
}
spec {
replicas = 3
strategy {
type = "RollingUpdate"
}
selector {
match_labels = {
app = "finance-app-frontend"
}
}
template {
metadata {
labels = {
app = "finance-app-frontend"
}
}
spec {
container {
image = "viktorbarzin/finance-app-frontend"
name = "finance-app-frontend"
}
}
}
}
}
resource "kubernetes_service" "finance_app" {
metadata {
name = "finance-app"

Binary file not shown.