我和领事一起管理码头群。我有一个由3个相互连接的节点组成的领事集群,用于故障转移。问题是,我只能将我的swarm worker和master连接到单个节点,如果该节点宕机,那么swarm将停止工作。那么,如何将swarm workers和masters连接到我的所有节点呢?如果从主服务器运行以下命令,将设置连接到单个consul服务器的swarm环境: #### REFERENCE
# {{master_i}} is the IP address of the master server
# {{consul_i}} is the IP address of the consul serve
我正在尝试为consul创建一个容器,但输出总是失败,有趣的是,我真的不认为这是一个错误
Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)
以下是我正在使用的命令:
docker container run --net host --name consul-server -e 'CONSUL_LOCAL_CONFIG={"skip_leave_on_interrupt
我有一个非常简单的对接-组合设置,它正在我的同事计算机(*)上工作,但是由于一些不明确的原因,它不能在我的电脑上工作。
这是我的船坞-Compose.yml
version: '3.3'
services:
... there are other services that are starting successfully ...
reporting:
image: microsoft/dotnet:2.0-runtime
hostname: reporting
container_name: reporting
我觉得这很简单,但我搞不懂。我在同一主机上的单个节点群中有两个服务: consul和traefik。 > docker service ls
ID NAME MODE REPLICAS IMAGE PORTS
3g1obv9l7a9q consul_consul replicated 1/1 progrium/consul:latest
ogdnlfe1v8q
我正尝试在我的3节点K8s集群上运行Istio演示application+consul。
我遵循这个指南:,“与领事或尤里卡一起在Docker上运行”一节
但Istio的领事演示失败了,如下所示:
root@kubemaster:~/istio-0.8.0# docker-compose -f samples/bookinfo/consul/bookinfo.yaml up -d
ERROR: Network consul_istiomesh declared as external, but could not be found. Please create the network ma
我有两个虚拟机( IP为192.168.56.101的VM1和IP为192.16.56.102的VM2,它们可以相互ping通),以下是我正在执行的步骤:
- Create consul container on VM1 with 'docker run -d -p 8500:8500 --name=consul progrium/consul -server -bootstrap'
- Create swarm manager on VM1 with 'docker run -d -p 3376:3376 swarm manage -H 0.0.0.0:3376 --
我有一本战术手册可以把领事部署在我们服务器上的码头集装箱里。我基本上是这样的:
- name: run consul
hosts: all
tasks:
- name: consul | run consul servers and agents
docker_container:
name: consul
network_mode: bridge
published_ports:
- "{{ docker_host_ip }}:8301:8301"
- "
我试图在AWS上设置一个可以生产的集群,该集群使用 映像在每台主机上安装Consul,但无法将辅助服务器和第三服务器连接到初始服务器-join。
我遵循了指令,但是当我的consul2和consul3节点试图对consul1私有IP进行-join时,会出现一个i/o timeout错误。
实例
我在AWS上创建了三个t2.micros,并在我的VPC中分配了以下私有IP:
172.31.4.194 (Intended to be `consul1`, leader)
172.31.4.195 (Intended to be `consul2`)
172.31.4.193 (Intended t
我正在尝试将consul agent作为docker容器运行。但是,当我在docker-compose.yml中执行如下所示的卷映射时,容器总是保持重新启动。
b1c4c6975b37 privatedockerhub/consul-agent:0.6.4 "/bin/consul agent -c" 3 seconds ago Restarting (1) Less than a second
docker-compose.yml如下所示
agent:
hostname: abcd.com
container_name: cons
我尝试通过执行以下操作来运行官方docker镜像
docker pull consul
docker run -d --name=dev-consul -p 8500:8500 consul
当我尝试使用curl访问领事服务器时,我得到了一个空的回复
vagrant@docker:~$ curl localhost:8500/v1/catalog/nodes --verbose
* Hostname was NOT found in DNS cache
* Trying ::1...
* Connected to localhost (::1) port 8500 (#0)
>