2020-06-23 16:58:43 +00:00
|
|
|
{{#if (env "CONSUL_NSPACES_ENABLED")}}
|
2020-11-30 18:42:59 +00:00
|
|
|
namespace "{{@nspace}}" {
|
|
|
|
service "{{@name}}" {
|
2020-06-23 16:58:43 +00:00
|
|
|
policy = "write"
|
|
|
|
}
|
2020-11-30 18:42:59 +00:00
|
|
|
service "{{@name}}-sidecar-proxy" {
|
2020-06-23 16:58:43 +00:00
|
|
|
policy = "write"
|
|
|
|
}
|
|
|
|
service_prefix "" {
|
|
|
|
policy = "read"
|
|
|
|
}
|
|
|
|
node_prefix "" {
|
|
|
|
policy = "read"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{{else}}
|
2020-11-30 18:42:59 +00:00
|
|
|
service "{{@name}}" {
|
2019-05-01 18:09:29 +00:00
|
|
|
policy = "write"
|
|
|
|
}
|
2020-11-30 18:42:59 +00:00
|
|
|
service "{{@name}}-sidecar-proxy" {
|
2019-05-01 18:09:29 +00:00
|
|
|
policy = "write"
|
|
|
|
}
|
|
|
|
service_prefix "" {
|
|
|
|
policy = "read"
|
|
|
|
}
|
|
|
|
node_prefix "" {
|
|
|
|
policy = "read"
|
2020-06-23 16:58:43 +00:00
|
|
|
}
|
|
|
|
{{/if}}
|