Answers for "copy secret from one namespace to another"

1

kubectl copy secret namespace

kubectl get secret <secrt_name> --namespace=<namespace1_name> --export -o yaml |\
    kubectl apply --namespace=<namespace2_name> -f -
Posted by: Guest on March-01-2020
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 secret from one namespace to another"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language