Installing Consul

To install Consul, follow these steps:

  1. Switch to the scripts directory for this chapter:
$ cd ~/consul/scripts # Switch to scripts for this exercise
  1. 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 ...

Get Mastering Service Mesh now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.