Home

Multiple Node Pools on Azure Kubernetes Service

%3CLINGO-SUB%20id%3D%22lingo-sub-1285887%22%20slang%3D%22en-US%22%3EMultiple%20Node%20Pools%20on%20Azure%20Kubernetes%20Service%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1285887%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOne%20of%20the%20most%20impressive%20parts%20of%20moving%20applications%20into%20the%20cloud%20is%20the%20ability%20to%20apply%20different%20types%20of%20computing%20power%20to%20your%20application%20based%20on%20use-case.%20By%20taking%20advantage%20of%20all%20the%20different%20compute%20types%20within%20Azure%2C%20users%20access%20to%20various%20CPUs%20and%20GPUs%20that%20can%20be%20implemented.%20No%20upfront%20costs%20or%20concerns%20about%20racking%20the%20gear.%20No%20fighting%20for%20better%20support%20with%20your%20vendor%20or%20having%20to%20buy%20the%20latest%20and%20greatest%20to%20keep%20up.%20Azure%20provides%20you%20with%20a%20number%20of%20options%20to%20help%20implement%20these%20various%20compute%20options.%3C%2FP%3E%0A%3CP%3EDifferent%20use%20cases%20will%20often%20require%20you%20to%20make%20decisions%20about%20what%20compute%20options%20you've%20selected.%20How%20will%20they%20improve%20portions%20of%20your%20application%20for%20the%20business%3F%20In%20this%20post%20we'll%20look%20at%20how%20you%20can%20use%20multiple%20types%20of%20compute%20options%20within%20a%20Kubernetes%20cluster%20in%20order%20to%20use%20different%20resources%20for%20different%20parts%20of%20their%20application.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1117723770%22%20id%3D%22toc-hId-1117723803%22%3E%3CA%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Fmultiple-node-pools-on-azure-kubernetes-service-2cp4%23getting-started%22%20name%3D%22getting-started%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3C%2FA%3E%3CSTRONG%3EGetting%20Started%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%3EThis%20is%20a%20post%20on%20understanding%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Faks%2F%3FWT.mc_id%3Dk8spool-devto-jagord%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Kubernetes%20Service%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E(AKS)%20node%20pools.%20This%20is%20a%20blog%20post%20that%20makes%20assumptions%20that%20you're%20done%20the%20Azure%20tutorials%20around%20fundamentals.%20It%20will%20also%20assume%20you%20know%20how%20to%20create%20and%20use%20the%20Azure%20Kubernetes%20Service%20to%20launch%20a%20cluster.%3C%2FP%3E%0A%3CP%3EIf%20you'd%20like%20to%20start%20with%20these%2C%20check%20out%20these%20Microsoft%20Learn%20Modules%20and%20blog%20posts%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Flearn%2Fpaths%2Fazure-fundamentals%2F%3FWT.mc_id%3Dk8spool-devto-jagord%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EMicrosoft%20Docs%20Learn%20Azure%20Fundamentals%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Flearn%2Fmodules%2Fintro-to-azure-kubernetes-service%2F%3FWT.mc_id%3Dk8spool-devto-jagord%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EMicrosoft%20Docs%20Learn%20Introduction%20to%20Azure%20Kubernetes%20Service%3CBR%20%2F%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Fkubernetes-terminology-for-beginners-2pdb%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EKubernetes%20Terminology%20for%20Beginners%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Fazure-kubernetes-service-a-beginner-s-guide-mkc%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Kubernetes%20Service%20-%20A%20Beginner's%20Guide.%3C%2FA%3E%3C%2FP%3E%0A%3CHR%20%2F%3E%0A%3CH3%20id%3D%22toc-hId--689730693%22%20id%3D%22toc-hId--689730660%22%3E%3CA%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Fmultiple-node-pools-on-azure-kubernetes-service-2cp4%23whats-a-node-in-kubernetes%22%20name%3D%22whats-a-node-in-kubernetes%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3C%2FA%3E%3CSTRONG%3EWhat's%20a%20node%20in%20Kubernetes%3F%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%3EFrom%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fkubernetes.io%2Fdocs%2Fconcepts%2Farchitecture%2Fnodes%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eofficial%20Kubernetes%20Docs%3C%2FA%3E%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3EThe%20Kubernetes%20node%20has%20the%20services%20necessary%20to%20run%20application%20containers%20and%20be%20managed%20from%20the%20master%20systems.%20A%20node%20is%20a%20worker%20machine%20in%20Kubernetes%2C%20previously%20known%20as%20a%20minion.%20A%20node%20may%20be%20a%20VM%20or%20physical%20machine%2C%20depending%20on%20the%20cluster.%20Each%20node%20contains%20the%20services%20necessary%20to%20run%20pods%20and%20is%20managed%20by%20the%20master%20components.%20The%20services%20on%20a%20node%20include%20the%20container%20runtime%2C%20kubelet%20and%20kube-proxy.%20See%20The%20Kubernetes%20Node%20section%20in%20the%20architecture%20design%20doc%20for%20more%20details._%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3EIt%20could%20be%20your%20local%20computer%20using%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fkubernetes.io%2Fdocs%2Fsetup%2Flearning-environment%2Fminikube%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eminikube%3C%2FA%3E%2C%20a%20server%20in%20a%20datacenter%20or%20a%20virtual%20machine%20in%20the%20cloud.%3C%2FP%3E%0A%3CHR%20%2F%3E%0A%3CH3%20id%3D%22toc-hId-1797782140%22%20id%3D%22toc-hId-1797782173%22%3E%3CA%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Fmultiple-node-pools-on-azure-kubernetes-service-2cp4%23whats-a-node-pool%22%20name%3D%22whats-a-node-pool%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3C%2FA%3E%3CSTRONG%3EWhat's%20a%20node%20pool%3F%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%3EYou%20can%20use%20different%20types%20of%20CPUs%20and%20storage%20with%20management%20for%20your%20AKS%20managed%20nodes.%20A%20subset%20of%20VM's%20like%20hardware%20and%20configuration.%20Scale%20them%20based%20on%20your%20utilization.%3C%2FP%3E%0A%3CP%3EFrom%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Faks%2Fuse-multiple-node-pools%3FWT.mc_id%3Dk8spool-devto-jagord%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3ECreate%20and%20manage%20multiple%20node%20pools%20for%20a%20cluster%20in%20AKS%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eon%20Microsoft%20docs%20website%3A%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3EIn%20Azure%20Kubernetes%20Service%20(AKS)%2C%20nodes%20of%20the%20same%20configuration%20are%20grouped%20together%20into%20node%20pools.%20These%20node%20pools%20contain%20the%20underlying%20VMs%20that%20run%20your%20applications.%20The%20initial%20number%20of%20nodes%20and%20their%20size%20(SKU)%20is%20defined%20when%20you%20create%20an%20AKS%20cluster%2C%20which%20creates%20a%20default%20node%20pool.%20To%20support%20applications%20that%20have%20different%20compute%20or%20storage%20demands%2C%20you%20can%20create%20additional%20node%20pools.%20For%20example%2C%20use%20these%20additional%20node%20pools%20to%20provide%20GPUs%20for%20compute-intensive%20applications%2C%20or%20access%20to%20high-performance%20SSD%20storage.%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CHR%20%2F%3E%0A%3CH3%20id%3D%22toc-hId--9672323%22%20id%3D%22toc-hId--9672290%22%3E%3CA%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Fmultiple-node-pools-on-azure-kubernetes-service-2cp4%23whats-a-gpu-optimized-vm%22%20name%3D%22whats-a-gpu-optimized-vm%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3C%2FA%3E%3CSTRONG%3EWhat's%20a%20GPU%20Optimized%20VM%3F%3A%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%3EFrom%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fvirtual-machines%2Fsizes-gpu%3FWT.mc_id%3Dk8spool-devto-jagord%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EMicrosoft%20docs%3C%2FA%3E%3A%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3EGPU%20optimized%20VM%20sizes%20are%20specialized%20virtual%20machines%20available%20with%20single%20or%20multiple%20NVIDIA%20GPUs.%20These%20sizes%20are%20designed%20for%20compute-intensive%2C%20graphics-intensive%2C%20and%20visualization%20workloads.%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CHR%20%2F%3E%0A%3CH3%20id%3D%22toc-hId--1817126786%22%20id%3D%22toc-hId--1817126753%22%3E%3CA%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Fmultiple-node-pools-on-azure-kubernetes-service-2cp4%23solving-a-problem%22%20name%3D%22solving-a-problem%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3C%2FA%3E%3CSTRONG%3ESolving%20a%20problem%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jaydestro_15-1586198125616.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F182465i87E000A85E32EC21%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22jaydestro_15-1586198125616.jpeg%22%20alt%3D%22jaydestro_15-1586198125616.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-670386047%22%20id%3D%22toc-hId-670386080%22%3E%3CA%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Fmultiple-node-pools-on-azure-kubernetes-service-2cp4%23even-fake-companies-need-help%22%20name%3D%22even-fake-companies-need-help%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3C%2FA%3E%3CSTRONG%3EEven%20Fake%20companies%20need%20help%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftailwindtraiders.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3ETailwind%20Traders%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eis%20the%20world's%20biggest%20fake%20company%20with%20a%20reference%20app%20used%20for%20this%20and%20many%20other%20examples.%20You%20can%20review%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DEP-PME-1tq0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ethis%20video%20from%20Azure%20Friday%20about%20the%20reference%20apps%3C%2FA%3E.%20You%20can%20also%20review%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FMicrosoft%2FTailwindTraders-Website%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Eapplication%20repository%20here%3C%2FA%3E%2C%20it's%20open%20to%20the%20world%20to%20build%20with%20all%20the%20tools%20in%20this%20blog%20post.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jaydestro_16-1586198125628.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F182464i18BAEE6E3E414906%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22jaydestro_16-1586198125628.png%22%20alt%3D%22jaydestro_16-1586198125628.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20Tailwind%20Traders%20Website%20at%20its%20core%20is%20an%20e-commerce%20site%20with%20a%20number%20of%20extremely%20critical%20services%20that%20the%20company%20requires%20reliability%20and%20uptime%20in%20order%20to%20successfully%20execute%20new%20orders.%20In%20order%20for%20Tailwind%20Traders%20to%20understand%20their%20customers%20better%2C%20much%20of%20the%20experience%20the%20user%20has%20is%20stored%20in%20a%20NoSQL%20database%20in%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fcosmos-db%2Fintroduction%3FWT.mc_id%3Dk8spool-devto-jagord%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Cosmos%20DB%3C%2FA%3E.%20Cosmos%20provides%20Tailwind%20Traders%20with%20a%20low%20latency%20and%20high%20throughput%20database%20that%20works%20with%20the%20MongoDB%20API.%20Daily%2C%20reports%20on%20this%20information%20are%20run%20and%20delivered%20into%20a%20web%20presentable%20front%20end.%3C%2FP%3E%0A%3CP%3EThe%20reports%20app%20uses%20a%20number%20of%20algorithms%20that%20the%20data%20science%20team%20at%20Tailwind%20Traders%20developed%20along%20with%20the%20application%20engineer%3B%20these%20are%20extremely%20compute-intensive%20and%20seem%20to%20be%20taxing%20the%20capabilities%20of%20the%20more%20general-purpose%20CPU%20offerings%20in%20Azure.%20The%20Tailwind%20Traders%20engineering%20team%20recently%20looked%20at%20processing%20times%20of%20their%20daily%20reports%20for%20and%20recognized%20that%20even%20though%20they%20were%20wise%20enough%20to%20architect%20their%20application%20into%20microservices%2C%20they%20felt%20that%20the%20return%20time%20of%20some%20reports%20(nearly%208-9%20hours)%20had%20a%20potential%20of%20being%20reduced%20by%20utilizing%20GPUs%20available%20in%20Microsoft%20Azure.%3C%2FP%3E%0A%3CP%3ETailwind%20Traders%20will%20want%20to%20use%20standard%20CPUs%20for%20a%20portion%20of%20the%20web%20front%20end%20of%20my%20app.%20The%20company's%20CIO%20would%20like%20to%20have%20reports%20on%20their%20collected%20data%20processed%20quicker%20on%20GPUs%20in%20order%20for%20the%20business%20to%20best%20place%20the%20most%20popular%20and%20impressive%20products%20to%20potential%20customers%20based%20on%20data%20captured.%20The%20more%20information%20Tailwind%20Traders%20is%20able%20to%20gain%20on%20their%20customer's%20experience%2C%20the%20more%20they%20can%20improve%20it.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1137068416%22%20id%3D%22toc-hId--1137068383%22%3E%3CA%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Fmultiple-node-pools-on-azure-kubernetes-service-2cp4%23proposed-solution%22%20name%3D%22proposed-solution%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3C%2FA%3E%3CSTRONG%3EProposed%20Solution%3A%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jaydestro_17-1586198125633.gif%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F182466i8C5401C87BC0FF83%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22jaydestro_17-1586198125633.gif%22%20alt%3D%22jaydestro_17-1586198125633.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETWT's%20team%20will%20build%20an%20AKS%20cluster%20with%20multiple%20node%20pools.%20The%20two%20pools%20will%20contain%20different%20types%20of%20computing%20power%20to%20handle%20the%20microserviced%20application%20workloads.%3C%2FP%3E%0A%3CP%3ETo%20begin%2C%20the%20team%20will%20create%20a%20new%20cluster%20for%20AKS%2C%20in%20this%20case%2C%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Enodepool01%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ethat%20will%20handle%20the%20web%20app%20front%20end%20using%20a%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fvirtual-machines%2Fsizes-b-series-burstable%3FWT.mc_id%3Dk8spool-devto-jagord%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EBs2%20series%20VM%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efor%20the%20node%20pool.%3C%2FP%3E%0A%3CP%3EYou%20can%20also%20create%20node%20pools%20and%20specify%20your%20specific%20CPU%20type%20with%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Eaz%20cli%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Etool%20rather%20than%20do%20so%20by%20the%20portal%3A%3C%2FP%3E%0A%3CDIV%20class%3D%22highlight%22%3E%0A%3CPRE%20class%3D%22highlight%20plaintext%22%3E%3CCODE%3E%23%20Create%20a%20resource%20group%20in%20East%20US%0Aaz%20group%20create%20--name%20myResourceGroup%20--location%20eastus%0A%0A%23%20Create%20a%20basic%20single-node%20AKS%20cluster%0Aaz%20aks%20create%20%5C%0A%20%20%20%20--resource-group%20myResourceGroup%20%5C%0A%20%20%20%20--name%20cluster01%20%5C%0A%20%20%20%20--vm-set-type%20VirtualMachineScaleSets%20%5C%0A%20%20%20%20--node-count%202%20%5C%0A%20%20%20%20--generate-ssh-keys%20%5C%0A%20%20%20%20--kubernetes-version%201.15.7%20%5C%0A%20%20%20%20--load-balancer-sku%20standard%0A%0A%23%20Add%20a%20node%20pool%20to%20the%20cluster%0A%0Aaz%20aks%20nodepool%20add%20%5C%0A%20%20%20%20--resource-group%20myResourceGroup%20%5C%0A%20%20%20%20--cluster-name%20cluster01%20%5C%0A%20%20%20%20--name%20nodepool02%20%5C%0A%20%20%20%20--node-count%203%20%5C%0A%20%20%20%20--kubernetes-version%201.15.7%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3C%2FDIV%3E%0A%3CP%3EThis%20cluster%20will%20use%20B-series%20burstable%20VMs%20which%20are%20ideal%20for%20workloads%20that%20do%20not%20need%20the%20full%20performance%20of%20the%20CPU%20continuously%2C%20like%20web%20servers%2C%20small%20databases%20and%20development%20and%20test%20environments%20-%20exactly%20the%20solution%20for%20a%20web%20front%20end%20service%20and%20its%20required%20components%20such%20as%20a%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Faks%2Fstatic-ip%3FWT.mc_id%3Dk8spool-devto-jagord%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Eload%20balancer%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EThe%20TWT%20team%20chose%20to%20create%20a%20secondary%20node%20pool%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Enodepool02%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ethat%20will%20handle%20my%20GPU%20intensive%20workloads%2C%20such%20as%20processing%20data%20for%20reports%20that%20are%20used%20to%20improve%20customer%20experience.%20The%20secondary%20node%20pool%20is%20created%20using%20a%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fvirtual-machines%2Fsizes-gpu%3FWT.mc_id%3Dk8spool-devto-jagord%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3ENC6s_v2%20class%20virtual%20machine%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jaydestro_18-1586198125630.gif%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F182468i8E1DF2E238310B03%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22jaydestro_18-1586198125630.gif%22%20alt%3D%22jaydestro_18-1586198125630.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20TWT%20tech%20team%20next%20can%20create%20a%20node%20pool%20using%20the%20az%20aks%20node%20pool%20add%20command%20again.%20This%20time%2C%20specify%20the%20name%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Enodepool02%3C%2FCODE%3E%2C%20and%20use%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3E--node-vm-size%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eparameter%20to%20specify%20the%20Standard_NC6%20size%3A%3C%2FP%3E%0A%3CDIV%20class%3D%22highlight%22%3E%0A%3CPRE%20class%3D%22highlight%20plaintext%22%3E%3CCODE%3Eaz%20aks%20nodepool%20add%20%5C%0A%20%20%20%20--resource-group%20myResourceGroup%20%5C%0A%20%20%20%20--cluster-name%20myAKSCluster%20%5C%0A%20%20%20%20--name%20nodepool02%20%5C%0A%20%20%20%20--node-count%201%20%5C%0A%20%20%20%20--node-vm-size%20Standard_NC6%20%5C%0A%20%20%20%20--no-wait%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3C%2FDIV%3E%0A%3CP%3EThe%20TWT%20team%20can%20begin%20assigning%20specific%20pods%20to%20nodes%20by%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Faks%2Fuse-multiple-node-pools%3FWT.mc_id%3Dk8spool-devto-jagord%23schedule-pods-using-taints-and-tolerations%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Escheduling%20pods%20using%20taints%20and%20tolerations%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EBy%20providing%20a%20dedicates%20pool%20of%20GPU%20backed%20nodes%2C%20TWT%20will%20now%20be%20able%20to%20run%20their%20reports%20using%20the%20power%20of%20single%20or%20multiple%20NVIDIA%20GPUs.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1350444417%22%20id%3D%22toc-hId-1350444450%22%3E%3CA%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Fmultiple-node-pools-on-azure-kubernetes-service-2cp4%23more-info%22%20name%3D%22more-info%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3C%2FA%3E%3CSTRONG%3EMore%20Info%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%3EThere's%20more%20documentation%20available%20to%20you%20to%20find%20out%20the%20best%20way%20to%20implement%20node%20pools%20with%20AKS.%20Check%20out%20the%20different%20links%20and%20videos%20provided%20before%20so%20you%20can%20begin%20using%20this%20powerful%20option%20for%20those%20who%20want%20to%20diversify%20compute%20options%20within%20their%20AKS%20cluster.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--457010046%22%20id%3D%22toc-hId--457010013%22%3E%3CA%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Fmultiple-node-pools-on-azure-kubernetes-service-2cp4%23resources%22%20name%3D%22resources%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3C%2FA%3E%3CSTRONG%3EResources%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fcli%2Fazure%2Fext%2Faks-preview%2Faks%2Fnodepool%3Fview%3Dazure-cli-latest%26amp%3BWT.mc_id%3Dk8spool-devto-jagord%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EMicrosoft%20Docs%3A%20az%20aks%20nodepool%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Faks%2Fuse-multiple-node-pools%3FWT.mc_id%3Dk8spool-devto-jagord%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3ECreate%20and%20manage%20multiple%20node%20pools%20for%20a%20cluster%20in%20Azure%20Kubernetes%20Service%20(AKS)%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Faks%2Fkubernetes-action%3FWT.mc_id%3Dk8spool-devto-jagord%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EGitHub%20Actions%20for%20deploying%20to%20Kubernetes%20service%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Faks%2F%3FWT.mc_id%3Dk8spool-devto-jagord%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Kubernetes%20Service%20(AKS)%3CBR%20%2F%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EMultiple%20node%20pools%20in%20Azure%20Kubernetes%20Service%20(AKS)%20%7C%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fresources%2Fvideos%2Fazure-friday%2F%3FWT.mc_id%3Dk8spool-devto-jagord%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Friday%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%20class%3D%22%20fluidvids%22%3E%3CIFRAME%20src%3D%22https%3A%2F%2Fwww.youtube.com%2Fembed%2FXHrlCJDDjS4%22%20width%3D%22710%22%20height%3D%22399%22%20allowfullscreen%3D%22allowfullscreen%22%20class%3D%22%20fluidvids-elem%22%20loading%3D%22lazy%22%20data-mce-fragment%3D%221%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGetting%20production%20ready%20in%20Kubernetes%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%20class%3D%22%20fluidvids%22%3E%3CIFRAME%20src%3D%22https%3A%2F%2Fwww.youtube.com%2Fembed%2Fpg_P8T0OWpo%22%20width%3D%22710%22%20height%3D%22399%22%20allowfullscreen%3D%22allowfullscreen%22%20class%3D%22%20fluidvids-elem%22%20loading%3D%22lazy%22%20data-mce-fragment%3D%221%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%0A%3CP%3E%3CLI-WRAPPER%3E%3C%2FLI-WRAPPER%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-2030502787%22%20id%3D%22toc-hId-2030502820%22%3E%3CA%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fdev.to%2Fazure%2Fmultiple-node-pools-on-azure-kubernetes-service-2cp4%23the-author%22%20name%3D%22the-author%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3C%2FA%3E%3CSTRONG%3EThe%20Author%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you're%20running%20into%20issues%20and%20need%20assistance%20with%20AKS%20or%20any%20other%20Azure%20service%2C%20reach%20out%20to%20me%3A%3C%2FP%3E%0A%3CP%3ETwitter%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftwitter.com%2Fjaydestro%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%40jaydestro%3C%2FA%3E%3CBR%20%2F%3ETwitch%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftwitch.tv%2Fjaydestro%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ejaydestro%3C%2FA%3E%3CBR%20%2F%3EGithub%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fjaydestro%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ejaydestro%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EI%20am%20always%20happy%20to%20hear%20from%20developers%20and%20engineers%20who%20are%20trying%20to%20implement%20new%20services%20to%20improve%20their%20experience%20for%20their%20customers.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1285887%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Essentials%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Friday%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOpen%20at%20Microsoft%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Microsoft

 

One of the most impressive parts of moving applications into the cloud is the ability to apply different types of computing power to your application based on use-case. By taking advantage of all the different compute types within Azure, users access to various CPUs and GPUs that can be implemented. No upfront costs or concerns about racking the gear. No fighting for better support with your vendor or having to buy the latest and greatest to keep up. Azure provides you with a number of options to help implement these various compute options.

Different use cases will often require you to make decisions about what compute options you've selected. How will they improve portions of your application for the business? In this post we'll look at how you can use multiple types of compute options within a Kubernetes cluster in order to use different resources for different parts of their application.

Getting Started

This is a post on understanding Azure Kubernetes Service (AKS) node pools. This is a blog post that makes assumptions that you're done the Azure tutorials around fundamentals. It will also assume you know how to create and use the Azure Kubernetes Service to launch a cluster.

If you'd like to start with these, check out these Microsoft Learn Modules and blog posts:

Microsoft Docs Learn Azure Fundamentals

Microsoft Docs Learn Introduction to Azure Kubernetes Service

Kubernetes Terminology for Beginners

Azure Kubernetes Service - A Beginner's Guide.


What's a node in Kubernetes?

From the official Kubernetes Docs

The Kubernetes node has the services necessary to run application containers and be managed from the master systems. A node is a worker machine in Kubernetes, previously known as a minion. A node may be a VM or physical machine, depending on the cluster. Each node contains the services necessary to run pods and is managed by the master components. The services on a node include the container runtime, kubelet and kube-proxy. See The Kubernetes Node section in the architecture design doc for more details._

It could be your local computer using minikube, a server in a datacenter or a virtual machine in the cloud.


What's a node pool?

You can use different types of CPUs and storage with management for your AKS managed nodes. A subset of VM's like hardware and configuration. Scale them based on your utilization.

From Create and manage multiple node pools for a cluster in AKS on Microsoft docs website:

In Azure Kubernetes Service (AKS), nodes of the same configuration are grouped together into node pools. These node pools contain the underlying VMs that run your applications. The initial number of nodes and their size (SKU) is defined when you create an AKS cluster, which creates a default node pool. To support applications that have different compute or storage demands, you can create additional node pools. For example, use these additional node pools to provide GPUs for compute-intensive applications, or access to high-performance SSD storage.


What's a GPU Optimized VM?:

From Microsoft docs:

GPU optimized VM sizes are specialized virtual machines available with single or multiple NVIDIA GPUs. These sizes are designed for compute-intensive, graphics-intensive, and visualization workloads.


Solving a problem

jaydestro_15-1586198125616.jpeg

 

Even Fake companies need help

Tailwind Traders is the world's biggest fake company with a reference app used for this and many other examples. You can review this video from Azure Friday about the reference apps. You can also review the application repository here, it's open to the world to build with all the tools in this blog post.

jaydestro_16-1586198125628.png

 

The Tailwind Traders Website at its core is an e-commerce site with a number of extremely critical services that the company requires reliability and uptime in order to successfully execute new orders. In order for Tailwind Traders to understand their customers better, much of the experience the user has is stored in a NoSQL database in Azure Cosmos DB. Cosmos provides Tailwind Traders with a low latency and high throughput database that works with the MongoDB API. Daily, reports on this information are run and delivered into a web presentable front end.

The reports app uses a number of algorithms that the data science team at Tailwind Traders developed along with the application engineer; these are extremely compute-intensive and seem to be taxing the capabilities of the more general-purpose CPU offerings in Azure. The Tailwind Traders engineering team recently looked at processing times of their daily reports for and recognized that even though they were wise enough to architect their application into microservices, they felt that the return time of some reports (nearly 8-9 hours) had a potential of being reduced by utilizing GPUs available in Microsoft Azure.

Tailwind Traders will want to use standard CPUs for a portion of the web front end of my app. The company's CIO would like to have reports on their collected data processed quicker on GPUs in order for the business to best place the most popular and impressive products to potential customers based on data captured. The more information Tailwind Traders is able to gain on their customer's experience, the more they can improve it.

Proposed Solution:

jaydestro_17-1586198125633.gif

 

TWT's team will build an AKS cluster with multiple node pools. The two pools will contain different types of computing power to handle the microserviced application workloads.

To begin, the team will create a new cluster for AKS, in this case, nodepool01 that will handle the web app front end using a Bs2 series VM for the node pool.

You can also create node pools and specify your specific CPU type with az cli tool rather than do so by the portal:

# Create a resource group in East US
az group create --name myResourceGroup --location eastus

# Create a basic single-node AKS cluster
az aks create \
    --resource-group myResourceGroup \
    --name cluster01 \
    --vm-set-type VirtualMachineScaleSets \
    --node-count 2 \
    --generate-ssh-keys \
    --kubernetes-version 1.15.7 \
    --load-balancer-sku standard

# Add a node pool to the cluster

az aks nodepool add \
    --resource-group myResourceGroup \
    --cluster-name cluster01 \
    --name nodepool02 \
    --node-count 3 \
    --kubernetes-version 1.15.7

This cluster will use B-series burstable VMs which are ideal for workloads that do not need the full performance of the CPU continuously, like web servers, small databases and development and test environments - exactly the solution for a web front end service and its required components such as a load balancer.

The TWT team chose to create a secondary node pool nodepool02 that will handle my GPU intensive workloads, such as processing data for reports that are used to improve customer experience. The secondary node pool is created using a NC6s_v2 class virtual machine.

jaydestro_18-1586198125630.gif

 

The TWT tech team next can create a node pool using the az aks node pool add command again. This time, specify the name nodepool02, and use the --node-vm-size parameter to specify the Standard_NC6 size:

az aks nodepool add \
    --resource-group myResourceGroup \
    --cluster-name myAKSCluster \
    --name nodepool02 \
    --node-count 1 \
    --node-vm-size Standard_NC6 \
    --no-wait

The TWT team can begin assigning specific pods to nodes by scheduling pods using taints and tolerations.

By providing a dedicates pool of GPU backed nodes, TWT will now be able to run their reports using the power of single or multiple NVIDIA GPUs.

More Info

There's more documentation available to you to find out the best way to implement node pools with AKS. Check out the different links and videos provided before so you can begin using this powerful option for those who want to diversify compute options within their AKS cluster.

Resources

Microsoft Docs: az aks nodepool
Create and manage multiple node pools for a cluster in Azure Kubernetes Service (AKS)
GitHub Actions for deploying to Kubernetes service
Azure Kubernetes Service (AKS)

Multiple node pools in Azure Kubernetes Service (AKS) | Azure Friday

 

 

 

Getting production ready in Kubernetes

 

 

The Author

 

If you're running into issues and need assistance with AKS or any other Azure service, reach out to me:

Twitter: @jaydestro
Twitch: jaydestro
Github: jaydestro

I am always happy to hear from developers and engineers who are trying to implement new services to improve their experience for their customers.