From 41b54e8b812855a5ad22b181ccfeea38f6756cbf Mon Sep 17 00:00:00 2001 From: buildmaster Date: Thu, 18 Jul 2019 20:44:39 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- spring-cloud-kubernetes.html | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/spring-cloud-kubernetes.html b/spring-cloud-kubernetes.html index c091d22e..9bcc65df 100644 --- a/spring-cloud-kubernetes.html +++ b/spring-cloud-kubernetes.html @@ -902,6 +902,39 @@ spec: +
+

As the case with ConfigMap, more advanced configuration is also possible where you can use multiple Secret +instances. The spring.cloud.kubernetes.secrets.sources list makes this possible. +For example, you could define the following Secret instances:

+
+
+
+
+
+
spring:
+  application:
+    name: cloud-k8s-app
+  cloud:
+    kubernetes:
+      secrets:
+        name: default-name
+        namespace: default-namespace
+        sources:
+         # Spring Cloud Kubernetes looks up a Secret named s1 in namespace default-namespace
+         - name: s1
+         # Spring Cloud Kubernetes looks up a Secret named default-name in whatever namespace n2
+         - namespace: n2
+         # Spring Cloud Kubernetes looks up a Secret named s3 in namespace n3
+         - namespace: n3
+           name: s3
+
+
+
+
+
+

In the preceding example, if spring.cloud.kubernetes.secrets.namespace had not been set, +the Secret named s1 would be looked up in the namespace that the application runs.

+
Table 2. Properties: