Copying Kubernetes Secrets Between Namespaces

Page content

A simple way of copying common secret data between namespaces

kubectl get secret private-registry --namespace=dev1 --export -o yaml |\
   kubectl apply --namespace=dev2 -f -
comments powered by Disqus