Replies: 4 comments
-
I'm looking for a similar solution, I want the entire JSON file to be mounted in the pod, instead key values and pairs.
Is there way to mount the entire json file to pod ? |
Beta Was this translation helpful? Give feedback.
-
When i try your first woking method it says |
Beta Was this translation helpful? Give feedback.
-
@MaybeOron @manozd @ravinayag this is because you need an object alias inside the parameters/objects section for EACH object. e.g. --
then when you define your K8s secret use this:
|
Beta Was this translation helpful? Give feedback.
-
@MaybeOron, I read through your post again. You do need the key for this to work. The key can be any value you want to use (i.e. "id", "password", "apicreds"). You'll have to reference this key in the deployment when you define your environment variables. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
Hi, for kind: SecretProviderClass ,
seems like it creates k8s secret only if you specify a key with jmesPath.
My aws secrets has structured json which get parsed inside the apps.
I need to store the entire json instead of just a field.
[ did i configured it incorrectly?, I've in tried a few ways ]
so it can be set as an environment variable for a pod
this works:
inside deployment yaml:
but this won't work:
inside deployment:
or
To Reproduce
Steps to reproduce the behavior:
try to ceate "secretObjects:" with a full secret object, not a specified key of it.
Expected behavior
Being able to save an entire aws secret json into a k8s secret -> use it as environment variable
Environment:
EKS 1.22
Additional context
If i did it wrong, i will be glad to have an example,
if what i try to do was impossible, can you suggest a solution?
Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions