git clone repository if it does not exist already
git clone https://github.com/mkam423/consul-cluster.git
cd consul-cluster
git checkout consolidated_cluster
Use kubectl create -f consul.yaml
to create entire cluster.
kubectl get pv
and kubectl get pvc
The status should show up as bound for the claim and persistent volume. The binding for the claim should have the name of the volume that it's bound to within the description. This name should align with that which is in the yaml file.
Use kubectl get svc | grep consul
and kubectl get statefulsets | grep consul
to view the successful creations of the service and statefulset.
Use kubectl get pods | grep consul
to see creation of the pods.
3 pods named consul-0, consul-1, and consul-2 should create and end up in a running state.