kubectl copy secret namespace
kubectl get secret <secrt_name> --namespace=<namespace1_name> --export -o yaml |\
kubectl apply --namespace=<namespace2_name> -f -
kubectl copy secret namespace
kubectl get secret <secrt_name> --namespace=<namespace1_name> --export -o yaml |\
kubectl apply --namespace=<namespace2_name> -f -
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 -
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us