How to share secret across namespaces in Kubernetes?

0 votes

Hi Guys,

I have secrets in a namespace. I want to share secrets across namespaces in Kubernetes. How can I do that?

Oct 21 in Kubernetes by akhtar
• 32,960 points
269 views

1 answer to this question.

0 votes

Hi@akhtar,

You will have to create the secret for every namespace. But you can just copy secret from one namespace to another. You need to use the below command.

$ kubectl get secret secret_name --namespace=default -oyaml | kubectl apply --namespace=dev -f -
answered Oct 21 by MD
• 77,580 points

Related Questions In Kubernetes

0 votes
1 answer

How to use gravitational teleport in a container/kubernetes environment?

You can use teleport to augment kubernetes ...READ MORE

answered Jun 28, 2018 in Kubernetes by ajs3033
• 7,280 points
1,043 views
0 votes
1 answer

How do I sign-in to kubernetes dashboard?

Since version 1.7 Dashboard uses more secure ...READ MORE

answered Sep 7, 2018 in Kubernetes by DareDev
• 6,870 points
802 views
0 votes
2 answers
0 votes
1 answer
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
9,126 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 11, 2019 in Kubernetes by Kalgi
• 51,970 points

reshown Apr 12, 2019 by Kalgi 2,772 views
0 votes
1 answer

How to create deployment build in kubernetes?

Hi@akhtar, To create any resources in kubernetes you ...READ MORE

answered May 18 in Kubernetes by MD
• 77,580 points
80 views
0 votes
1 answer

How to change default Namespace in Kubernetes?

Hi@akhtar, Kubernetes will automatically create one namespace named ...READ MORE

answered Jul 5 in Kubernetes by MD
• 77,580 points
1,866 views