[root@UR-20210425NAMA consul]# helm install -f values.yaml consul -n consul .
NAME: consul
LAST DEPLOYED: Wed Jun 29 15:05:57 2022
NAMESPACE: consul
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
CHART NAME: consul
CHART VERSION: 10.2.8
APP VERSION: 1.11.4
** Please be patient while the chart is being deployed **
Consul can be accessed within the cluster on port 8300 at consul-headless.consul.svc.cluster.local
In order to access to the Consul Web UI:
1. Get the Consul URL by running these commands:
kubectl port-forward --namespace consul svc/consul-ui :
echo "Consul URL: http://127.0.0.1:"
2. Access ASP.NET Core using the obtained URL.
Please take into account that you need to wait until a cluster leader is elected before using the Consul Web UI.
In order to check the status of the cluster you can run the following command:
kubectl exec -it consul-0 -- consul members
Furthermore, to know which Consul node is the cluster leader run this other command:
kubectl exec -it consul-0 -- consul operator raft list-peers
[root@UR-20210425NAMA consul]#