I have to use our self-hosted agent in our Azure pipeline because keyvault firewall in on. and i also have to use the windows one because the pipeline tries to query sql database. but it doesn't support kubectl command. is there any way i can install kubectl on our self-hosted windows agent?
Asked
Active
Viewed 96 times
0

P.T
- 47
- 1
- 6
1 Answers
0
Please check if you set the checkLatestHelmVersion to false.
- task: HelmInstaller@0
displayName: 'Install Helm 2.16.1'
inputs:
helmVersion: 2.16.1
checkLatestHelmVersion: false
installKubectl: true

Ging Yuan-MSFT
- 689
- 2
- 6
-
i added ` inputs: helmVersion: 2.16.1 checkLatestHelmVersion: false` but the result ir the same – P.T Oct 06 '22 at 07:15
-
I have edited the answer with "installKubectl: true", please check if it works. – Ging Yuan-MSFT Oct 06 '22 at 07:55
-
it's not working either – P.T Oct 07 '22 at 02:54
-
Have you tried to install the "kubectl" first in your self-hosted agent to check if it works? https://kubernetes.io/docs/tasks/tools/install-kubectl-windows/ – Ging Yuan-MSFT Oct 24 '22 at 05:34