You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/property-source-config/configmap-propertysource.adoc
-24Lines changed: 0 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -549,29 +549,6 @@ for individual ones; the latter having a higher priority.
549
549
NOTE: You should check the security configuration section. To access config maps from inside a pod you need to have the correct
550
550
Kubernetes service accounts, roles and role bindings.
551
551
552
-
Another option for using `ConfigMap` instances is to mount them into the Pod by running the Spring Cloud Kubernetes application
553
-
and having Spring Cloud Kubernetes read them from the file system.
554
-
555
-
NOTE: This feature is deprecated and will be removed in a future release (Use `spring.config.import` instead).
556
-
This behavior is controlled by the `spring.cloud.kubernetes.config.paths` property. You can use it in
557
-
addition to or instead of the mechanism described earlier.
558
-
`spring.cloud.kubernetes.config.paths` expects a List of full paths to each property file, because directories are not being recursively parsed. For example:
559
-
560
-
[source,yaml]
561
-
----
562
-
spring:
563
-
cloud:
564
-
kubernetes:
565
-
config:
566
-
paths:
567
-
- /tmp/application.properties
568
-
- /var/application.yaml
569
-
----
570
-
571
-
NOTE: If you use `spring.cloud.kubernetes.config.paths` or `spring.cloud.kubernetes.secrets.path` the automatic reload
572
-
functionality will not work. You will need to make a `POST` request to the `/actuator/refresh` endpoint or
573
-
restart/redeploy the application.
574
-
575
552
[#config-map-fail-fast]
576
553
In some cases, your application may be unable to load some of your `ConfigMaps` using the Kubernetes API.
577
554
If you want your application to fail the start-up process in such cases, you can set
@@ -598,7 +575,6 @@ NOTE: Since version `5.0.0-M3`, we have introduced the possibility to read sourc
| `spring.cloud.kubernetes.config.name` | `String` | `${spring.application.name}` | Sets the name of `ConfigMap` to look up
600
577
| `spring.cloud.kubernetes.config.namespace` | `String` | Client namespace | Sets the Kubernetes namespace where to lookup
601
-
| `spring.cloud.kubernetes.config.paths` | `List` | `null` | Sets the paths where `ConfigMap` instances are mounted
602
578
| `spring.cloud.kubernetes.config.enableApi` | `Boolean` | `true` | Enable or disable consuming `ConfigMap` instances through APIs
603
579
| `spring.cloud.kubernetes.config.fail-fast` | `Boolean` | `false` | Enable or disable failing the application start-up when an error occurred while loading a `ConfigMap`
@@ -165,7 +151,6 @@ This setting is supported since `3.0.6` and upwards.
165
151
| `spring.cloud.kubernetes.secrets.name` | `String` | `${spring.application.name}` | Sets the name of the secret to look up
166
152
| `spring.cloud.kubernetes.secrets.namespace` | `String` | Client namespace | Sets the Kubernetes namespace where to look up
167
153
| `spring.cloud.kubernetes.secrets.labels` | `Map` | `null` | Sets the labels used to lookup secrets
168
-
| `spring.cloud.kubernetes.secrets.paths` | `List` | `null` | Sets the paths where secrets are mounted (example 1)
169
154
| `spring.cloud.kubernetes.secrets.enableApi` | `Boolean` | `false` | Enables or disables consuming secrets through APIs (examples 2 and 3)
170
155
| `spring.cloud.kubernetes.secrets.fail-fast` | `Boolean` | `false` | Enable or disable failing the application start-up when an error occurred while loading a `Secret`
This will tell watcher to only monitor sources that have a label: `spring.cloud.kubernetes.config.informer.enabled=true`.
56
56
57
-
One more important configuration, especially for configmaps and secrets that are mounted as volumes (via `spring.cloud.kubernetes.config.paths`/`spring.cloud.kubernetes.secrets.paths` or using `spring.config.import`) is:
57
+
One more important configuration, especially for configmaps and secrets that are mounted as volumes (via `spring.config.import`) is:
0 commit comments