private aks cluster and scripts in pipeline
I have a private AKS cluster with a Linux VM that acts as a Bastion and a build agent and has access to the AKS cluster. I can access the aks cluster from the Bastion . My issue is when I try to run a bash script in the pipeline I get permission denied.
I am using this command:
helm upgrade --install hosted-node -f helm_config.yaml myapp/hosted-app --dry-run -n dev | grep "image:" | awk "{print $2}" | uniq | sed "s/\"//g" | grep "myapp" | sed "s/^.*image: //g" >
helmoutput.txt
The output looks similar to this when ran from the command line of the custom build agent:
myapp/jha-adapter:latest
myapp/hosted-app:latest
myapp/hosted-app1:latest
myapp/hosted-app2:latest
myapp/hosted-app3:latest
How do I give the script running as a task in my pipeline.yml the credentials to run a bash script i.e., get image.sh
Ray