Questions tagged [kubernetes-secrets]

415 questions
4
votes
3 answers

Check which deployment (if any) is using a secret

I am replacing a Kubernetes secret and I want to make sure I am catching all places in the cluster which use it. Is there a way to tell without reading all deployment YAMLs using K8s or helm? We have multiple services deployed on the same cluster…
Tomer Amir
  • 1,515
  • 4
  • 27
  • 54
4
votes
1 answer

How to use environment/secret variable in Helm?

In my helm chart, I have a few files that need credentials to be inputted For example
Oplop98
  • 220
  • 1
  • 2
  • 8
4
votes
1 answer

Kubernetes - how do I extract a secret tar file?

I have mounted two tar files as secrets. I would like to mount them to my container and then unpack the contents. The commands that created the secrets are as follows: kubectl create secret generic orderer-genesis-block…
user10931326
  • 787
  • 2
  • 8
  • 15
4
votes
0 answers

Airflow KubernetesPodOperator : how to access secret passed to Pod?

I am trying to pass secret variables to my KubernetesPodOperator in airflow Here is what I have done : Create a secret.yaml file that looks like the following apiVersion: v1 kind: Secret metadata: name: my-secret type: Opaque data: SECRET_1:…
4
votes
1 answer

Setting ConfigMapRef and SecretRef for Deployment in Golang K8s client

I have got messed with this bug for hours and still dont know why! I created a simple Configmap and a Secret called config1 and secret1 respectively. (Yaml files for these are within this repo: https://github.com/hoangphanthai/test) After that I…
4
votes
1 answer

Create secret for all namespaces

When I create secret with Rancher and select it should be visible in all namespaces, it creates a secret without namespace tag and with namespaceId: null. How to create such a secret without Rancher? When I use kubectl, it always binds it to the…
9ilsdx 9rvj 0lo
  • 7,955
  • 10
  • 38
  • 77
4
votes
2 answers

inject environment variables in tomcat catalina.properties [Kubernetes]

I am using kubernetes for a web application deployement. containers: - name: myapp image: tomcat8-jre8:latest imagePullPolicy: Always env: - name: DATABASE_HOST valueFrom: secretKeyRef: name:…
Geek Junior
  • 137
  • 4
  • 11
4
votes
1 answer

What is the string after the name and type in a struct in Golang?

I am looking at https://godoc.org/k8s.io/api/core/v1#Secret type Secret struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata …
mango
  • 73
  • 1
  • 6
4
votes
2 answers

Kubernetes with secrets alternative

With a Kubernetes cluster in place, what would be the alternative way to send configurations/passwords into containers? I know about the secrets way but what I'm looking for is a centralised environment that has the password encrypted, not base64…
ibrik
  • 368
  • 2
  • 12
4
votes
1 answer

helm reference secret in deployment yaml

I'm looking for a possible way to reference the secrets in my deployment.yaml (1 liner) Currently I'm using the containers: - name: {{ template "myapp.name" . }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" …
XYZ_Allen
  • 253
  • 2
  • 3
  • 15
4
votes
5 answers

Create OpenShift TLS route from secret

I am looking to know (and how to do it), to create a secured (tls) route in OpenShift from a Secret that would contain my cert and key(or JAVA keystore) or 2 secret (1 with certificat, another with key) so that I do not need to write both of them in…
yield
  • 264
  • 4
  • 13
3
votes
0 answers

Deploying NextJS application to Kubernetes cluster

Next version 12.1.5 Kubernetes version 1.20 Until now I've copied a .env file to the next image and regulated them that way, but now a new requirement came to hold the env variables in Kubernetes secrets. After adding the needed change, that is…
Amar
  • 39
  • 3
3
votes
0 answers

"secret not found" reported by ExternalSecret

I have been struggling with this issue for the past 2 days and I'm stuck. I'm using External Secrets Operator to obtain secrets from Vault: https://external-secrets.io/ It seems ExternalSecret is not creating the secret. This is my yaml…
3
votes
2 answers

Unable to create secret in kubernetes: "Secret is invalid: data[.dockerconfigjson]: Invalid value: "": invalid character 'e'

Does anyone know what am I doing wrong with my kubernetes secret yaml and why its not able to successfully create one programatically? I am trying to programmatically create a secret in Kubernetes cluster with credentials to pull an image from a…
jorgeavelar98
  • 75
  • 1
  • 9
3
votes
0 answers

how to automatically roll deployments in helm when secret being used is created via some other helm chart

I want to automatically roll my deployment when there is a change in the secret being created via the same helm chart. For this I used sha256sum function and it worked well. I followed this Link for the same. kind: Deployment spec: template: …
Lucky Tyagi
  • 199
  • 1
  • 3
  • 12