March 2020
Intermediate to advanced
626 pages
14h 45m
English
The following steps are a prerequisite to creating the persistent volume manually since we are not using an enterprise storage provisioner such as IBM Spectrum Scale, NetApp, Dell EMC, RedHat Ceph, or Portworx, which will create the persistent volume automatically when a persistent volume claim is made. To create a persistent volume, follow these steps:
$ sudo mkdir -p /var/lib/consul{0,1,2}
$ kubectl create ns consulnamespace/consul created
$ kubectl create clusterrolebinding consul-role-binding --clusterrole=cluster-admin --group=system:serviceaccounts:consulclusterrolebinding.rbac.authorization.k8s.io/consul-role-binding ...
Read now
Unlock full access