mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
Add an upgrade test workload for Consul service mesh with transparent proxy. Note this breaks from the "countdash" demo. The dashboard application only can verify the backend is up by making a websocket connection, which we can't do as a health check, and the health check it exposes for that purpose only passes once the websocket connection has been made. So replace the dashboard with a minimal nginx reverse proxy to the count-api instead. Ref: https://hashicorp.atlassian.net/browse/NET-12217
59 lines
1.5 KiB
HCL
59 lines
1.5 KiB
HCL
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
variable "nomad_addr" {
|
|
description = "The Nomad API HTTP address."
|
|
type = string
|
|
default = "http://localhost:4646"
|
|
}
|
|
|
|
variable "ca_file" {
|
|
description = "A local file path to a PEM-encoded certificate authority used to verify the remote agent's certificate"
|
|
type = string
|
|
}
|
|
|
|
variable "cert_file" {
|
|
description = "A local file path to a PEM-encoded certificate provided to the remote agent. If this is specified, key_file or key_pem is also required"
|
|
type = string
|
|
}
|
|
|
|
variable "key_file" {
|
|
description = "A local file path to a PEM-encoded private key. This is required if cert_file or cert_pem is specified."
|
|
type = string
|
|
}
|
|
|
|
variable "nomad_token" {
|
|
description = "The Secret ID of an ACL token to make requests with, for ACL-enabled clusters."
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "consul_addr" {
|
|
description = "The Consul API HTTP address."
|
|
type = string
|
|
default = "http://localhost:8500"
|
|
}
|
|
|
|
variable "consul_token" {
|
|
description = "The Secret ID of an ACL token to make requests to Consul with"
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "availability_zone" {
|
|
description = "The AZ where the cluster is being run"
|
|
type = string
|
|
}
|
|
|
|
variable "workloads" {
|
|
description = "A map of workloads to provision"
|
|
|
|
type = map(object({
|
|
job_spec = string
|
|
alloc_count = number
|
|
type = string
|
|
pre_script = optional(string)
|
|
post_script = optional(string)
|
|
}))
|
|
}
|