Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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 -
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #copy #secret #namespace
ADD COMMENT
Topic
Name
6+3 =