Search code examples
kuberneteskubernetes-helm

Error: failed to download "stable/mssql-linux" (hint: running `helm repo update` may help)


Please see the command below:

helm install --name mymssql stable/mssql-linux --set acceptEula.value=Y --set edition.value=Developer

which I got from here: https://github.com/helm/charts/tree/master/stable/mssql-linux

After just one month it appears the --name is no longer needed so I now have (see here: Helm install unknown flag --name):

helm install mymssql stable/mssql-linux --set acceptEula.value=Y --set edition.value=Developer

The error I see now is:

Error: failed to download "stable/mssql-linux" (hint: running `helm repo update` may help)

What is the problem?

Update

Following on from the answers; the command above now works, however I cannot connect to the database using SQL Studio Manager from my local PC. The additional steps I have followed are:

1) kubectl expose deployment mymssql-mssql-linux --type=NodePort --name=mymssql-mssql-linux-service

2) kubectl get service - the below service is relevant here mymssql-mssql-linux-service NodePort 10.107.98.68 1433:32489/TCP 7s

3) Then try to connect to the database using SQL Studio Manager 2019: Server Name: localhost,32489 Authentication: SQL Server Authentication Login: sa Password: I have tried: b64enc quote and MyStrongPassword1234

I cannot connect using SQL Studio Manager.


Solution

  • Check if the stable repo is added or not

    helm repo list
    

    If not then add

    helm repo add stable https://kubernetes-charts.storage.googleapis.com
    helm repo update
    

    And then run below to install mssql-linux

    helm install mymssql stable/mssql-linux --set acceptEula.value=Y --set edition.value=Developer