node identified as system:node:<node-name>

This commit is contained in:
jwfang 2017-06-16 17:15:37 +08:00
parent 0ee229488e
commit 765a5ce1ab

View file

@ -103,7 +103,7 @@ fi
if [ -n "$HOSTS" ]; then
for host in $HOSTS; do
cn="${host%%.*}"
gen_key_and_cert "node-${host}" "/CN=kube-node-${cn}/O=system:nodes"
gen_key_and_cert "node-${host}" "/CN=system:node:${cn}/O=system:nodes"
done
fi