Skip to content

Commit

Permalink
try put services to namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Khagou committed Mar 6, 2024
1 parent d1d713e commit 435ddec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions client/prod-front.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ apiVersion: v1
kind: Service
metadata:
name: khagu-dev-front
namespace: "application"
spec:
type: LoadBalancer
selector:
Expand All @@ -71,6 +72,7 @@ apiVersion: v1
kind: Service
metadata:
name: khagu-dev-front-to-back
namespace: "application"
spec:
type: ClusterIP
selector:
Expand Down
1 change: 1 addition & 0 deletions server/prod-back.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ apiVersion: v1
kind: Service
metadata:
name: back-service
namespace: "application"
spec:
selector:
app: khagu-dev-back
Expand Down
6 changes: 3 additions & 3 deletions terraform/cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ resource "google_container_cluster" "primary" {
}
node_config {
disk_type = "pd-standard"
disk_size_gb = 100
disk_size_gb = 20
}
cluster_autoscaling {
enabled = true
Expand All @@ -24,7 +24,7 @@ resource "google_container_cluster" "primary" {

resource_limits {
resource_type = "memory"
minimum = 100
minimum = 1000
maximum = 10000
}
}
Expand All @@ -46,7 +46,7 @@ resource "google_container_node_pool" "primary_preemptible_nodes" {
"https://www.googleapis.com/auth/cloud-platform"
]
disk_type = "pd-standard"
disk_size_gb = 100
disk_size_gb = 20
}
autoscaling {
min_node_count = 1
Expand Down

0 comments on commit 435ddec

Please sign in to comment.