diff --git a/deploy/gcp/Makefile b/deploy/gcp/Makefile index 35c9384..251eb22 100644 --- a/deploy/gcp/Makefile +++ b/deploy/gcp/Makefile @@ -80,3 +80,13 @@ deploy: .PHONY: teardown teardown: terraform destroy + + +.PHONY: auth-kubectl +auth-kubectl: + gcloud container clusters get-credentials $(CLUSTER_NAME) --region=$(GCP_REGION) + + +.PHONY: rollout-new-version-backend +rollout-new-version-backend: auth-kubectl + kubectl rollout restart deploy backend diff --git a/deploy/gcp/main.tf b/deploy/gcp/main.tf index ace5d90..10f1d94 100644 --- a/deploy/gcp/main.tf +++ b/deploy/gcp/main.tf @@ -87,7 +87,7 @@ resource "kubernetes_service" "searxng_service" { target_port = var.search_port } - type = "LoadBalancer" + type = "ClusterIP" } }