Questions tagged [kubernetes-secrets]

415 questions
0
votes
1 answer

Helm get value from secret

I was wondering if there is any workaround to set a value in a secret and let helm render it before install. The use case is this, I'm using the bitnami chart for rabbitmq and I want to add SSO with my azure active directory, there is the variable…
FranAguiar
  • 637
  • 3
  • 14
  • 31
0
votes
0 answers

Kubernetes secrets and storage of the files from which secret will be loaded

What is the preferred storage for the file from which the Kubernetes secret will be created? To give more context about the use case: I would need to create a secret in the GitHub Actions workflow. The secret will be created using the Helm…
bkalcho
  • 309
  • 2
  • 11
0
votes
0 answers

Substitution of string property from secretKeyRef not working

I am trying to create a CRD carrying the following components args: items: properties: name: type: string value: …
0
votes
1 answer

How to read the value from kubernetes secret in python application and set them as environment variable

I am trying to get values from kubernetes secret in my python application as environment variables, I see that secrets are created as separate files and mounted on a specific path(in my case I mount them on etc/secrets/azure-bs. There are five…
0
votes
1 answer

How to specify yaml file to use secret as intended?

I am reading Core Kubernetes by Vyas and Love. Section 8.3.1 has the following 2 yaml files. Let's call them secret.yaml: apiVersion: v1 kind: Secret metadata: name: mysecret type: Opaque data: val1: YXNkZgo= val2: YXNkZjIK stringData: …
CaTx
  • 1,421
  • 4
  • 21
  • 42
0
votes
0 answers

How to manage Kubernetes secrets?

Can anyone suggest me How I manage my Kubernetes secrets? till now I used to use kubectl or Helm to apply secrets from my local system but this is not the right way to do I guess. I also refer few docs about managing Kubernetes secrets, from that…
0
votes
2 answers

Setting environment variables in kubernetes manifest using "kubectl set env"

I am trying to update a helm-deployed deployment so that it uses a secret stored as a k8s secret resource. This must be set as the STORAGE_PASSWORD environment variable in my pod. In my case, the secret is in secrets/redis and the data item is…
0
votes
3 answers

How to pass environment variables to a service in kubernetes?

I have configured minikube and am trying to run kubenetes on my local ubuntu machine. When I build the MongoDB docker image on my local, I can pass the env variables this way and it works well with the backend API: mongo_db: image: mongo:latest …
DreamBold
  • 2,727
  • 1
  • 9
  • 24
0
votes
1 answer

How to use Kubernetes Secret to pull a private docker image from docker hub?

I'm trying to run my kuberntes app using minikube on ubuntu20.04 and applied a secret to pull a private docker image from docker hub, but it doesn't seem to work correctly. Failed to pull image "xxx/node-graphql:latest": rpc error: code = Unknown…
DreamBold
  • 2,727
  • 1
  • 9
  • 24
0
votes
1 answer

Same secret for different services in k8s

I have a situation when I want to use one Opaque secret in different service the only difference is that key should have different name: f.e. service1 should have env.variable named TOKEN and value SUperPassword111! service2 should have env.variable…
YuriyF
  • 15
  • 4
0
votes
1 answer

k8s how to update specific value in secret

I need to update a secret with specific value,(the secret contain additional data) my question is how I can update just the value and not all the secret data (I don't want to override the existing data). I mean if the secret have additional values I…
0
votes
2 answers

Wrapping multiline string ssh-key in yaml for secret in openshift

im having my application deployed in openshift, for file transfer we're using sftp and have configured sftp private key via secret but on making the api call via swagger , getting the response as invalid private key any help on how i can include…
0
votes
1 answer

Kubernetes InvalidImageName pulling a Docker image from private repository

I'm trying, for a simple test, to connect my local Kubernetes instance (running in Docker Desktop) to a private repository on AWS ECR in order to download and Install a simple Java Web Application but after the installation of the Helm chart I get…
0
votes
1 answer

Edit a microk8s secret using kubectl in airflow

I am trying to edit a secret that we have stored in airflow server using microk8s kubectl. At the moment all I can do is find the coded secret using: microk8s kubectl get secrets/MySecret -o jsonpath='{data}' I want to edit the secret called 'host'…
0
votes
1 answer

Trying to pass secret from Azure KeyVault via Azure pipeline as env var to an app deployed on AKS

I am trying to get a secret named "ApplicationInsightsInstrumentationKey" from an Azure Key Vault and make it available as environment variable to the well-known Microsoft Weather Forecast example ASP.Net Core application, which I deploy to AKS. So…
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416