Questions tagged [kubernetes-secrets]
415 questions
1
vote
1 answer
azure secrets store csi driver provider throws Error: secret * not found
Below is my app definition that uses azure csi store provider. Unfortunately, this definition throws Error: secret 'my-kv-secrets' not found why is that?
SecretProviderClass
apiVersion: secrets-store.csi.x-k8s.io/v1alpha1
kind:…

Lukasz Dynowski
- 11,169
- 9
- 81
- 124
1
vote
0 answers
How does SyncSecret in secret-store-csi-driver works?
How does SyncSecret in secret-store-csi-driver works?
If we make changes in kubernetes secrets, will it reflects in aws secret-managers?
I know about the vice-versa it is true.

MIHIR UPADHYAY
- 44
- 5
1
vote
1 answer
Unable to create auth in docker config.json inside Minikube: server gave HTTP reponse to HTTPS client
I am running a local Kubernetes cluster (Minikube) against an also local private registry (Nexus OSS) and I am having a difficult time configuring my Minikube cluster to work off of my private registry in my host machine.
Basically I can push/pull…

Viriato
- 2,981
- 7
- 40
- 54
1
vote
1 answer
How to read kubernetes secrets values from volume mount in spring boot
My code is below
apiVersion: v1
kind: Secret
metadata:
name: test-secret
namespace: default
type: Opaque
data:
secret.db_user: |
dGVzdA==
secret.db_password: |
dGVzdA==
And then i mount this as volume mount in the deployment section, Now…

RAJESHPODDER007
- 733
- 1
- 8
- 14
1
vote
0 answers
Bind certificate to a micro service in pod (mTLS)
I am trying to implement the mTLS in cluster across micro service for secured communication. I know that there are service meshes are available for this purpose. But we would like to stay away from service mesh and implement the mTLS in cluster.
So,…

Rama Pandula
- 41
- 1
1
vote
1 answer
KubernetesPodOperator is not able to access the Airflow Connections stored in Google Secrets Manager
I am using the Composer version 2.0.0 Airflow 2.1.4 and I have created a KubernetesPodOperator that is trying to access the Airflow connection stored in the Google Secrets Manager. But it isn't able to locate the credentials (check exceptions…

tank
- 465
- 8
- 22
1
vote
0 answers
Zero Secrets in Serviceaccounts
I was moving Kubernetes installation from old work infra to my homelab. In the process of movement, etcd snapshot was deployed on homelab, I've changed all certificates and etcd encryption key. Now apparently my cluster can't create secrets for…

yand_ua
- 11
- 2
1
vote
1 answer
NodeJs throwing undefined error while reading the secret value from kubernetes yaml file
I need to read a Kubernetes key and value from NodeJs. But am getting an undefined error.
Please find the below code.
deployment.yaml
containers:
- name: server
env:
-name: CLIENT_DEV
valueFrom:
secretKeyRef:
…

Neela
- 107
- 2
- 10
1
vote
1 answer
How to add API key confidentially inside config map?
I am new to K8s. I am trying to deploy a Datadog agent to my cluster to collect logs and this happens through a ConfigMap.
apiVersion: v1
kind: ConfigMap
metadata:
name: fluent-cm
data:
fluent-bit.conf: |
[SERVICE]
Parsers_File …

Subha_26
- 440
- 4
- 14
1
vote
1 answer
How to concatenate secret files mounted in a volume in kubernetes
I have several secrets that are mounted and need to be read as a properties file. It seems kubernetes can't mount them as a single file so I'm trying to concatenate the files after the pod starts. I tried running a cat command in a postStart handler…

EricWoody
- 11
- 1
1
vote
1 answer
K8s Python Access Secret from inside Kubernetes
My question is the same of this question: k8s/python: How do I read a secret using the Kubernetes Python client? but from inside Kubernetes. I know how to access secrets from the outside with kubernetes python client.
But how do I access a secret in…

purple_lolakos
- 456
- 5
- 15
1
vote
1 answer
Secret creation with SecretProviderClass not working as aspected
EDIT:
It was a config error, I was setting wrong kv name :/
As said in title I'm facing an issue with secret creation using SecretProviderClass.
I've created my aks and my kv (and filled it) on azure. then I'll proceed to follow those steps using a…

Michele Ietri
- 184
- 1
- 4
- 16
1
vote
1 answer
How to define list of secret items projected in volume via terraform
My intention is to create a k8s Job via terraform.
In process I need to create volumes and project list of secret item in it.
i am able to achieve that via following snippet of yaml config
volumeMounts:
- name: certs
mountPath: /app/certs
…

Ruchir Bharadwaj
- 1,132
- 4
- 15
- 31
1
vote
1 answer
Kubernetes pod spec requires imagePullSecrets that does NOT match referenced secret?
Trying to following the use-case examples given in the official Kubernetes documentation for using secrets as environment variables (referenced here ), I made both my secret and my deployment yaml (which includes a pod spec) as follows:
Secret…

Kim Gentes
- 1,496
- 1
- 18
- 38
1
vote
0 answers
Inject secret value into helm values.yaml
I have a kubernetes deployment which consists out of several charts. To configure it for different environments I have multiple "deployment.yaml" files which I apply like this:
helm upgrade -i mychart helm/mychart -f values/deploymentXY.yaml.
Within…

dafna
- 893
- 2
- 10
- 21