Start by creating the cluster from the path where cluster.yaml
is
eksctl create cluster -f cluster.yaml --without-nodegroup
once created, launch the node group as
eksctl create nodegroup -f cluster.yaml --include=ng-2-workers
deploy vote
service from instavote app
kubectl create namespace instavote
kubectl config set-context --current --namespace=instavote
kubectl apply -f vote-svc.yaml -f vote-deploy.yaml
set up visualizer
from the path where kube-ops-view
directoy is cloned earlier,
kubectl apply -f kube-ops-view/deploy/
Also edit the cluster security group from ec2 instances, to open range 30000-32767
of ports for NodePort access.
You should be able to access the vote
service on port 30000
and visualizer on port 32000
.