Kubernetes VM
This page is a work in progress. |
This page assumes that a management VM was built locally.
-
Copy the kubernetes VM image from
node-images
into the management VM.scp node-images/output-kubernetes-vm-qemu/kubernetes-vm-x86_64.qcow2 root@192.168.0.2:~/
-
Log in to the Management VM From the hypervisor you can log in using the isolated network. The address of the first management-vm will be 192.168.0.2. The management-vm will resolve from
/etc/hosts
, its IP may also be found by runningvirsh net-dhcp-leases isolated
.ssh root@192.168.0.2
-
Move the kubernetes VM into the proper location
mkdir -p /vms/images mv ~/kubernetes-vm-x86_64.qcow2 /vms/images/
-
Change to the working directory for deploying the first Kubernetes Master VM
cd /srv/cray/terraform
-
Review the plan for terraform
terraform plan
-
Execute terraform
terraform apply