Home > Servers > Rack and Tower Servers > Intel > White Papers > The science behind the report: PowerEdge R750 using Kubernetes containers > Creating the application and driver Kubernetes clusters
1. On the deployment VM, make two copies of the YAML cluster configuration file (which has a randomly generated name, such as 3nu4utlz5u.yaml), and name them app.yaml and drv.yaml:
cp ~/.tanzu/tkg/clusterconfigs/3nu4utlz5u.yaml ~/.tanzu/tkg/clusterconfigs/app.yaml cp ~/.tanzu/tkg/clusterconfigs/3nu4utlz5u.yaml ~/.tanzu/tkg/clusterconfigs/drv.yaml
Modify the new cluster files to change the cluster names, change their endpoint IP addresses, change the VM sizes (CPUs, memory, and local storage) for the worker nodes, and change the number of worker nodes. For example,
sed -i -e 's/^CLUSTER_NAME:.*/CLUSTER_NAME: app/' \ -e 's/^VSPHERE_CONTROL_PLANE_ENDPOINT:.*/VSPHERE_CONTROL_PLANE_ENDPOINT: 10.220.55.61/' \ ~/.tanzu/tkg/clusterconfigs/app.yaml sed -i -e 's/^CLUSTER_NAME:.*/CLUSTER_NAME: drv/' \ -e 's/^VSPHERE_CONTROL_PLANE_ENDPOINT:.*/VSPHERE_CONTROL_PLANE_ENDPOINT: 10.220.55.62/' \ ~/.tanzu/tkg/clusterconfigs/drv.yaml
3. Create each Kubernetes cluster from its configuration file:
tanzu cluster create --file ~/.tanzu/tkg/clusterconfigs/app.yaml -v 6 tanzu cluster create --file ~/.tanzu/tkg/clusterconfigs/drv.yaml -v 6
4. Add the cluster-access credentials to the Kubernetes configuration, and set the Kubernetes context to that of the cluster:
tanzu cluster kubeconfig get app --admin tanzu cluster kubeconfig get drv --admin