Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (12.7k points)
Can someone tell me the way to share secrets across different namespaces if there exists one ??? thanks for your help

1 Answer

0 votes
by (29.5k points)

There is no such way to share secrets as they can be referenced as API objects via pod which will be done inside a namespace but having said that you can always copy your pods from one namespace to another and have that secret on both namespaces.

you can use the following command for copying your pods from one namespace to another 

kubectl get secret localdockerreg --namespace=default -oyaml | kubectl apply --namespace=dev -f -

If you want to know more about Kubernetes architecture you can refer the following tutorial 

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...