Questions tagged [kubernetes-secrets]

415 questions
1
vote
1 answer

Reading Kube Secrets from Java Program

I'm working on a library to read secrets from a given directory that I've got easily up and running with Docker Swarm by using the /run/secrets directory as the defined place to read secrets from. I'd like to do the same for a Kubernetes deployment…
wyt
  • 83
  • 7
1
vote
1 answer

Digital Ocean Kubernetes secrets certificate connect with Managed Database

I am trying to connect my Kubernetes Cluster in Digital Ocean with a Managed Database. I need to add the CA CERTIFICATE that is a file with extension cer. Is this the right way to add this file/certificate to a secret? apiVersion: v1 kind:…
agusgambina
  • 6,229
  • 14
  • 54
  • 94
1
vote
1 answer

Kubernetes Cross secrets variables

I have a weird issue with envFrom:  - name: template-api envFrom:    - secretRef: name: common-secrets    - secretRef: name: template-api in common-secrets I have variables like this: MAILHOST=smtp.gmail.com MAILPORT=587 And…
1
vote
1 answer

pass default.yaml secret env's to deployment

I'm new to kubernetes. I would like to know how to pass default.yaml in secrets to env in deployment? i tried it separately but it saves the default empty and i want to override it Thank you.
angela
  • 11
  • 2
1
vote
2 answers

Why should I mount a secret or configmap in Kubernetes

In kubernetes POD I have an option to mount a secret or a configmap as a volume mounted to the POD. It would be difficult to access these files as environment variables. So why should I be doing it instead of using them as environment variables?
Aditya Bhuyan
  • 328
  • 6
  • 10
1
vote
1 answer

Two TLS certificate for two Nginx Ingress controller Azure K8s cluster

I have two ingress controller one with default class nginx in default namespace, while the second ingress controller has a nginx class: nginx-devices. Cert-manager is already installed using Helm. I managed to get TLS certificate from Lets Encrypt…
1
vote
1 answer

For how long should I keep the storage driver Secret in my cluster?

I'm using helm 3.4.2 for upgrade my charts to my AKS cluster and I saw that every time I deploy something new, it creates a new secret called sh.helm.v... This is the first time I'm using helm. I was reading the doc and found that at version 3.x…
1
vote
2 answers

kubernetes update secrets using imperative commands

I am creating kubernetes secrets using the below command kubectl create secret generic test-secret --save-config --dry-run=client --from-literal=a=data1 --from-literal=a=data2 -o yaml | kubectl apply -f - Now, I need to add new literals using…
magic
  • 254
  • 2
  • 10
  • 19
1
vote
0 answers

Bitnami Helm WordPress secretes issue

I am trying to use my own existing kubernetes secrets for the 'WORDPRESS_PASSWORD' variable. And it should not create SVC from wordpress helm. For this I used below code in the values.yaml file But changes are not reflecting. wordpress: …
afreen
  • 21
  • 2
1
vote
1 answer

Kubernetes imagePullSecrets not working; getting pull access denied

I am using kubectl 1.18.1 for both client and server versions. I have specified imagePullSecrets in my StatefulSet manifest and created a docker-registry secret which contains the following content: { "auths": { "registryserver.com": { …
1
vote
2 answers

How do I set secrets in Jenkins Step

I am looking for a solution to inject secrets only during a Jenkins step: application.properties: spring.datasource.username=mySecretValue spring.datasource.password=mySecretValue ... Current State: stage('Test') { agent { docker { …
1
vote
0 answers

Restoring k8s service account tokens

I'd like to restore a kubernetes service account token from a backup (which is actually just an export of the corresponding secret): apiVersion: v1 kind: Secret metadata: name: my-service-account-token-lqrvp annotations: …
Timbo
  • 75
  • 8
1
vote
1 answer

kubernetes service account secrets is not listed

I created a secret of type service-account using the below code. The secret got created but when I run the kubectl get secrets the service-account secret is not listed. Where am I going wrong apiVersion: v1 kind: Secret metadata: name:…
zilcuanu
  • 3,451
  • 8
  • 52
  • 105
1
vote
1 answer

k3s pods are not mounting secrets defined in helm deployment's imagePullSecrets

I am creating a deployment in circlci that deploys my containerized application to a k3s server I have set up. I have set up a secret using the commands found here. The secret is created using the command: kubectl create secret docker-registry…
Marcus Ruddick
  • 9,795
  • 7
  • 28
  • 43
1
vote
1 answer

Is it possible to mount secrets to pods ONLY during runtime?

We have an applications that requires secrets ONLY during the runtime or creation of the pod. Once the Pod is up and started the secrets are no longer needed. I've tried to load secrets from environment variables then unset them via a script…
Jay
  • 549
  • 1
  • 8
  • 18