I’ve a kubenetes consul cluster running.
I’m trying to add a new virtual machine (which is not a k8s node) to the consul cluster.
But I’m not able to.
I followed the steps from the attached suggestion from chatgpt (see the attachment)
consul-client-chatgpt.txt (2.4 KB)
I also compared the consul client running on the k8s worker nodes, read more online content but not able to connect VM based consul client to to the K8s based consul server.
Any insights on how to make this happen?
consul agent -node=pocnjv1mcom09 -advertise= -bind=0.0.0.0 -client=0.0.0.0 -node-meta=host-ip: -data-dir=/opt/consul/data -datacenter=dc1 -domain=consul
root@pocnjv1mcom09:/opt/consul#
root@pocnjv1mcom09:/opt/consul# sh start-agent
==> Starting Consul agent…
Version: ‘1.15.3’
Build Date: ‘2023-06-01 20:40:32 +0000 UTC’
Node ID: ‘700c18c0-fa35-11a0-65bd-0d0344e15b08’
Node name: ‘pocnjv1mcom09’
Datacenter: ‘dc1’ (Segment: ‘’)
Server: false (Bootstrap: false)
Client Addr: [0.0.0.0] (HTTP: 8500, HTTPS: -1, gRPC: -1, gRPC-TLS: -1, DNS: 8600)
Cluster Addr: 135.16.25.44 (LAN: 8301, WAN: 8302)
Gossip Encryption: false
Auto-Encrypt-TLS: false
HTTPS TLS: Verify Incoming: false, Verify Outgoing: false, Min Version: TLSv1_2
gRPC TLS: Verify Incoming: false, Min Version: TLSv1_2
Internal RPC TLS: Verify Incoming: false, Verify Outgoing: false (Verify Hostname: false), Min Version: TLSv1_2
==> Log data will now stream in as it occurs:
2023-06-23T19:19:57.602Z [WARN] agent.client.memberlist.lan: memberlist: Binding to public address without encryption!
2023-06-23T19:19:57.603Z [INFO] agent.client.serf.lan: serf: EventMemberJoin: pocnjv1mcom09 135.16.25.44
2023-06-23T19:19:57.603Z [INFO] agent.router: Initializing LAN area manager
2023-06-23T19:19:57.603Z [INFO] agent: Started DNS server: address=0.0.0.0:8600 network=udp
2023-06-23T19:19:57.603Z [INFO] agent: Started DNS server: address=0.0.0.0:8600 network=tcp
2023-06-23T19:19:57.603Z [INFO] agent: Starting server: address=[::]:8500 network=tcp protocol=http
2023-06-23T19:19:57.604Z [INFO] agent: started state syncer
2023-06-23T19:19:57.604Z [INFO] agent: Consul agent running!
2023-06-23T19:19:57.604Z [WARN] agent.router.manager: No servers available
2023-06-23T19:19:57.604Z [ERROR] agent.anti_entropy: failed to sync remote state: error=“No known Consul servers”
2023-06-23T19:20:15.598Z [WARN] agent.router.manager: No servers available
2023-06-23T19:20:15.598Z [ERROR] agent.anti_entropy: failed to sync remote state: error=“No known Consul servers”
2023-06-23T19:20:19.679Z [ERROR] agent: Failed to check for updates: error=“Get "https://checkpoint-api.hashicorp.com/v1/check/consul?arch=amd64&os=linux&signature=ab9b61a7-852b-61c6-ed0b-125ec4469f92&version=1.15.3\”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)"
^C2023-06-23T19:20:28.583Z [INFO] agent: Caught: signal=interrupt
2023-06-23T19:20:28.583Z [INFO] agent: Gracefully shutting down agent…
2023-06-23T19:20:28.583Z [INFO] agent.client: client starting leave
2023-06-23T19:20:28.583Z [INFO] agent.client.serf.lan: serf: EventMemberLeave: pocnjv1mcom09 135.16.25.44
^C2023-06-23T19:20:31.087Z [INFO] agent: Caught second signal, Exiting: signal=interrupt
2023-06-23T19:20:31.087Z [INFO] agent: Requesting shutdown
2023-06-23T19:20:31.087Z [INFO] agent.client: shutting down client
2023-06-23T19:20:31.087Z [WARN] agent.client.serf.lan: serf: Shutdown without a Leave
2023-06-23T19:20:31.090Z [INFO] agent: consul client down
2023-06-23T19:20:31.090Z [INFO] agent: shutdown complete
2023-06-23T19:20:31.090Z [INFO] agent: Stopping server: protocol=DNS address=0.0.0.0:8600 network=tcp
2023-06-23T19:20:31.090Z [INFO] agent: Stopping server: protocol=DNS address=0.0.0.0:8600 network=udp
2023-06-23T19:20:31.090Z [INFO] agent: Stopping server: address=[::]:8500 network=tcp protocol=http
2023-06-23T19:20:31.090Z [INFO] agent: Waiting for endpoints to shut down
2023-06-23T19:20:31.090Z [INFO] agent: Endpoints down
2023-06-23T19:20:31.090Z [INFO] agent: Exit code: code=1