Questions tagged [kubernetes-secrets]

415 questions
0
votes
1 answer

'Read-only file system' error when using kubernetes secret for ssh auth

I am trying to establish SSH authentication between Jenkins and GitHub. For the same, I am using the kubernetes secret to store the private and public key and I am mounting the secrets when the pod is created. Command I have used to create the…
Prasann
  • 1,263
  • 2
  • 11
  • 18
0
votes
0 answers

Azure Key Vault to Kubernetes method creates two env-injector

I am trying to use akv2k8s method to sync azure key vault secrets to kubernetes. This is the link: https://akv2k8s.io/why-akv2k8s/. When I am trying to install with helm, two envinjector are getting installed and the docs say that you should at most…
0
votes
3 answers

Unable to deploy grafana image using helm

I'm new to grafana and prometheus, started working on it from last few days. I'm having some issues. I build a new grafana image and I am using the official helm repo to install it. On using the official image its wotking but on using my image the…
0
votes
0 answers

Azure CSI secrets provider mounting error

I am using Azure CSI secrets provider. I am deploying it correctly I feel. I am running a job that runs software I made with golang that does the following in this order. Creates a new Azure user managed identity (az go sdk) Gives the new user…
0
votes
1 answer

Adding binary secret data to a Helm chart

I am trying to create a Helm chart for a service that has binary secrets. Currently, we import those secrets using kubectl: kubectl create secret generic my-secret --from-file=fileContainingBinaryData To convert this to a Helm chart, I am using a…
piccy
  • 336
  • 2
  • 12
0
votes
1 answer

kubernetes service account secrets are not getting listed even after successfull creation

I have ran the following bash script to create secret for a service account kubectl apply -f - <
0
votes
0 answers

Grabbing Kubernetes Secrets With .yml for Kubeless Bots

I have worked on grabbing Kubernetes secrets with a .yml file for weeks, but to no avail. My script is currently triggered by a KafkaTrigger, which cannot pull in secrets from Kubernetes. Grabbing the secrets, we are left with two possibilities: 1)…
jeisenman19
  • 45
  • 1
  • 8
0
votes
1 answer

Kubernetes Secrets not injected to Pod

I'm running a Java application and in order to start the application it needs some Java environment variables. Below is the way how the variables are passed to the pod. I created the value (Password) for -Dzookeeper.ssl.keyStore.password as a…
Container-Man
  • 434
  • 1
  • 6
  • 17
0
votes
1 answer

Can dockerconfigjson handle registry subdomains?

Imagine, I had a private image registry myregistry.corp with several (sub-) repositories e.g. project1.myregistry.corp and project2.myregistry.corp. If I want to have one common imagePullingSecret, do I need to specify each of them in its…
Jalibu
  • 21
  • 7
0
votes
1 answer

Approach for configmap and secret for a yaml file

I have a yaml file which needs to be loaded into my pods, this yaml file will have both sensitive and non-sensitive data, this yaml file need to be present in a path which i have included as env in containers. env: - name: …
windowws
  • 373
  • 1
  • 8
  • 20
0
votes
1 answer

Kubernetes Encryption Configuration

https://kubernetes.io/docs/tasks/administer-cluster/encrypt-data/ According to the above document in order to use encryption configuration, we need to edit the kube-apiserver.yaml file. But in GCP, Azure or AWS we cannot view this the api-server as…
0
votes
1 answer

how use secrets in .yaml file in ingress

I create my secret in my cluster using this command kubectl create secret tls server --key server.key --cert server.crt I am using ingress-nginx for my deployment file and I want to use above secrete in .yaml file. Anyone know how can I use…
0
votes
1 answer

Using kubernetes secret env var inside another env var

I have a secret being used as env var in another env var as follows: - name: "PWD" valueFrom: secretKeyRef: name: "credentials" key: "password" - name: HOST value: "xyz.mongodb.net" - name: MONGODB_URI value:…
0
votes
1 answer

couldn't find key MYSQL_KEY in Secret default/mysql-secret

I have the following file that creates a mysql-secret for mysql deployment pod. apiVersion: v1 kind: Secret metadata: name: mysql-secret type: Opaque data: mysql-password: MTExMTEx mysql-root-password: MTExMTEx mysql-user: YQ== The problem…
0
votes
2 answers

How to create a multy-key Kubernetes secret from an external secret?

I have an external secret storage - Azure Key Vault with a secret password. I need to create a Kubernetes secret with multiple fields: password - only comes from an Azure Key Vault, username hardcoded, url hardcoded, with hardcoded annotations and…
Michael Chudinov
  • 2,620
  • 28
  • 43