Perform all steps from the client machine.
-
Label the nodes:
-
List nodes in your cluster:
kubectl get nodes -o wide
-
For each node in the cluster, run the following commands. All nodes should have the same labels.
kubectl label node <NODE_NAME> appcenter/consul-0=true kubectl label node <NODE_NAME> appcenter/consul-1=true kubectl label node <NODE_NAME> appcenter/consul-2=true kubectl label node <NODE_NAME> appcenter/minio-0=true kubectl label node <NODE_NAME> appcenter/minio-1=true kubectl label node <NODE_NAME> appcenter/minio-2=true kubectl label node <NODE_NAME> appcenter/minio-3=true kubectl label node <NODE_NAME> appcenter/elastic-data-0=true kubectl label node <NODE_NAME> appcenter/elastic-data-1=true kubectl label node <NODE_NAME> appcenter/elastic-data-2=true kubectl label node <NODE_NAME> appcenter/elastic-master-0=true kubectl label node <NODE_NAME> appcenter/elastic-master-1=true kubectl label node <NODE_NAME> appcenter/elastic-master-2=true kubectl label node <NODE_NAME> appcenter/postgres=true kubectl label node <NODE_NAME> appcenter/grafana=true kubectl label node <NODE_NAME> appcenter/prometheus-0=true kubectl label node <NODE_NAME> appcenter/prometheus-1=true
-
Verify labels have been applied to all nodes:
$ kubectl get nodes --show-labels
-
List nodes in your cluster:
-
From any node in the cluster, create the following folders for persistent volumes:
ssh root@<KUBE_NODE_IP> -i <SSH_KEY_USED_TO_INSTALL_KUBERNETES_CLUSTER> \ "mkdir -p /var/lib/docker/teradata/data && \ cd /var/lib/docker/teradata/data && \ mkdir -p minio/minio-0 minio/minio-1 minio/minio-2 minio/minio-3 \ consul/consul-0 consul/consul-1 consul/consul-2 \ elasticsearch/elastic-master-0 elasticsearch/elastic-master-1 \ elasticsearch/elastic-master-2 elasticsearch/elastic-data-0 \ elasticsearch/elastic-data-1 elasticsearch/elastic-data-2 \ postgres/postgres-0 grafana/grafana-0 \ prometheus/prometheus-0 prometheus/prometheus-1 \ alertmanager/alertmanager-0 alertmanager/alertmanager-1"
To get the node IP address required for folders, run $ kubectl get nodes -o wide, then replace <KUBE_NODE_IP> with the IP of any node. -
Make sure all the folders are properly created by doing the following:
-
Using the SSH key, run:
ssh root@< KUBE_NODE_IP> -i <SSH_KEY_USED_TO_INSTALL_KUBERNETES_CLUSTER>
- Go to /var/lib/docker/teradata/data.
-
Using the SSH key, run: