Copy Kubernetes Secret to Another Namespace
Copy Kubernetes Secret to Another Namespace
Sometimes you just want to share a secret between namespaces, for example, a Docker Registry Credential.
Replace CurrentNameSpace and NewNameSpace with your respective namespaces. Also, change the SecretName, pretty simple
Kubernetes <1.18
Kubernetes >1.18
--export flag was removed in version 1.18
That's it