-
Notifications
You must be signed in to change notification settings - Fork 527
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
fix: correct Helm hook configuration for geoip-install-job and PVC #1527
fix: correct Helm hook configuration for geoip-install-job and PVC #1527
Conversation
@swade1987 @sdernbach-ionos Can you review? How i tested:
|
I personally think that the geodata configuration should be able to be provided as a secret with the following data:
The company I work for (and I would assume a lot more) won't be happy having the license key in plain text |
@patsevanton when I try to install I get:
When I checked the templates I see that it is defined multiple times, eg. the web deployment:
I guess you have to remove the first part that you added
I think there is no reason to have the if and condition and I would just keep the below one that uses the configurable volumeName. What do you think? If I remove one of the both in all files I can successfully install it, but I can not see a geo ip db in the bucket or in /usr/share/GeoIP (eg. in web container), but the update job succeeded |
@sdernbach-ionos I deleted duplicate. Could you try again?
|
@patsevanton I get the following output:
just to have both, but for sure already included in the one above:
So installation works with the new changes, but still can not see any files in the bucket nor in the folder of GeoIP:
Strange thing is, even I create a txt file in the folder it is not visible in the bucket (would have expected that I can see it online) |
@sdernbach-ionos
|
@patsevanton everything successfull:
|
Could you run and delete credentials:
For example:
Now i can`t install helm sentry chart because i get error "Error loading configuration: invalid account ID format" |
@patsevanton not sure if I got you right, but if I just execute it:
(have to CTRL+C to cancel it) If I delete the secret (sentry-geoip-env) before executing (same result):
|
Could you use https://github.com/clbx/kubectl-browse-pvc ?
|
@patsevanton same result as in the bucket and in the web pod:
|
|
|
What is also a bit strange to me, the command in the deployment should write the config file to /usr/share/GeoIP if I got it right? I can also not see this file there as well as no info for the update container that it should pick up the file from there (as default location is another one according to the documentation). |
I added code for create directory |
@patsevanton sadly same result (also browsing into pvc does not show the folder) but I can see your changes so I'm on the newest version. Only change within install process (even it succeeded) there was this error (but the geo ip job was not yet there):
|
where do these logs come from? |
@patsevanton it is printed while during installation:
|
I think it's a problem with either kubernetes or the network @Mokto is it possible to merge the pull request? no helm chart sentry installation errors. perhaps these are network errors. |
@patsevanton ok so it is related to the s3 thing ... just tested without s3 storage class and my normal host storage and it works 🥳 I can see database files and config also within the web pod /usr/share/GeoIP |
Tomorrow, I will create new and clean pull request based on this pull request |
Close by #1529 |
This PR addresses two issues related to the GeoIP volume and Helm hook configuration in the Sentry Helm chart:
Add GeoIP Volume to Sentry Deployments:
data-sentry-geoip
volume was not being added to several Sentry deployment manifests, leading to errors during installation. This PR adds thedata-sentry-geoip
volume to the following deployment manifests:deployment-relay.yaml
deployment-sentry-web.yaml
deployment-sentry-worker-events.yaml
deployment-sentry-worker-transactions.yaml
deployment-sentry-worker.yaml
Fix Helm Hook Configuration for GeoIP Installation Job:
Changes
deployment-relay.yaml:
data-sentry-geoip
volume to thevolumes
section.deployment-sentry-web.yaml:
data-sentry-geoip
volume to thevolumes
section.deployment-sentry-worker-events.yaml:
data-sentry-geoip
volume to thevolumes
section.deployment-sentry-worker-transactions.yaml:
data-sentry-geoip
volume to thevolumes
section.deployment-sentry-worker.yaml:
data-sentry-geoip
volume to thevolumes
section.values.yaml:
data-sentry-geoip
section to provide examples forstorageClass
,volumeName
,mountPath
, andpath
.deployment-geoip-job.yaml:
helm.sh/hook
annotation value frompre-install
topost-install
.helm.sh/hook-weight
annotation value from3
to9
to ensure the job runs after the main resources are installed.pvc-geoip.yaml:
helm.sh/hook
annotation with the valuepre-install
.helm.sh/hook-weight
annotation with the value-1
to ensure the PVC is created before the GeoIP installation job runs.Related Pull Requests:
Feel free to review and provide feedback. Thank you!