-
create two vms, one for manager and one for worker. The manager node should have at least two cpus.
-
At manager, make sure you can use ssh to connect to worker node (either external ip or internal ip)
-
go to root and git clone https://github.com/fishercht1995/kubernetes-examples.git
-
in the /kubernetes-examples/ folder, change workers (either internal or external ip)
-
./install.sh for installing kubernetes in the cluster
-
kubectl get nodesto check whether all nodes are already -
if all nodes are ready,
./start.shto start running three examples -
you can check status of three pods by
kubectl get pods -
when all three pods are running or completed, print all logs by
./print_logs.sh
fishercht1995/kubernetes-examples
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|