{"id":40746,"date":"2023-10-02T20:04:19","date_gmt":"2023-10-02T20:04:19","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=40746"},"modified":"2023-10-02T20:04:21","modified_gmt":"2023-10-02T20:04:21","slug":"external-secrets-operator-difference-between-clusterexternalsecret-vs-externalsecret","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/external-secrets-operator-difference-between-clusterexternalsecret-vs-externalsecret\/","title":{"rendered":"External Secrets Operator: Difference between ClusterExternalSecret Vs ExternalSecret"},"content":{"rendered":"\n<p>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.<\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>Here is a table that summarizes the key differences between ClusterExternalSecrets and ExternalSecrets:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>Feature<\/th><th>ClusterExternalSecret<\/th><th>ExternalSecret<\/th><\/tr><tr><td>Scope<\/td><td>Cluster-wide<\/td><td>Namespaced<\/td><\/tr><tr><td>NamespaceSelector<\/td><td>Yes<\/td><td>No<\/td><\/tr><tr><td>Use cases<\/td><td>Pushing a single ExternalSecret to all namespaces in the cluster<\/td><td>Pushing a single ExternalSecret to a specific namespace<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Here are some examples of when you might use a ClusterExternalSecret:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To push a database password to all namespaces in the cluster.<\/li>\n\n\n\n<li>To push an API key to all namespaces in the cluster.<\/li>\n\n\n\n<li>To push a certificate to all namespaces in the cluster.<\/li>\n<\/ul>\n\n\n\n<p>Here are some examples of when you might use an ExternalSecret:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To push a database password to a specific namespace.<\/li>\n\n\n\n<li>To push an API key to a specific namespace.<\/li>\n\n\n\n<li>To push a certificate to a specific namespace.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>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&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-40746","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/40746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=40746"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/40746\/revisions"}],"predecessor-version":[{"id":40747,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/40746\/revisions\/40747"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=40746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=40746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=40746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}