I have yet to discover the magic command line formula for creating a secret in all namespaces? Is this possible without doing the call multiple times? When creating the secret in the UI, the all namespaces is a great option, just looking for command line equivalent.
Id prefer the call not happen multiple times, as it would mean edits of the password via the UI would need to need to be done in multiple places ( 1 per namespace ).
1 Like
Are you trying to do it via kubectl
or rancher
cmd line?
im using ./rancher kubectl create secret…
kubectl does not have support for creating secrets across namespaces. They are scoped to a single namespace. Rancher (via the API and UI) supports creating secrets at the project scope. This will replicate the secret to all namespaces in the project (present and future). But, that functionality is not in the rancher cli yet.
Thanks… Its what I expected. Will rely on the api for now.
Is there a timeline when this could be added