DevOps virtualization
LabRole
I started with a blank ubuntu vm (one that had no other garbage on it):
$HOME/.aws/credentials
file with contents given on lab console.aws sts get-caller-identity
(verifies connectivity)aws eks --region us-east-1 update-kubeconfig --name testcluster
, this will put connection settings in a file to interact with EKS. (Assuming your cluster that you created above is named testcluster
, if not, change this command to reflect your cluster name)kubectl get nodes
, may not have any nodes until they come online from part one.kubectl create deployment --image=nginx nginx --dry-run=client -o yaml > nginx.yaml
kubectl create service loadbalancer nginx --tcp=80:80 --dry-run=client -o yaml > lb.yml
You should be able to see a public endpoint for kubectl get svc
. See if you can connect and see nginx. Might take a few minutes.