-
Notifications
You must be signed in to change notification settings - Fork 144
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
extraConfig secret spec pod not starting #71
Comments
I found the issue: The secret path ( This one might also add to the confusion. Is this something to fix anyway or should the issue be closed? |
Conversely, the path must have the
That would go with:
Does that work for you? |
Thanks for the reply, Chris. And a happy new year! So, I tried your suggestion but run into errors when trying to apply the secret.
Not really surprising, since the keys within the keys are not base64 encoded. But encoding those as well probably would result in the rest of the mechanism failing. Or what's your take on this? Also, did you see my message in an old conversation of ours? #56 (comment) |
Update: The secret is valid if we use So, the mechanism works, but the S3 credentials (access key and secret access key) still get ignored by netbox and media upload fails. That's what I was trying to get at in the other message linked above.. |
Ah yes, sorry, either use For your storage config, the AWS credentials have to be under the apiVersion: v1
kind: Secret
metadata:
labels:
app.kubernetes.io/instance: netbox
name: netbox-extra
stringData:
secret.yaml: |
STORAGE_CONFIG:
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
AWS_STORAGE_BUCKET_NAME: my-netbox-bucket Alternatively, I expect you can pass the bucket name only in the storage config, and supply the |
Update 2: I succeeded in specifying the storage config through the The secret:
The reference in the values:
Is that config correct like this? with the |
Yes that looks perfectly fine to me, if you prefer to use this mechanism. |
Great! Thanks for the feedback. I was wondering if such cases should be more clearly documented and I'd be happy to do that and contribute to the chart that way. But I'm not sure if that's something you'd want in the docs/ |
I think an addition to the |
Alright, I'm going to do that, then! I've also just tested real quick, if it's possible to have part of the storage config in the Good stuff. I'll create a PR once I've updated the docs. |
Ah yes, I've just pushed a change that should allow deep-merging dictionaries (or mappings in YAML parlance) in |
Hey Chris How do I contribute to the repo?
Is that how it works here on GitHub? |
Yes, ideally base your commits on the |
It looks like #78 covers off the reason I was keeping this issue open, so I'll mark it pending for now. |
I can confirm this approach works and is much cleaner than the extraConfig:
|
This is included in chart version 4.1.0. |
Hey there
Today I wanted to try the new
extraConfig
field and ran into some issues with it.I tried loading some values from a secret like it is described in the
values.yaml
but the pods won't come up:the secret:
the part in the
values.yaml
:the error from the worker pod (more verbose):
I've been trying for hours but just couldn't find out whether there's an issue with my code or whether there's some bug somewhere.
Any ideas?
The text was updated successfully, but these errors were encountered: