The main difference between a ClusterExternalSecret and an ExternalSecret is that a ClusterExternalSecret is a cluster-wide ExternalSecret that can be used to push an ExternalSecret to all namespaces in the cluster. An ExternalSecret is a namespaced resource that can only be used to push an ExternalSecret to a single namespace.
Another difference is that a ClusterExternalSecret can use a namespaceSelector to select specific namespaces to push the ExternalSecret to. An ExternalSecret does not have a namespaceSelector, so it will be pushed to all namespaces in the cluster by default.
Here is a table that summarizes the key differences between ClusterExternalSecrets and ExternalSecrets:
Feature | ClusterExternalSecret | ExternalSecret |
---|---|---|
Scope | Cluster-wide | Namespaced |
NamespaceSelector | Yes | No |
Use cases | Pushing a single ExternalSecret to all namespaces in the cluster | Pushing a single ExternalSecret to a specific namespace |
Here are some examples of when you might use a ClusterExternalSecret:
- To push a database password to all namespaces in the cluster.
- To push an API key to all namespaces in the cluster.
- To push a certificate to all namespaces in the cluster.
Here are some examples of when you might use an ExternalSecret:
- To push a database password to a specific namespace.
- To push an API key to a specific namespace.
- To push a certificate to a specific namespace.
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND