Questions tagged [kubernetes-secrets]

415 questions
1
vote
1 answer

External secret is not working on kubernetes

I have implemented external secrets to detch values from azure key vault in kubernetes cluster. I worked fine for two environments but in third environment it is not working. It created secret store and validates it but the external secret doesn't…
1
vote
1 answer

Helm configmap value from existing secret

I have an existing secret named setspace-db-secret and i want to fetch a value from one of its keys named db-root-password to the configmap, so i wrote a basic lookup function like below in _helpers.tpl {{- define "getpassword" }} {{- $obj :=…
windowws
  • 373
  • 1
  • 8
  • 20
1
vote
1 answer

Not able to get placeholder values in spring cloud config local application.properties file from kubernetes secrets and configMap

I have uploaded server.path value into kubernetes configmap and db.name and db.password in kubernetes secret. These values are available in service container when I check by env command and also like 'echo $server_path'. Now I am trying to bind…
1
vote
1 answer

Mounting secrets directly to /run/secrets in Kubernetes

I do have an existing application that used docker and docker compose so far. I want to operate this app in a Kubernetes cluster. Shouldn't be a big deal, right? But so far I failed because of the used secrets. The application expects a secret to be…
Thomas W.
  • 652
  • 1
  • 7
  • 18
1
vote
1 answer

Using Kubernetes Secret for PostgreSQL ENV causes application pod CRASH

I have problem with injecting Kubernetes Secret's value into Pod env. I have following pg-secrets.yml: apiVersion: v1 kind: Secret metadata: name: pg-secrets type: Opaque data: POSTGRES_USER: cG9zdGdyZXMK POSTGRES_PASSWORD: cGFzc3dvcmQK # …
1
vote
1 answer

Using TLS secret in ingress from hashicorp vault directly

How can I retrieve a tls (ssl certificate) secret from hashicorp vault into ingress? I have deployed a microservices in kubernetes (openstack) with ingress nginx and hashicorp vault. The tls keys are stored in hashicorp vault. I have created a…
ibram
  • 4,414
  • 2
  • 22
  • 34
1
vote
1 answer

- Error from server (BadRequest): error when creating "STDIN": Secret in version "v1" cannot be handled as a Secret: json:

I have the following yaml file creates a Kubernetes secret for mysql database. apiVersion: v1 kind: Secret metadata: name: mysql-secret key: MYSQL_KEY type: Opaque data: mysql-root-password: 11111 mysql-user: a mysql-password: 11111 But…
best_of_man
  • 643
  • 2
  • 15
1
vote
1 answer

How to project Kubernetes secret at the /etc/ level?

I am following Kubernetes documentations on secret. I have this secret.yaml file: apiVersion: v1 kind: Secret metadata: name: mysecret type: Opaque data: val1: YXNkZgo= stringData: val1: asdf and secret-pod.yaml: apiVersion: v1 kind:…
CaTx
  • 1,421
  • 4
  • 21
  • 42
1
vote
1 answer

How to create kubernetes secret with multiple values for one key?

This is how I'm trying to create a secret for my kubernetes mongodb, which gets deployed using the bitnami mongodb helm chart: apiVersion: v1 kind: Secret metadata: name: mongodb-secret namespace: mongodb labels: …
user3142695
  • 15,844
  • 47
  • 176
  • 332
1
vote
2 answers

Do EKS Secrets are encrypted by default?

I was going by this update for EKS https://aws.amazon.com/about-aws/whats-new/2020/03/amazon-eks-adds-envelope-encryption-for-secrets-with-aws-kms/ and this blog from AWS…
1
vote
1 answer

How to read .jks file into Kubernetes secret?

I have created a secret.yaml file as follows: apiVersion: v1 kind: Secret metadata: name: my-secret data: truststore.jks: {{ (.Files.Glob "../trust.jks").AsSecrets | b64enc }} I am calling this as part of template .yaml file in…
1
vote
1 answer

How to provide reference to the secret namespace in ClusterIssuer?

I have a ClusterIssuer that is expecting secretName, I see in the ClusterIssuer spec, I can specify the secretName: apiVersion: cert-manager.io/v1 kind: ClusterIssuer metadata: name: postgres-operator-ca-certificate-cluster-issuer spec: ca: …
Vishrant
  • 15,456
  • 11
  • 71
  • 120
1
vote
2 answers

Kubernetes Docker - Do I need to run docker compose when I update a secret?

Quick question, do i need to docker compose up on airflow when i amend a secret in kubectl? I've changed a password using the command line and kubectl in vscode and just want to know if it is necessary to run docker compose up now that it has been…
1
vote
1 answer

Referencing secrets in Kubernetes

What is the difference between env and envFrom fields in kubernetes when referencing secrets? Thank you!
Enis Mustafaj
  • 33
  • 1
  • 6
1
vote
2 answers

Setting secrets as environment variables in deployment file

I'm currently working on a Kubernetes deployment file and I need to set the environment variables that the container will have. Is there a way to set Kubernetes secrets as environment variables in the deployment file? Here is a dummy file to help…
Lumberjack
  • 419
  • 6
  • 12