functions/helm/InitHelm.ps1
<#
.SYNOPSIS InitHelm .DESCRIPTION InitHelm .INPUTS InitHelm - The name of InitHelm .OUTPUTS None .EXAMPLE InitHelm .EXAMPLE InitHelm #> function InitHelm() { [CmdletBinding()] param ( ) Write-Verbose 'InitHelm: Starting' helm init --client-only # https://zero-to-jupyterhub.readthedocs.io/en/stable/setup-helm.html kubectl --namespace kube-system create serviceaccount tiller kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller helm init --service-account tiller --wait helm init --upgrade --service-account tiller --wait Write-Host "Sleeping for 5 seconds" Start-Sleep -Seconds 5 Write-Verbose 'InitHelm: Done' } Export-ModuleMember -Function "InitHelm" |