Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Private AKS is not able to find the path of my local files to do a deployment through Helm #25074

Closed
hvaandres opened this issue Jan 7, 2023 · 3 comments
Assignees
Labels
AKS az aks/acs/openshift Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. CXP Attention This issue is handled by CXP team. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone

Comments

@hvaandres
Copy link

hvaandres commented Jan 7, 2023

Helm Version: 3
Kubernetes Version: 1.23.12

I'm currently trying to deploy my helm charts through my private aks cluster. However, I'm unable to do anything since it can't find the path of my local directory.

This is the command that I'm running:

az aks command invoke \
--resource-group aharo-aks-appgateway01 \
--name aharo-aks02 \
--command "helm install haro ./haro_files_helm_chart" 

This is the error message that I'm getting

command started at 2023-01-06 22:49:46+00:00, finished at 2023-01-06 22:49:46+00:00 with exitcode=1
Error: INSTALLATION FAILED: path "./haro_files_helm_chart" not found

Also, I will be getting the same issue if I use a file flag


az aks command invoke \
--resource-group aharo-aks-appgateway01 \
--name aharo-aks02 \
--command "helm install haro ./haro_files_helm_chart" 
--file deployment.yaml

OR

az aks command invoke \
  --resource-group aharo-aks-appgateway01  \
  --name  aharo-aks02 \
  --command "helm install aharo ./haro_files_helm_chart" \
  --file .

To prove that this type of command can work, I tried one from Microsoft Documentation. By running this command, I don't have any issues but I don't understand why my local files are not visible in the private AKS.

az aks command invoke \   
--resource-group aharo-aks-appgateway01 \
--name aharo-aks02 \  
--command "helm repo add bitnami https://charts.bitnami.com/bitnami && helm repo update && helm install my-release bitnami/nginx"

What else can I do to find the path of my directory? Do you know if I could be missing any configuration on my cluster?

@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. AKS az aks/acs/openshift CXP Attention This issue is handled by CXP team. Auto-Assign Auto assign by bot Installation labels Jan 7, 2023
@ghost ghost assigned jiasli Jan 7, 2023
@ghost ghost added this to the Backlog milestone Jan 7, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented Jan 8, 2023

route to CXP team

@PramodValavala-MSFT PramodValavala-MSFT self-assigned this Jan 10, 2023
@PramodValavala-MSFT PramodValavala-MSFT added question The issue doesn't require a change to the product in order to be resolved. Most issues start as that and removed Installation labels Jan 10, 2023
@PramodValavala-MSFT
Copy link
Contributor

@hvaandres The az aks command invoke command spawns a container on AKS and runs the command there, which is why it doesn't find any local files.

You need to use the --file parameter to send local files and mount them on the spawned container in AKS for it to find them but looks like you already tried this.

Could you confirm you are running the az command from the right folder and run a simple command like ls to make sure the files got copied over correctly?

@PramodValavala-MSFT PramodValavala-MSFT added the needs-author-feedback More information is needed from author to address the issue. label Jan 10, 2023
@hvaandres
Copy link
Author

We can close this ticket. The solution is the following:

az aks command invoke \
  --resource-group aharo-aks-appgateway01  \
  --name  aharo-aks02 \
  --command "helm install aharo" \
  --file .

I tried this morning and everything was the same.

@ghost ghost added needs-team-attention This issue needs attention from Azure service team or SDK team and removed needs-author-feedback More information is needed from author to address the issue. labels Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AKS az aks/acs/openshift Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. CXP Attention This issue is handled by CXP team. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

4 participants