mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
connect: task hook for bootstrapping envoy sidecar
Fixes #6041 Unlike all other Consul operations, boostrapping requires Consul be available. This PR tries Consul 3 times with a backoff to account for the group services being asynchronously registered with Consul.
This commit is contained in:
@@ -60,6 +60,10 @@ var (
|
||||
|
||||
// TaskDirs is the set of directories created in each tasks directory.
|
||||
TaskDirs = map[string]os.FileMode{TmpDirName: os.ModeSticky | 0777}
|
||||
|
||||
// AllocGRPCSocket is the path relative to the task dir root for the
|
||||
// unix socket connected to Consul's gRPC endpoint.
|
||||
AllocGRPCSocket = filepath.Join(TmpDirName, "consul_grpc.sock")
|
||||
)
|
||||
|
||||
// AllocDir allows creating, destroying, and accessing an allocation's
|
||||
|
||||
Reference in New Issue
Block a user