From 795309cfe2a614be7bc427422685b093ff1247f3 Mon Sep 17 00:00:00 2001 From: Hristo <53634432+izo0x90@users.noreply.github.com> Date: Wed, 22 May 2024 14:52:47 -0400 Subject: [PATCH] Private searxng instance --- deploy/gcp/Makefile | 10 ++++++++++ deploy/gcp/main.tf | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) 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" } }