mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
docs: add health checks to docs & examples (#4223)
This commit is contained in:
@@ -110,4 +110,10 @@ resource "coder_app" "code-server" {
|
||||
icon = "/icon/code.svg"
|
||||
url = "http://localhost:13337?folder=/home/coder"
|
||||
relative_path = true
|
||||
|
||||
healthcheck {
|
||||
url = "http://localhost:1337/healthz"
|
||||
interval = 3
|
||||
threshold = 10
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,6 +90,12 @@ resource "coder_app" "code-server" {
|
||||
name = "code-server"
|
||||
url = "http://localhost:13337/?folder=/home/coder"
|
||||
icon = "/icon/code.svg"
|
||||
|
||||
healthcheck {
|
||||
url = "http://localhost:1337/healthz"
|
||||
interval = 3
|
||||
threshold = 10
|
||||
}
|
||||
}
|
||||
|
||||
locals {
|
||||
|
||||
@@ -47,4 +47,10 @@ resource "coder_app" "fake-app" {
|
||||
icon = "/icon/code.svg"
|
||||
agent_id = "fake-compute"
|
||||
url = "http://localhost:8080"
|
||||
|
||||
healthcheck {
|
||||
url = "http://localhost:1337/healthz"
|
||||
interval = 3
|
||||
threshold = 10
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,6 +41,12 @@ resource "coder_app" "code-server" {
|
||||
agent_id = coder_agent.main.id
|
||||
url = "http://localhost:8080/?folder=/home/coder"
|
||||
icon = "/icon/code.svg"
|
||||
|
||||
healthcheck {
|
||||
url = "http://localhost:8080/healthz"
|
||||
interval = 3
|
||||
threshold = 10
|
||||
}
|
||||
}
|
||||
|
||||
resource "docker_volume" "home_volume" {
|
||||
|
||||
@@ -38,6 +38,13 @@ resource "coder_app" "code-server" {
|
||||
name = "code-server"
|
||||
url = "http://localhost:13337/?folder=/home/coder"
|
||||
icon = "/icon/code.svg"
|
||||
|
||||
healthcheck {
|
||||
url = "http://localhost:1337/healthz"
|
||||
interval = 3
|
||||
threshold = 10
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
variable "docker_image" {
|
||||
|
||||
@@ -65,6 +65,12 @@ resource "coder_app" "code-server" {
|
||||
icon = "/icon/code.svg"
|
||||
url = "http://localhost:13337?folder=/home/coder"
|
||||
relative_path = true
|
||||
|
||||
healthcheck {
|
||||
url = "http://localhost:1337/healthz"
|
||||
interval = 3
|
||||
threshold = 10
|
||||
}
|
||||
}
|
||||
|
||||
resource "google_compute_instance" "dev" {
|
||||
|
||||
@@ -55,6 +55,12 @@ resource "coder_app" "code-server" {
|
||||
icon = "/icon/code.svg"
|
||||
url = "http://localhost:13337?folder=/home/coder"
|
||||
relative_path = true
|
||||
|
||||
healthcheck {
|
||||
url = "http://localhost:1337/healthz"
|
||||
interval = 3
|
||||
threshold = 10
|
||||
}
|
||||
}
|
||||
|
||||
module "gce-container" {
|
||||
|
||||
@@ -76,6 +76,12 @@ resource "coder_app" "code-server" {
|
||||
icon = "/icon/code.svg"
|
||||
url = "http://localhost:13337?folder=/home/coder"
|
||||
relative_path = true
|
||||
|
||||
healthcheck {
|
||||
url = "http://localhost:1337/healthz"
|
||||
interval = 3
|
||||
threshold = 10
|
||||
}
|
||||
}
|
||||
|
||||
resource "kubernetes_persistent_volume_claim" "home" {
|
||||
|
||||
Reference in New Issue
Block a user