microsoft / mindaro

Bridge to Kubernetes - for Visual Studio and Visual Studio Code
MIT License
307 stars 106 forks source link

Bridge to kubernetes error: "Download failed with error: Response status code does not indicate success: 404 (Not Found)." #146

Open zjj2wry opened 3 years ago

zjj2wry commented 3 years ago

Describe the bug KubernetesLocalProcessConfig.yaml

version: 0.1
volumeMounts:
  - name: quota-monitor-*
    localPath: /Users/xxx/
  - name: aws-iam-token
    localPath: /Users/xxx/
env:
  - name: KUBERNETES_IN_CLUSTER_CONFIG_OVERRIDE
    value: $(volumeMounts:quota-monitor-*)/var/run/secrets/kubernetes.io/serviceaccount
  - name: AWS_WEB_IDENTITY_TOKEN_FILE
    value: $(volumeMounts:aws-iam-token)/var/run/secrets/kubernetes.io/serviceaccount

To Reproduce Steps to follow to reproduce this issue.

**Expected behavior** A clear and concise description of what you expected to happen. **Logs** Attach logs from the following directory: For Windows: %TEMP%/Bridge to Kubernetes For OSX/Linux: $TMPDIR/Bridge to Kubernetes ```log Downloading volume 'quota-monitor-token-tcgxw' from '/var/run/secrets/kubernetes.io/serviceaccount' ... Downloading from '/var/run/secrets/kubernetes.io/serviceaccount' ... Download failed with error: Response status code does not indicate success: 404 (Not Found). Retrying ... Download failed with error: Response status code does not indicate success: 404 (Not Found). Retrying ... Download failed with error: Response status code does not indicate success: 404 (Not Found). Retrying ... Download failed with error: Response status code does not indicate success: 404 (Not Found). Downloading volume 'aws-iam-token' from '/var/run/secrets/eks.amazonaws.com/serviceaccount' ... Downloading from '/var/run/secrets/eks.amazonaws.com/serviceaccount' ... Download failed with error: Response status code does not indicate success: 404 (Not Found). Retrying ... Download failed with error: Response status code does not indicate success: 404 (Not Found). Retrying ... Download failed with error: Response status code does not indicate success: 404 (Not Found). Retrying ... Download failed with error: Response status code does not indicate success: 404 (Not Found). ``` If you are a Visual Studio user, - Set the environment variable MS_VS_AZUREDEVSPACES_TOOLS_LOGGING_ENABLED=true - Open Visual Studio and run your scenario - Provide logs from: %temp%\Microsoft.VisualStudio.Kubernetes.Debugging **Environment Details** Client used (VS Code/Visual Studio): Client's version: Operating System: **Additional context** Add any other outputs from the clients or context you would like to share.
pragyamehta commented 3 years ago

@zjj2wry We pushed new bits for VSCode this morning that should fix this issue. Can you update to the latest extension and try the scenario again? Thanks!