0 votes
in Kubernetes K8s by

You have 2 different contexts (A and B). Context A has a secret named foo. Context B does not. What would be a quick way to create the same exact secret in Context B?

1 Answer

0 votes
by
1. Switch to Context A

   2. kubetcl get secret foo -o yaml > foo.yaml

   3. Switch to Context B

   4. kubectl apply -f foo.yaml

.

Related questions

+1 vote
asked Sep 29, 2022 in Kubernetes K8s by SakshiSharma
+1 vote
asked Sep 27, 2022 in Kubernetes K8s by SakshiSharma
...