Answers for "copy all secret from one namespace to another"

0

copy secret from one namespace to another

kubectl get secret <secret-name> -n <source-namespace> -o yaml 
| sed s/"namespace: <source-namespace>"/"namespace: <destination-namespace>"/
| kubectl apply -n <destination-namespace> -f -
Posted by: Guest on April-14-2021

Code answers related to "copy all secret from one namespace to another"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language