简体   繁体   中英

Kubernetes image_pull_secrets only uses secret from same namespace, is there other way so the secret doesn't need to be created to all namespaces?

I'm coming from the following thread and bump up the question in the comment

https://stackoverflow.com/a/40997561/2641128

The only difference is that I actually WANT the secret to be in the default namespace as I don't want to create it for all namespaces. Is there a way to reference to a secret the default namespace while the ingress is created inside a namespace?

Any solution for this issue in 2021?

Nothing changed and secret is still a namespace defendant object...

Secret restrictions

Secret resources reside in a namespace. Secrets can only be referenced by Pods in that same namespace.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM