Skip to content

Commit

Permalink
Documented new syntax for "node_lables"
Browse files Browse the repository at this point in the history
Closes #2161
  • Loading branch information
kontsevoy authored and klizhentas committed Dec 9, 2018
1 parent 7e8a84a commit 1799196
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/3.0/ssh_rbac.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,17 @@ spec:
# this allows you to specify Kubernetes group membership in an identity manager:
kubernetes_groups: ["system:masters", "{{external.trait_name}}"]]
# node labels that a user can connect to. The wildcard ('*') means "any node"
# list of node labels a user will be allowed to connect to:
node_labels:
# a user can only connect to a node marked with 'test' label:
'environment': 'test'
# the wildcard ('*') means "any node"
'*': '*'
# [version 3.1+] labels can be specified as a list:
'environment': ['test', 'staging']
# [version 3.1+] regular expressions are also supported, for example the equivalent
# of the list example above can be expressed as:
'environment': '^test|staging$'
# list of allow-rules. see below for more information.
rules:
Expand Down

0 comments on commit 1799196

Please sign in to comment.