docs: add health checks to docs & examples (#4223)

This commit is contained in:
Ben Potter
2022-09-27 12:58:39 -05:00
committed by GitHub
parent 27c8345ef2
commit 21e6bea792
10 changed files with 92 additions and 13 deletions
@@ -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
}
}
+6
View File
@@ -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 {
+6
View File
@@ -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" {
+6
View File
@@ -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" {
+6
View File
@@ -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" {