virtual-kubelet / azure-aci

Things related to Azure Container Instances for Virtual Kubelet
Apache License 2.0
92 stars 71 forks source link

Information on how to set $MASTER_URI is missing #553

Open eugen-nw opened 1 year ago

eugen-nw commented 1 year ago

Describe the Issue The https://github.com/virtual-kubelet/azure-aci/tree/master/charts/virtual-kubelet page uses the $MASTER_URI variable yet there are no instructions on how to set it.

Steps To Reproduce Please check the above mentioned page.

Expected behavior There are instructions on how to set the variable.

Virtual-kubelet version

Kubernetes version

Additional context

helayoty commented 1 year ago

Thanks, @eugen-nw, for raising the issue. We had this step added for the downgrade/upgrade documents. We will update the helm README as well. For now, you can use the following command or refer to upgrade README.

export MASTER_URI=$(kubectl cluster-info | awk '/Kubernetes control plane/{print $7}' | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g")
eugen-nw commented 1 year ago

Thank you. This is a Linux command. Could you please provide and document the PowerShell equivalent for the Windows users?

For PowerShell people who experience this issue, this is what I did:

  1. Ran the kubectl cluster-info command.
  2. Set $MASTER_URI to the URL on the Kubernetes control plane... line. The first line in the output.