No auth on root route for health checks, fix suggestions request
This commit is contained in:
parent
0ac971e6b4
commit
f7c3bc2823
5 changed files with 25 additions and 6 deletions
|
@ -79,7 +79,18 @@ deploy:
|
|||
|
||||
.PHONY: teardown
|
||||
teardown:
|
||||
terraform destroy
|
||||
export TF_VAR_project_id=$(GCP_PROJECT_ID) \
|
||||
&& export TF_VAR_cluster_name=$(CLUSTER_NAME) \
|
||||
&& export TF_VAR_region=$(GCP_REGION) \
|
||||
&& export TF_VAR_key_file=$(GCP_SERVICE_ACCOUNT_KEY_FILE) \
|
||||
&& export TF_VAR_search_image=$(SEARCH_IMAGE_TAG) \
|
||||
&& export TF_VAR_backend_image=$(BACKEND_IMAGE_TAG) \
|
||||
&& export TF_VAR_app_image=$(APP_IMAGE_TAG) \
|
||||
&& export TF_VAR_search_port=$(SEARCH_PORT) \
|
||||
&& export TF_VAR_backend_port=$(BACKEND_PORT) \
|
||||
&& export TF_VAR_open_ai=$(OPENAI) \
|
||||
&& export TF_VAR_secret_key=$(SUPER_SECRET_KEY) \
|
||||
&& terraform destroy
|
||||
|
||||
|
||||
.PHONY: auth-kubectl
|
||||
|
|
|
@ -75,6 +75,9 @@ resource "kubernetes_service" "searxng_service" {
|
|||
metadata {
|
||||
name = "searxng-service"
|
||||
namespace = "default"
|
||||
annotations = {
|
||||
"networking.gke.io/load-balancer-type" = "Internal" # Remove to create an external loadbalancer
|
||||
}
|
||||
}
|
||||
|
||||
spec {
|
||||
|
@ -87,7 +90,7 @@ resource "kubernetes_service" "searxng_service" {
|
|||
target_port = var.search_port
|
||||
}
|
||||
|
||||
type = "ClusterIP"
|
||||
type = "LoadBalancer"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue