by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 08:22
    dependabot-preview[bot] labeled #183
  • 08:22
    dependabot-preview[bot] opened #183
  • 08:22

    dependabot-preview[bot] on maven

    Bump checkstyle from 8.29 to 8.… (compare)

  • 08:21
    dependabot-preview[bot] labeled #182
  • 08:21
    dependabot-preview[bot] opened #182
  • 08:21

    dependabot-preview[bot] on maven

    Bump maven-failsafe-plugin from… (compare)

  • 08:21
    dependabot-preview[bot] labeled #181
  • 08:21
    dependabot-preview[bot] opened #181
  • 08:21

    dependabot-preview[bot] on maven

    Bump spring-javaformat-maven-pl… (compare)

  • Aug 04 21:29
    spencergibb labeled #3866
  • Aug 04 21:29
    spencergibb unlabeled #3866
  • Aug 04 21:29
    spencergibb commented #3866
  • Aug 04 21:27
    CircleCI failed: spring-cloud build (#1166) in https://github.com/spring-cloud/spring-cloud-kubernetes
    • k8s autoconfig to use proxy password. Fixes gh_572
      (44c36b37b0045d3d72cb79370030921de6253fdb by Haytham Mohamed)
  • Aug 04 21:10
    spencergibb synchronize #703
  • Aug 04 21:10

    spencergibb on bootstrap-epp

    Disables bootstrap by default Splits ContextRefresher into Le… (compare)

  • Aug 04 20:50
    spencergibb synchronize #703
  • Aug 04 20:50

    spencergibb on bootstrap-epp

    Disables failing tests Disables failing tests adds todo and 1 more (compare)

  • Aug 04 20:36
    spencergibb synchronize #703
  • Aug 04 20:36

    spencergibb on bootstrap-epp

    Mock name for property source (compare)

  • Aug 04 20:33
    spencergibb synchronize #703
Olga Maciaszek-Sharma
@OlgaMaciaszek
@dnguyen-gc we would need more details to respond to this
Renann Prado
@renannprado
What would be the correct way of keeping a spring cloud stream application running? I see some examples using calls like System.in.read() to keep the application running, but it seems very hacky. Is there a better to do it?
A different question: I couldn't find a way to specify the subscription name exactly as I want. It's always ending up to be <topic-name>.<subscription-name> but I need it to be just <subscription-name>. The property that is supposed to control it is this one: spring.cloud.stream.bindings.input.group: my-group. However the my-group value always gets prefixed by the topic name. I'm using google pubsub.
Spencer Gibb
@spencergibb
binnyg
@binnyg
Morning - is this the right room for discussing Spring Cloud Config project?
Olga Maciaszek-Sharma
@OlgaMaciaszek
@binnyg yes
binnyg
@binnyg
We are using Gitlab and would like the Spring Cloud Config to clone the properties using oauth2. Is it possible to clone using access tokens?
we tried the above but no luck
just try token:?
binnyg
@binnyg
It didn't work either. I will try to test with a simple JGit program and see if it works. thanks for the pointer
Cesar Manuel Cruzata De la Cruz
@cruzatadelacruzc
Hi everyone, i have a problem with communication between microservices using Eureka as discovery server.
How I can customize the register code of the eureka client with eureka server?
Because I have four microservice deployed to Heroku: configserver, eureka-server, gateway, uaa and registers itself with eureka-server.
The issue is that Gateway and Uaa never establish communication, when they both register with their address, they do it this way: IPADDRESS:PORT if this property eureka.instance.prefer-ip-address: true or APP_NAME.herokuapp.com:PORT if this property eureka.instance.prefer-ip-address: false
Server response with both way is service 503 Service Unavailable.
Now, if eureka clients (gateway, uaa) registered only Domain Name: APP_NAME.herokuapp.com, the microservice would reply satisfactorily
This is my configuration file of the eureka server
Cesar Manuel Cruzata De la Cruz
@cruzatadelacruzc
eureka:
  instance:
    hostname: ${DOMAIN_NAME}
    status-page-url-path: ${management.endpoints.web.base-path}/info
    health-check-url-path: ${management.endpoints.web.base-path}/health
    lease-renewal-interval-in-seconds: 5
    lease-expiration-duration-in-seconds: 10
    metadata-map:
      profile: ${spring.profiles.active}
      version: #project.version#
      git-version: ${git.commit.id.describe:}
      git-commit: ${git.commit.id.abbrev:}
      git-branch: ${git.branch:}
  client:
    fetch-registry: false
    register-with-eureka: false
    instance-info-replication-interval-seconds: 10
    registry-fetch-interval-seconds: 10
    service-url:
      defaultZone: http://admin:${spring.security.user.password}@${eureka.instance.hostname}:${server.port}/eureka/
This is my configuration file of the eureka client
eureka:
  client:
    service-url:
      defaultZone: ${application.register.discovery-url}/eureka/
    instance-info-replication-interval-seconds: 10
    registry-fetch-interval-seconds: 10
  instance:
    hostname: ${DOMAIN_NAME:localhost}
    appname: uaa
    prefer-ip-address: true
    instanceId: uaa:${spring.application.instance-id:${random.value}}
    status-page-url-path: ${management.endpoints.web.base-path}/info
    health-check-url-path: ${management.endpoints.web.base-path}/health
    lease-renewal-interval-in-seconds: 5
    lease-expiration-duration-in-seconds: 10
    metadata-map:
      profile: ${spring.profiles.active}
      version: #project.version#
      git-version: ${git.commit.id.describe:}
      git-commit: ${git.commit.id.abbrev:}
      git-branch: ${git.branch:}
DOMAIN_NAME = APP_NAME.herokuapp.com
eureka:
  client:
    service-url:
      defaultZone: ${application.register.discovery-url}/eureka/
    instance-info-replication-interval-seconds: 10
    registry-fetch-interval-seconds: 10
  instance:
    hostname: ${DOMAIN_NAME:localhost}
    appname: gateway
    prefer-ip-address: true
    instance-id: gateway:${spring.application.instance-id:${random.value}}
    status-page-url-path: ${management.endpoints.web.base-path}/info
    health-check-url-path: ${management.endpoints.web.base-path}/health
    lease-renewal-interval-in-seconds: 5
    lease-expiration-duration-in-seconds: 10
    metadata-map:
      profile: ${spring.profiles.active}
      version: #project.version#
      git-version: ${git.commit.id.describe:}
      git-commit: ${git.commit.id.abbrev:}
      git-branch: ${git.branch:}
POM all services
Eureka-clients:
Cesar Manuel Cruzata De la Cruz
@cruzatadelacruzc
<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.2.6.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <properties>
        <java.version>1.8</java.version>
        <spring-cloud.version>Hoxton.SR4</spring-cloud.version>
    </properties>
    <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
    </dependency>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>${spring-cloud.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
Only Eureka server
Spencer Gibb
@spencergibb
@cruzatadelacruzc posting huge snippets of code in gitter is very difficult to parse. Maybe put a sample project on github (or similar) instead
Cesar Manuel Cruzata De la Cruz
@cruzatadelacruzc
OK
wait a moment
I am use an heroku unverified account for testing
microservice: gateway
microservice: Uaa
Cesar Manuel Cruzata De la Cruz
@cruzatadelacruzc
microservice: eureka server
@spencergibb this repos are public on github
Cesar Manuel Cruzata De la Cruz
@cruzatadelacruzc
@spencergibb so, you can see my code?
Anders Clausen
@AndersClausen
image.png
@spencergibb I was trying to look a bit ahead with our RSocket implementation and A/B (blue/green) deployments and had a couple of questions if you don't mind. Will the RSocket Broker be able to work with either spring-cloud-kubernetes or the config server? I was wondering about how to dynamically change the router and knew of those two options. Also, do you suggest to do the A/B deployments based on the metadata tags that are sent along with each request? I'm trying to figure out the best way to switch traffic from RESPONDER A to RESPONDER B (see pic above). Cheers
Juan Antonio Breña Moral
@jabrena
Good morning, I am deploying a 2 microservices in a new K8S cluster and I communicate with OpenFeign the MicroserviceA to MicroserviceB. For some reason, I am receiving the following error: com.netflix.client.ClientException: Load balancer does not have available server for client: Y
2020-08-04 11:23:50.104  INFO 1 --- [p-nio-80-exec-1] c.n.l.DynamicServerListLoadBalancer      : DynamicServerListLoadBalancer for client YYY initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=YYY,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:com.netflix.loadbalancer.ConfigurationBasedServerList@4bf68b3e
The microservice A is connecting with K8S API but reading the logs, the microservice, doesn´t find the MicroserviceB. Both Microservices are running in the same namespace
In the definition of OpenFeign client, I am defining the name of the microservice: @FeignClient(name = "Y") without any namespace indication
at configuration level:
I am following the notes from the configuration:
  cloud:
    kubernetes:
      discovery:
        all-namespaces: true
Juan Antonio Breña Moral
@jabrena
and the application name matches with the name defined in spring application name :
spring:
  application:
    name: Y
Any clue about why MicroA doesn´t see any MicroB running in the same namespace?. Both micros are running and I am able to execute manually
Many thanks in advance
Note: I am not using K8S with Istio. I am using the native DNS features from K8S
lubumbax
@lubumbax
Have you seen any logs on startup something like ...cannot list resource "services" in API group “” ...?
Juan Antonio Breña Moral
@jabrena
Hi, I didn´t see it
lubumbax
@lubumbax
I was just thinking out loud if your issue could be RBAC bounded.