Questions tagged [kubernetes-secrets]
415 questions
0
votes
1 answer
Why does the output of the secret from the kubernetes job not show the actual value?
Can anyone tell me why the out put of this job come out as not text?
Job.yaml
the output is �ǫ when its supposed to be user
the secret looks like this: Secret.yaml

Anthony Delgado
- 3
- 2
0
votes
0 answers
When I attache secrets in deployment it doesn't create `secretObjects` for pods to get parameter
I am trying to create pods and attached ssmparamaters to these pods. And I create secret.yaml file for creating SecretProviderClass and secretObjects to attache pods these secret provider class and secret objects. Here is the file:
apiVersion:…

Dev Jiro
- 1
0
votes
0 answers
Kubernetes connect Psycopg2 to GCP Postgres with SSL
I am stuck trying to connect to a google managed postgres instance from my Kubernetes pod.
My pod and secret yaml looks like
apiVersion: v1
kind: Secret
metadata:
name: db_secret
stringData:
CLIENT_KEY: -----BEGIN RSA PRIVATE…

Sam
- 86
- 2
- 10
0
votes
1 answer
Getting AKV variables into an application with Secret Store CSI Driver
Updating my CSI Secrets Store Driver as it is outlined here:
https://learn.microsoft.com/en-us/azure/aks/csi-secrets-store-driver
I had it previously working by usign secretObjects which I accomplished with:
apiVersion:…

cjones
- 8,384
- 17
- 81
- 175
0
votes
1 answer
helm chart getting secrets and configmap values using envFrom
I m trying to inject env vars in my helm chart deployment file. my values file looks like this.
values.yaml
envFrom:
- configMapRef:
name: my-config
- secretRef:
name: my-secret
I want to iterate through secrets and configmaps…

nada809
- 11
- 1
- 4
0
votes
1 answer
Kubernetes MirrorMaker2 Cannot Load Secret
I have a weird issue that no one can pinpoint. To make sure it was not an Azure Kubernetes issue, I also spun up minikube to test locally and I am getting the same error. The one thing in common Strimzi 0.28 for MirrorMaker2.
You can read the…

nitefrog
- 1,760
- 6
- 31
- 59
0
votes
1 answer
Kubernetes tls host different from ingress host
Currently working on some ingress in kubernetes cluster, in ingress there are 2 hosts. I am wondering why is tls-host different from rules:host?
spec:
rules:
- host: test1.something.se
http:
paths:
- pathType: Prefix
…

Python Newbie
- 37
- 4
0
votes
1 answer
Not able to access placeholder, which is added as secret and the secret is mounted as volume rather than environment variable
My password placeholder in Application.yaml in spring boot project:
password: {DB_PASSWORD}
My secret file:
apiVersion: v1
data:
DB_PASSWORD: QXBwX3NhXzA1X2pzZHVlbmRfMzIx
kind: Secret
type: Opaque
metadata:
name: test-secret
My Deployment…

Suddhasatta Dhar
- 43
- 1
- 4
0
votes
0 answers
Access Secrets like password from AWS Batch job using secret store other than Secret Manager( like Vault, Kubernetes secrets)
I am trying to figure out is there a way to access secrets like db password from AWS Batch job using Vault/ K8S secrets. The option to use Secret Manager provided by AWS is there, but as per my company policy we are using vault across the projects.…

Ankit Gautam
- 125
- 1
- 11
0
votes
1 answer
Minio does not recognize credentials when loaded from Kubernetes secrets
I am running a minio deployment in a Kubernetes Cluster.
I used to have the access- and secret key in clear text in the yaml files as follows:
apiVersion: apps/v1
kind: Deployment
metadata:
name: minio
spec:
...
containers:
- name:…

sekthor
- 464
- 5
- 15
0
votes
1 answer
In a Kubernetes yaml file, how do you run a python script first then run the specified container?
I'm running into an issue where it seems I can only run a python command in either the dockerfile or Kubernetes. Right now I have two python scripts, the first script setting up keys and tokens so the second script can run properly.
My dockerfile…

boblerbob
- 149
- 3
- 9
0
votes
1 answer
Kubernetes create secret from json
I have this json
{'kind': 'Secret', 'foo': 'secret_value'}
How can I use this json to create a secret in Kubernetes?
I want to run the equivalent of
kubectl create secret {'kind': 'Secret', 'foo': 'secret_value'}

jor2
- 460
- 2
- 5
- 21
0
votes
1 answer
How to use dynamic connection string to POD in kubernetes secret file
I'm new in k8s. So I'll be appreciate for any suggestion.
We have a multiple k8s namespaces in AKS.
I'm working under creating a cronjob that will run a script on multiple PostgreSQL pods in multiple namespaces. I created a secrets file to securely…

r_k
- 3
- 1
0
votes
0 answers
extraSecretMounts in Grafana
My goal is to make sure a client secret is not stored in plaintext in Grafana's ConfigMaps. So far, I figured out you can't just reference a value from a Secret in a ConfigMap. So another solution was to mount a secret to a file in the application…

Eli Halych
- 545
- 7
- 25
0
votes
1 answer
Update K8 storage class, persistent volume, and persistent volume claim when K8 secret is updated
I have a K8 cluster that has smb mounted drives connected to an AWS Storage Gateway / file share. We've recently undergone a migration of that SGW to another AWS account and while doing that the IP address and password for that SGW changed.
I…

Ryan Grush
- 2,076
- 3
- 37
- 64