根據文檔 - https://github.com/spring-cloud-incubator/spring-cloud-kubernetes/#configmap-propertysource,可以在應用程序引導期間通過將spring.cloud.kubernetes.config.name
添加到bootstrap.yaml/properties
來使ConfigMaps可用。正在使用Kubernetes Spring Cloud正在使用多個配置地圖
是否有可能以這種方式使用多個ConfigMaps?
我相信有可能通過使用env-from
- https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/在吊艙規格中做到這一點。但是用我們現有的設置來做這件事會很棒。