mirror of https://github.com/hashicorp/consul
29 lines
448 B
Handlebars
29 lines
448 B
Handlebars
{{#if (env "CONSUL_NSPACES_ENABLED")}}
|
|
namespace "{{nspace}}" {
|
|
service "{{name}}" {
|
|
policy = "write"
|
|
}
|
|
service "{{name}}-sidecar-proxy" {
|
|
policy = "write"
|
|
}
|
|
service_prefix "" {
|
|
policy = "read"
|
|
}
|
|
node_prefix "" {
|
|
policy = "read"
|
|
}
|
|
}
|
|
{{else}}
|
|
service "{{name}}" {
|
|
policy = "write"
|
|
}
|
|
service "{{name}}-sidecar-proxy" {
|
|
policy = "write"
|
|
}
|
|
service_prefix "" {
|
|
policy = "read"
|
|
}
|
|
node_prefix "" {
|
|
policy = "read"
|
|
}
|
|
{{/if}} |