Skip to main content

Cloud Run: Health Check

cloud-run-health-check-only-startup.ts

const config = {
appName: "test-app",
customerName: "pan",
components: {
www: {
dir: "www",
build: {
type: "node",
},
deploy: {
type: "google-cloudrun",
projectId: "google-project-id",
region: "europe-west6",
service: {
healthCheck: {
livenessProbe: false,
startupProbe: {
type: "http1",
failureThreshold: 43,
initialDelaySeconds: 4,
path: "/something2",
periodSeconds: 5,
timeoutSeconds: 6,
},
},
},
},
},
},
} satisfies Config;