Replies: 1 comment
-
Labels are key:value pairs, so it's not possible to set a list of values on a node. The way to do this would be to modify your role: node_labels:
env:
- dev
group:
- infrastructure and then change the labels on your node: labels:
env: dev
group: infrastructure |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to grant two Roles access to a server based on its label: "dev" and "infrastructure".
I tried doing that with the labels
group:dev
andgroup:infrastructure
.I can add multiple labels with the same key to the roles like this:
But I can't do the same on the service itself, as the service always fails to start.
This is what I tried (I know the last one is invalid YAML):
Is there something I'm missing or is there a better approach to this?
Beta Was this translation helpful? Give feedback.
All reactions