AWS Educate Classroom Tips and Tricks: How to run EKS ...

文章推薦指數: 80 %
投票人數:10人

I found some educators asking for how to do Cloud Native exercises with their students. To me, my course will always stick to AWS workshop ... AWSEducateClassroom,AmazonEKS IfoundsomeeducatorsaskingforhowtodoCloudNativeexerciseswiththeirstudents.Tome,mycoursewillalwayssticktoAWSworkshopasIdon'twanttowastemytimeto"reinventthewheel"andinfact,itisimpossibletokeepyourexerciseup-to-dateeasilyyourself.UsingAWSEducateClassroomisthebestwaytoteachAWSinschool.However,theAWSEducateClassroomAccounthasalotofIAMlimilationasprotection.Pleasecheckthecurrentlistofsupportedservicesbyclickinghere. AWSEducateClassroomcannotruntheEKSworkshopdirectly!ThemainproblemaretheAWSEducateClassroomcannotcreateNATgateway,EC2instancetypeinT3andaproblemofus-east-1witheksctl.Hereismysolutiontomakeitworks:WhenstudentscompletedthestepofLaunchEKS.Usethebelowscripttocreate"eksworkshop.yaml"inthe"CreateanEKScluster"step.cat<eksworkshop.yaml --- apiVersion:eksctl.io/v1alpha5 kind:ClusterConfig metadata: name:eksworkshop-eksctl region:${AWS_REGION} availabilityZones:["us-east-1a","us-east-1b"] vpc: nat: gateway:Disable managedNodeGroups: -name:nodegroup desiredCapacity:1 minSize:1 maxSize:3 instanceType:m5.large privateNetworking:false ssh: allow:true iam: withAddonPolicies: albIngress:true secretsEncryption: keyARN:${MASTER_ARN} EOF Mysolutionistofixtheproblemwith2AZ,disableNATgateway,movenodegrouptopublicsubnet,abdchangetom5.large.BothAWSEducateClassroomandEKSsupportM5instancetypebuttosavecost,Isettostartonly1EC2instance.PleasenoticethatcopyandpastethecodefromLinkedInmayhaveformattingissue.Thisisthedemo:WiththissetupstudentscanlearnEKSinAWSEducateClassroomforfreebutyoushouldexpectthatsometaskswillnotbeabletocompleteduetotheIAMlimitationi.e.INTROTORBACandUSINGIAMGROUPSTOMANAGEKUBERNETESCLUSTERACCESS.HereismyworkshopdemoplaylistinAWSEducateClassroomaccount.IwillcontinueworkingonitwhenIamfree.Ifthevideomarkswith"(Partial)",itmeansthatsectioncannot100%withAWSEducateClassroomAccount.IthinkstudentswillbeabletocompletemostoftheexercisesasmostofthetasksareinsidetheworldofKubernetesandthereisnolimiation.However,pleaseremembertoremindyoustudentstodeletetheclusterwhentheyfinishedtheirexercises.Ifyouwanttohelpstudentstocreateanddestroycluster,youshoulduseManagedAWSEducateClassroom. 20 Like Comment Share Tovieworaddacomment,signin Tovieworaddacomment,signin ShortnotestoupgradeprojenprojectfromAWSCDKv1tov2 Dec13,2021 GettingstartwithAmazonSageMakerStudioLabandHelloWorldwithGitHub Dec4,2021 AWSRe-invent2021:SomanyAI/MLsessionsitissohardtofigureoutwhichtoattend!HereisCyrus'stop5AL/MLNewbiesshouldattend! Nov3,2021



請為這篇文章評分?