spring-cloud-config

How to use a custom ssh key location with Spring Cloud Config

自古美人都是妖i 提交于 2019-12-21 04:07:06
问题 I am trying to setup a Spring Cloud Config server that uses a custom location for the ssh private key. The reason i need to specify a custom location for the key is because the user running the application has no home directory ..so there is not way for me to use the default ~/.ssh directory for my key. I know that there is the option of creating a read-only account and provide the user/password in the configuration but the ssh way seams more clean. Is there a way I can setup this? 回答1: After

Spring Cloud Config Server Shared Properties Across Applications

陌路散爱 提交于 2019-12-18 19:15:15
问题 I currently have a number of deployable applications that work in a distributed fashion to solve a business problem. We are currently using a number of property configuration files to provide changing configuration per environment based off a system environment variable. All these deployable application share common configuration for database and messaging. This is currently achieved by picking up property files from the class path and having both deployed apps share a common jar for each

Spring Cloud Config Server using SSH key for Git and running in Docker

北慕城南 提交于 2019-12-18 02:53:08
问题 I found many questions and tutorials before finally putting this all together. Wanted to document it so somebody else can save many hours of frustration. I am trying to get a private git repository on BitBucket to work with Spring Boot Config Server using deploy keys and have it run in Docker. I am running into many issues. How to actually configure using the application.yml files. I cant seem to figure out where I should put the SSH info. All tutorials seem to be for https. How to provide

SpringCloud - ConfigServer - RabbitMQ - Client doesn't receive message from ConfigService

拟墨画扇 提交于 2019-12-13 17:22:24
问题 I'm trying to make a ConfigServer Remote and Client with Gitlab repository. The ConfigServer receives the notification of push through a Webhooks, but it doesn´t send the message to the client. I run a RabbitMQ with Docker, and I can see in the rabbit's console that the services are connected with it. So I don´t know what is the problem. The configServer pom file looks like: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>

Spring Cloud Config - Could not resolve placeholder

时光怂恿深爱的人放手 提交于 2019-12-13 06:54:32
问题 Background I am trying to add centralized configuration support to a medium sized spring based application. I recently made it Bootiful :D It can now run as a jar in an embedded tomcat though with the same old configuration files as before. So next I want to get rid of the filesystem property-files. I have the Config server setup and working, backed by a git repo containing the configuration. Problem During startup my application indicates that a property source is found on the config server.

Unable to download/import package org.springframework.cloud.config.server.EnableConfigServer

怎甘沉沦 提交于 2019-12-13 03:40:00
问题 I'm new to spring-cloud concepts and had followed each and every step of spring cloud document provided by spring.io https://spring.io/guides/gs/centralized-configuration/ weird thing is when I do clt+space on spring-cloud- in my STS, I don't see any option to add spring-cloud-starter-config dependency in pom.xml file, as a result I couldn't able to import the package org.springframework.cloud.config.server.EnableConfigServer in my class file. I'm not understanding what would be the reason

Can not connect between containers within one pod in kubernetes

半腔热情 提交于 2019-12-12 10:19:31
问题 Here's my bootstrap.yml of my client spring: cloud: config: enabled: true uri: http://localhost:8888 label: master spring.application: name: microservices-client spring.profiles: active: dev Here's my spring config server bootstrap.yml spring: application: name: microservices-client profiles: active: dev cloud: config: uri: http://localhost:8888 And here's my spring config application.yml server: port: 8888 spring: cloud: config: server: git: uri: ssh://git@riscm.company.com/sem/some_repo.git

spring-cloud-starter-config POST /env not working

与世无争的帅哥 提交于 2019-12-12 10:07:04
问题 I have a little spring boot web application (executable jar) which has some custom properties inside the application.properties file. My goal is to be able to dynamically alter these properties at runtime without having to run a build/deploy or restarting the java process. The spring-cloud-starter-config project seems to be well suited for this (even though I am not using a config server) but I ran into the following problem: In my pom.xml I include dependencies to spring-boot-starter

Why Integrating Spring Cloud application with the AWS Parameter Store return no property from param store?

只愿长相守 提交于 2019-12-12 09:01:36
问题 Intent : I am working on a POC which intends to use AWS Parameter store as a property store.This would store the confidential application properties in AWS SSM's Parameter store.I am using Java 8 with spring boot/cloud version 2. Resource : I followed this ref guide from spring docs and also a comprehensive article Integrating the AWS Parameter Store with Spring Cloud .Hence was trying to utilize spring-cloud-starter-aws-parameter-store-config.jar and hence added required dependency in the

Spring Cloud data Flow on CloudFoundry

六月ゝ 毕业季﹏ 提交于 2019-12-12 04:55:29
问题 I have pushed the 1.2.2 version of spring cloud data flow server into PCF (Pivotal Cloud Foundry). I registered an app using maven but creating a task from the App using Flo UI fails with following exception trace, they are a bit unintelligible but looks like there is a ConnectException when trying to connect to default config server at http://localhost:8888. I do not need a config server for now. How do I get rid of this and get on with life? - By the way I am trying to create an on-demand