To install Consul, follow these steps:
- Switch to the scripts directory for this chapter:
$ cd ~/consul/scripts # Switch to scripts for this exercise
- Create a new Consul cluster.
We will run three consul servers in our Kubernetes environment, even though we only have one node. Define the input parameters for the Consul Helm chart to be able to run three servers using a single node:
# Script : 02-consul-values.yamlglobal: datacenter: dc1 image: "consul:1.6.1" imageK8S: "hashicorp/consul-k8s:0.9.1"server: enabled: true replicas: 3 bootstrapExpect: 0 affinity: '' storage: 2Gi disruptionBudget: enabled: true maxUnavailable: 0client: enabled: true grpc: truedns: enabled: trueui: enabled: true
The following portion of the ...