-
Notifications
You must be signed in to change notification settings - Fork 516
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
Permission denied error in cloudcost integration #2623
Comments
Encountered same issue. Dirty workaround is to run opencost exporter as root user.
Or configure sidecar container which will set correct permissions. |
We can add that to the Azure docs I'm wondering what the fix for this should be? @AndrisJrs were all 3 changes needed? We can add this to the Helm chart if it needs to be default for Azure |
Another way to solve this without root permissions is granting access to mounted volumes with podSecurityContexts:
runAsUser: 1001
runAsGroup: 1001
fsGroup: 1001
extraVolumes:
- name: configs
emptyDir: {}
opencost:
exporter:
extraVolumeMounts:
- mountPath: /var/configs
name: configs
readOnly: false Note that we need to explicitly mount a volume to |
#2748 is related, probably the same error but we'll track separately for now. |
Seeing the error ingestor: build failed for window [2024-03-08T00:00:00+0000, 2024-03-12T00:00:00+0000): CloudCost: Azure: DownloadBlobToFile: failed to create directory mkdir /var/configs/db: permission denied. In Cloudcost integration.
Opencost version: 1.109.0 (fa84614)
The text was updated successfully, but these errors were encountered: