Skip to content

Instantly share code, notes, and snippets.

@initcron
Created May 31, 2024 02:41
Show Gist options
  • Save initcron/8483fb9b87fc1d40fd296ea4b232143b to your computer and use it in GitHub Desktop.
Save initcron/8483fb9b87fc1d40fd296ea4b232143b to your computer and use it in GitHub Desktop.
Recreating EKS Environment for Day 4

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment