Questions tagged [kubernetes-secrets]
415 questions
0
votes
2 answers
Kubernetes elasticsearch's secret .p12 incode base64
I use the elasticsearch secret function in the kubernetes environment.
There is a problem with the distribution of certificates used at this time.
I use a .p12 format certificate, which Elasticsearch uses by default. For use https, all PODs need to…

김태우
- 1,033
- 1
- 12
- 29
0
votes
0 answers
Ho can I specify the path to a secret in a cron job yaml?
I have a cron job in yaml and I am using some secrets in it:
example:
- name: username
valueFrom:
secretKeyRef:
name: {{ .Values.secrets.mysecret.username.name }}
key: {{ .Values.secrets.mysecret.username.key }}
this means…

Daniel
- 372
- 2
- 12
0
votes
1 answer
Getting GKE secrets back even after deleting the KMS keys used for encryption
I followed this document to create a GKE cluster (1.13.6-gke.6) with --database-encryption-key flag giving a KMS key for enabling Application-layer Secrets Encryption.
I created a secret using the following command:
kubectl create secret generic…

Amit Yadav
- 4,422
- 5
- 34
- 79
0
votes
0 answers
Ingress controller cannot read the secret
I get the following error in the nginx ingress pod log:
E0601 04:15:05.883895 11 annotations.go:188] error reading CertificateAuth annotation in Ingress val33-idx/dev-20190601t0309-index-data-ingress: error obtaining certificate: local SSL…

Valo
- 1,872
- 2
- 15
- 23
0
votes
2 answers
How to put k8 secret in docker cmd argument?
I'm trying to setup the Azure Face recognition container, but wondering how to use a k8 secret as a Docker command "argument."
This works, but I need to replace the ApiKey with my k8 secret.
{
"kind": "Deployment",
"spec": {
"template": {
…

Charlie
- 2,004
- 6
- 20
- 40
0
votes
1 answer
helm generated secret keeps getting recreated
I have a secret, which was generated via helm.
After i deleted the helm install (including --purge), the secret is instandly recreated.
I figure the type (kubernetes.io/tls) plays into that. The odd thing is, that this worked before.
The question…

scones
- 3,317
- 23
- 34
0
votes
2 answers
How to get the data.token from Kubernetes_secret terraform resource
I am trying to access the Kubernetes_secret data.token attribute in terraform, but I keep on getting the error
Resource 'data.kubernetes_secret.misp_whitelist_secret' does not have attribute 'data.token' for variable…

Sam-Tahir
- 191
- 3
- 15
0
votes
2 answers
Kubernetes: using CustomResourceDefinition + operator to create DB access secrets
I am planning to create a special 'deployer' deployment on k8s (one 'deployer' per cluster).
It's role would be to pull specifications from a central place, create k8s manifests and apply them.
The end result should be multiple deployments, each in…

Alechko
- 1,406
- 1
- 13
- 27
0
votes
1 answer
What are the different values of "imagePullSecrets" and what does "regsecret" do?
So I am trying to understand two parts:
What are the different types of values that can be put into "imagePullSecrets"? What does each one do?
What in particular does "regsecret" value for "imagePullSecrets" do?
Thank you!

cody.tv.weber
- 536
- 7
- 15
0
votes
1 answer
Terraform GCP Kubernetes: Unable to create Secrets using kubernetes_secret
I had created a private cluster with private endpoint enabled using Google provider. But ended up with below error while creating secrets using Kubernetes provider.
kubernetes_secret.create-secret: secrets is forbidden: User "system:anonymous"…

prabhu34
- 67
- 11
0
votes
1 answer
Terraform GCP: Unable to reach Private Kubernetes Master to create kubernetes_secret
When I try to reach a private Kubernetes master using a Master Authorized VM from a different VPC, where Terraform configs are executed, I am unable to reach it and Terraform errors out to create a Kubernetes secrets.
Error: dial tcp…

prabhu34
- 67
- 11
0
votes
1 answer
How to set secrets for a bunch of users that will have multiple fields?
apiVersion: v1
kind: Secret
metadata:
name: john-secret
data:
USERNAME: abc=
PASSWORD: def=
apiVersion: v1
kind: Secret
metadata:
name: jane-secret
data:
USERNAME: ghi=
PASSWORD: jkl=
Then I could include them like:
env:
- name:…

atkayla
- 8,143
- 17
- 72
- 132
-1
votes
2 answers
Issue when trying to create secrets in Openshift : must be set with the mounted {} file path inside '/opt/app-root/src/' ###
I am using OpenShift V4 and trying to create a secret called artifactory-credential which contains Username and Password and is of type 'Opaque'.
I am passing the Username and Password to a secret.yaml file as below
metadata:
name:…

ljs
- 495
- 1
- 8
- 23
-1
votes
1 answer
Kubernetes Secret File from PFX without kubectl
i try to generate a Kubernetes Secret file witch include a PFX Certificate.
I want to create a yaml file with mutliple PFX files in there.
But i don´t finde a solution to base64 encode the PFX files so that they are working in yaml.
can someone help…

Matze
- 1
-1
votes
1 answer
How to read values of secrets from K8 cluster using Python?
Iam trying to use Kubernetes secrets in my code in FastAPI webapp .
I only have secret name and name space of the cluster.
Is there any documentation on how to access the secret so I could set by db credentials accoring to values present in the…

Sanket Wagh
- 156
- 1
- 14