Questions tagged [kubernetes-secrets]

415 questions
0
votes
1 answer

How can I access several files / secrets using volumes and volumeMounts?

I have several files stored as Kubernetes secrets. I can access one of them, but obviously I need them all. How do I access all of them? I tried this but they seem to be overwriting each other. // In deployment volumes: - name: my-secret-volume …
Martin01478
  • 387
  • 1
  • 5
  • 16
0
votes
1 answer

Is it possible to prevent k8s secret of being empty (zero bytes)?

Is it possible to configure k8s in a way that empty secrets are not possible? I had a problem in a service that somewhat the secret got overwritten with an empty one (zero bytes) and thereby my service malfunctioned. I see no advantage of having an…
Simon Frey
  • 2,539
  • 2
  • 11
  • 20
0
votes
1 answer

to load server.p12 file into volume mounts on a kubernetes deployment using secret

I have a use case to load a file ( server.p12 ) into kubernetes deployment using secret. My file structure poc []templates [] certificate-secret []server.p12 The secret i have been trying is apiVersion: v1 kind: Secret metadata: name:…
ysn
  • 145
  • 2
  • 13
0
votes
2 answers

Consum certificate and key from a secret in a route in openshift

How to create a secret with already available certificate and key in openshift, then add it to the route
kaleb
  • 41
  • 9
0
votes
1 answer

K8s Image Pull from Private Artifactory

I am using below manifest to run some k8s Job, However i am not able to submit job successfully due to below error. apiVersion: batch/v1 kind: Job metadata: name: spark-on-eks spec: template: spec: imagePullSecrets: - name:…
0
votes
2 answers

GKE Ingress is not working with cert-manager ssl secrets

I am trying to get letsencrypt work with GKE LB, I know there are GCP Managed Certs but it will not work with internal LB as the challenge will not get passed. Letsencrypt DNS certification using cert-manager is there and ready to be used. ❯ k get…
0
votes
1 answer

Dynamically refresh pods on secrets update on kubernetes while using helm chart

I am creating deployment,service manifest files using helm charts, also secrets by helm but separately not with deployments and service. secretes are being loaded as env variables on pod level. we are looking to refresh or restart PODs when we…
pranathi
  • 87
  • 11
0
votes
1 answer

Prevent creating a secret if it already exists

At the moment I have the following secret set up: apiVersion: v1 kind: Secret metadata: name: my-repository-key type: kubernetes.io/dockerconfigjson data: .dockerconfigjson: {{ template "imagePullSecret" . }} Unfortunately, I have 2 subcharts…
Bharel
  • 23,672
  • 5
  • 40
  • 80
0
votes
0 answers

Import data to secret from other kubernetes secret

I'm using a Kubernetes operator that generate original secret data. I need to use this secret in the other secret that consumed by deployment with some value mapping. I can't/won't modify Deployment to use generated secret directly. How it can be…
Vladimir Konkov
  • 161
  • 2
  • 9
0
votes
3 answers

kubed syncing secret to more than one namespace

I have kubed running in kubernetes for syncing secret to multiple namespace. With annotations: kubed.appscode.com/sync: "cert-manager-tls=dev" I was able to sync secret to dev namespace. Now I want to copy same secret to more than one…
roy
  • 6,344
  • 24
  • 92
  • 174
0
votes
1 answer

How to mount the kubernetes secret(DB credentials) in tomcat context.xml

I am trying to mount the DB credentials stored in kubernetes secret in tomcat context.xml I am able to print the value as follows echo "${DB_USERNAME}" XXXX I have a secret db-credentials as follows. apiVersion: v1 kind: Secret metadata: …
0
votes
2 answers

Can I retrieve k8s secret and use it outside of the cluster?

If I want to save credential information in K8s and then retrieve it to use out of k8s, can I do it? and how?
Ya He
  • 43
  • 1
  • 3
0
votes
1 answer

how to use secret on machine where kubernetes cluster is installed?

I have created secret with username and password. Now I want to provide this credentials to other file in my host machine. To connect cloud storage for my cluster. How should I do it? Everywhere I can see how to use secrets on POD but not on host…
Dark Furby
  • 97
  • 1
  • 8
0
votes
1 answer

Provider Configuration for vault in terraform

I have the following terraform configuration in my terraform code data "external" "region" { program = ["sh", "test.sh"] query = { aws_region = var.aws_region vault_url = var.vault_url vault_role = var.vault_role } } provider…
0
votes
1 answer

Is it possible to find out what user uploaded a kubernetes secret?

Is it possible to find out what user uploaded a particular Kubernetes secret? I can describe the secret to see what files exist in it, and I see the age with get secrets, but I don't know who put it there. We just want to know who to ask if it's…
David Parks
  • 30,789
  • 47
  • 185
  • 328