mirror of https://github.com/hashicorp/consul
36 lines
611 B
Plaintext
36 lines
611 B
Plaintext
|
Name: builtin/service
|
||
|
Input variables:
|
||
|
Name: String - Required - The name of the service.
|
||
|
Example usage:
|
||
|
consul acl token create -templated-policy builtin/service -var name:api
|
||
|
Schema:
|
||
|
|
||
|
{
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"name": { "type": "string", "$ref": "#/definitions/min-length-one" }
|
||
|
},
|
||
|
"required": ["name"],
|
||
|
"definitions": {
|
||
|
"min-length-one": {
|
||
|
"type": "string",
|
||
|
"minLength": 1
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Raw Template:
|
||
|
|
||
|
service "{{.Name}}" {
|
||
|
policy = "write"
|
||
|
}
|
||
|
service "{{.Name}}-sidecar-proxy" {
|
||
|
policy = "write"
|
||
|
}
|
||
|
service_prefix "" {
|
||
|
policy = "read"
|
||
|
}
|
||
|
node_prefix "" {
|
||
|
policy = "read"
|
||
|
}
|