Azure-docs: Fix command

Created on 4 Jun 2019  Â·  3Comments  Â·  Source: MicrosoftDocs/azure-docs

In the "Configure Helm" chapter I think there is an error with this command:
' helm init --service-account tiller --node-selectors "beta.kubernetes.io/os"="linux" '

On windows 'helm init' use these arguments:
--node-selectors string
--service-account string

I received an error with the command on the guide (Error: This command does not accept arguments) and I fix it running:
' helm init --service-account tiller --node-selectors "beta.kubernetes.io/os=linux" '

HTH


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

container-servicsvc cxp doc-bug triaged

Most helpful comment

@Ettores88 I am able to reproduce the issue and your workaround helps.
In the official documentation of helm, node selector example is provided like this only.
Providing node selector like this "beta.kubernetes.io/os=linux" works well in both linux and windows.
But providing like this "beta.kubernetes.io/os"="linux" works only in linux.

@zr-msft Please add your comments

All 3 comments

@Ettores88 Thanks for the feedback! We are currently investigating and will update you shortly.

@Ettores88 I am able to reproduce the issue and your workaround helps.
In the official documentation of helm, node selector example is provided like this only.
Providing node selector like this "beta.kubernetes.io/os=linux" works well in both linux and windows.
But providing like this "beta.kubernetes.io/os"="linux" works only in linux.

@zr-msft Please add your comments

Thank you for your feedback @Ettores88

The issue that you saw is due to a platform difference and the doc commands were written to be run on bash. FYI you may also have to account for platform changes on commands that have line breaks.

please-close

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Frankwayne picture Frankwayne  Â·  53Comments

keithdv picture keithdv  Â·  41Comments

xkobal picture xkobal  Â·  42Comments

DanijelMalik picture DanijelMalik  Â·  82Comments

smcd253 picture smcd253  Â·  44Comments