davidmccormick / alpine-k8s

a build of kubernetes running on alpine on vagrant
52 stars 11 forks source link

fix to create cluster-token on macOS #2

Closed nasuku closed 7 years ago

nasuku commented 7 years ago

On mac 'tr' utility expects UTF-8 encoding for input by default

/dev/urandom produces random binary data which is not UTF-8 and hence the script to create token fails.

Force the 'tr' utility to 'C' encoding so that the script works fine

davidmccormick commented 7 years ago

This looks good - thanks!