Spring Boot app with Eureka DiscoveryClient fails to start

I'm trying to write a simple Spring Boot application that can (1) register with a Netflix Eureka server, and (2) query the Eureka server to retrieve details of other registered services. My client...

Execute curl -X with ansible playbook

I want to execute the next command using ansible playbook: curl -X POST [email protected] -H "Content-Type: application/json" http://marathon.service.consul:8080/v2/apps How can I run it? If...

Detect touch scroll up or down

I need code same this for touch devices . help me please $(window).on('DOMMouseScroll mousewheel', function (e) { if (ScrollEnable) { if (e.originalEvent.detail > 0 ||...

Recovering from Consul "No Cluster leader" state

I have: one mesos-master in which I configured a consul server; one mesos-slave in which I configure consul client, and; one bootstrap server for consul. When I hit start I am seeing the...

Docker swarm: How to manually set node names?

For some background on my environment: I have docker swarm running on 3 ubuntu 14.04 vagrant boxes. The swarm master is running on 1 machine (with consul) and the other 2 machines are running...

Consul deregister 'failing' services

I have consul running on Consul v0.5.2 version & services running in Mesos. Services keep moving from 1 server to another. Is there way to deregister services in consul that are in 'failing'...

The /health endpoint of my Spring Boot app is emitting all info about the Consul server running on the same machine. How to disable this?

I've the /health endpoint enabled, but I just don't want it to list all services monitored by Consul on the same machine. This is my application.properties: # Enable just the health...

How to restart containers in AWS ECS?

I have provided application configuration via consul's key-value store to the application containers running in ECS services. The application reads its configuration from consul only once on start...

Connect consul agent to consul

I'm trying to setup the consul server and connect an agent to it for 2 or 3 days already. I'm using docker-compose. But after performing a join operation, agent gets a message "Agent not live or...

Failed to sync remote state, coordinate update error: No cluster leader

I have a cluster of 3 consul servers and 2 consul clients. 'consul members' displays that all the nodes have joined. Am getting an error "Failed to sync remote state, coordinate update error: No...

Check if host is in Consul in maintenance mode or not

I am writing a check for our monitoring if a given host is in maintenance mode in Consul (0.8.5) or not. On the command line is is quite simple as I can run consul maint and get a appropriate...

Kubernetes pods hanging in Init state

I am facing a weird issue with my pods. I am launching around 20 pods in my env and every time some random 3-4 pods out of them hang with Init:0/1 status. On checking the status of pod, Init...

Where is the log files for hashicorp consul?

I try to setup hashicorp consul(as a windows service) to log data to file. The doc says to set the log_level in the config file but nothing about where the logfiles will end up on a Windows...

@RefreshScope stops @Scheduled task

I have a monitoring app wherein I am running a fixedRate task. This is pulling in a config parameter configured with Consul. I want to pull in updated configuration, so I added @RefreshScope. But...

How to define optional variables in Terraform with default values defined in Consul

I have a Terraform script with some variables populated from Consul. I want to use this script in two different scenarios: Scenario 1. Everything goes right using default values from...

Execution order inside Terraform modules

I had an issue with the execution order of modules in terraform scripts. I have raised an issue with the source repo. https://github.com/hashicorp/terraform/issues/18143 Can anyone please help me...

Helm: Cannot overwrite table with non table for tls

this is most likely really simple but I can't figure it out for 2 hours now. I have the following Consul Ingress that I want to parameterize through a parent chart: spec: rules: {{- range...

What is the difference between Istio VirtualService and Kubernetes Service?

As I understand, Istio VirtualService is kind of abstract thing, which trys to add an interface to the actual implementation like the service in Kubernetes or something similar in Consul. My...

How to remove certificate from Traefik acme storage when saved to consul KV

I have Traefik running with a Consul KV store. How do I remove a record from the acme certificate storage in Consul, or force a renewal for just one domain/frontend? Problem: Somehow one of the...

Hashicorp Vault reading creds - failed to find entry for connection with name: db_name

I dont know if I did something wrong or not. But here is my configuration. // payload.json { "plugin_name": "postgresql-database-plugin", "allowed_roles": "*", "connection_url":...

How to use Fluent wait until clickable - Selenium

Hey All I have an issue that I am facing. I want to create a method that will get element id, and wait until it will be clickable. (the issue is since the element is intercepted, I do not want to...

How to rewrite serviceId for Spring Cloud Gateway with service discovery

I'm migrating zuul gateway to SCG. My services are running in kubernetes & registered via consul. Typical service name is xxx-service. So with current gateway config I can call them by...

Vault backend storage, how many buckets need for at least one cluster?

i am studying an arquitecture for Vault, on the website i found recomendations for the storage backend using Consul, but i am thinking using buckets on Google Cloud Storage to store secrets. They...

Nomad and port mapping

Nomad has three different ways to map ports: Network stanza under group level Network stanza under config -> resources level port_map stanza under config level What is the difference and when I...

Not resovalbe hostnames of RabbitMQ cluster when deployed on Docker Swarm using the replica parameter

I use Docker Swarm to deploy 3 instances of RabbitMQ and Consul for the peer discovery. version: '3.7' services: rabbitmq-1: image: rabbitmq:3.8.9-alpine hostname: "rabbitmq-1" ...

Haproxy reload from consul-template

I have multiple microservices running on my AWS ECS Fargate cluster. Inside a task (pod), there will be multiple containers (1 container for core-business service and additional 3 sidecar...

Docker - chown: changing ownership of '/data/db': Operation not permitted

I am trying to run my application using Docker and here is my yml file content to run the mongo container. services: mongodb: image: mongo:3.4 # ports: # - "27017:27017" ...

Hashicorp Vault - Database Secrets Engine Not Visible in UI

I created a new user in Hashicorp Vault so as to prevent the usage of the root token. The following policy was applied: # Manage auth methods broadly across Vault path "auth/*" { capabilities =...

Spring Cloud Load Balance and Feign Client

I have been using spring-clound-openfeign with Consul as the service registry and Ribbon as Load Balancer. I am currently working with spring-boot 2.3.10.RELEASE. I really like...

Spring Dependency Mess - conflict with Spring Boot 2.5.4 and Spring Cloud 3.0.3

I am trying to update an application which already pulls in the kitchen sink (or perhaps a few, they're joined at the hip) and I am sorting through version conflicts. I want to update to Spring...