Hello,
I’ve installed consul onto Kubernetes local instance.
I’ve one master and 3 worker nodes.
root@pocnjv1mcom01:~/hashicorp/consul-1.1.0# kubectl get nodes -o wide
NAME STATUS ROLES AGE VERSION
pocnjv1mcom01 Ready control-plane,master 388d v1.22.5
pocnjv1mcom02 Ready 388d v1.22.5
pocnjv1mcom04 Ready 386d v1.22.5
pocnjv1mcom05 Ready 386d v1.22.5
In the consul helm values.yaml file I have:
client:
enabled: true,
syncCatalog:
enabled: true
toConsul: true,
toK8S: false.
pocnjv1mcom02, pocnjv1mcom04 and pocnjv1mcom05 are registered as node in consul, I also see services running on these nodes are registered in consul. But I don’t see the master node pocnjv1mcom01 registered in consul.
-
Do I have to manually start agent on the master node? Any idea why the master node was left out.
-
If I have to manually start, can you please provide a command to start? When I check consul processed on the other nodes, I see several systemd+ processes started. How can I manually start these services onto master nodes?
root@pocnjv1mcom04:~# ps -ef | grep -i consul
root 1797 1639 0 22:04 pts/0 00:00:00 grep --color=auto -i consul
systemd+ 22847 22824 0 Jun16 ? 00:00:00 /usr/bin/dumb-init /bin/sh /usr/local/bin/docker-entrypoint.sh consul agent -advertise= -config-dir=/consul/config -config-file=/consul/extra-config/extra-from-values.json
systemd+ 22898 22847 2 Jun16 ? 00:30:33 consul agent -advertise= -config-dir=/consul/config -config-file=/consul/extra-config/extra-from-values.json
systemd+ 23823 23789 0 Jun16 ? 00:00:00 /usr/bin/dumb-init /bin/sh /usr/local/bin/docker-entrypoint.sh consul agent -node=pocnjv1mcom04 -advertise= -bind=0.0.0.0 -client=0.0.0.0 -node-meta=host-ip: -node-meta=pod-name:consul-consul-client-wv6x6 -hcl=leave_on_terminate = true -hcl=ports { grpc = 8502, grpc_tls = -1 } -config-dir=/consul/config -config-dir=/consul/aclconfig -datacenter=dc1 -data-dir=/consul/data -retry-join=consul-consul-server-0.consul-consul-server.consul.svc:8301 -retry-join=consul-consul-server-1.consul-consul-server.consul.svc:8301 -retry-join=consul-consul-server-2.consul-consul-server.consul.svc:8301 -config-file=/consul/extra-config/extra-from-values.json -domain=consul
systemd+ 23858 23823 0 Jun16 ? 00:09:00 consul agent -node=pocnjv1mcom04 -advertise=10.233.67.108 -bind=0.0.0.0 -client=0.0.0.0 -node-meta=host-ip: -node-meta=pod-name:consul-consul-client-wv6x6 -hcl=leave_on_terminate = true -hcl=ports { grpc = 8502, grpc_tls = -1 } -config-dir=/consul/config -config-dir=/consul/aclconfig -datacenter=dc1 -data-dir=/consul/data -retry-join=consul-consul-server-0.consul-consul-server.consul.svc:8301 -retry-join=consul-consul-server-1.consul-consul-server.consul.svc:8301 -retry-join=consul-consul-server-2.consul-consul-server.consul.svc:8301 -config-file=/consul/extra-config/extra-from-values.json -domain=consul