[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-656296-105":59,"doc-detail-656296-en":130},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","a-visual-guide-on-troubleshooting-kubernetes-deployments-read-online-free","A visual guide on troubleshooting Kubernetes deployments - read online free","","A visual, step-by-step guide to troubleshooting Kubernetes deployments, focused on how Deployments, Services, and Ingress interact. It explains the three core components used for typical application exposure, then walks through example YAML for a Hello World Deployment, Service, and Ingress. Emphasis is placed on label and port alignment—especially Service selector matching Pod labels and Service targetPort matching containerPort—followed by practical testing commands.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/a-visual-guide-on-troubleshooting-kubernetes-deployments-read-online-free/656296/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/a-visual-guide-on-troubleshooting-kubernetes-deployments-read-online-free/656296.png","ImageObject",300,407,{"name":92,"@type":93},"Ivy","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-10-28","2026-10-25",true,{"@type":102,"interactionType":103,"userInteractionCount":14},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What are the three main Kubernetes components discussed for deploying an application?","Question",{"text":112,"@type":113},"The guide covers Deployment, Service, and Ingress. Deployment creates Pods, Service routes traffic to Pods internally, and Ingress defines how external traffic flows from outside the cluster to the Service.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How should the Service selector relate to Pod labels?",{"text":117,"@type":113},"The Service selector must match at least one label on the Pod. In practice, the selector section used by the Deployment tracks Pods via matchLabels, while the Service selector is what routes traffic to those Pods.",{"name":119,"@type":110,"acceptedAnswer":120},"When using port-forward, what should the local port and Service port represent?",{"text":121,"@type":113},"The local port is the port opened on the user’s computer, while the Service port is the port exposed by the Service (the guide’s example maps local 3000 to Service 80). If connectivity works, traffic routing through the configured ports is functioning.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},656296,1793030773,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":14,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145},549758252649,"https://ap-avatar.wpscdn.com/avatar/8000253669c5317157?_k=1778319167496531819","10/8/2020 A visual guide on troubleshooting Kubernetes deployments  \nTRAINING BLOG RESOURCES  \nDaniele Polencic  \nA visual guide on troubleshooting Kubernetes deployments  \nPUBLISHED IN DECEMBER 2019  \nTL;DR: here's a diagram to help you debug your deployments in Kubernetes (and you can download it in the PDF version here) .  \n[https://learnk8s.io/troubleshooting-deployments](https://learnk8s.io/troubleshooting-deployments) 1/27  \n10/8/2020 A visual guide on troubleshooting Kubernetes deployments  \n[https://learnk8s.io/troubleshooting-deployments](https://learnk8s.io/troubleshooting-deployments) 2/27  \n10/8/2020 A visual guide on troubleshooting Kubernetes deployments  \nWhen you wish to deploy an application in Kubernetes, you usually define three components:  \n a Deployment—which is a recipe for creating copies of your application called Pods  \n a Service—an internal load balancer that routes the traffic to Pods  \n an Ingress—a description of how the traffic should flow from outside the cluster to your Service.  \nHere's a quick visual recap.  \n1/3  \nIn Kubernetes your applications are exposed through two layers of load balancers: internal and external.  \nNEXT   \n[https://learnk8s.io/troubleshooting-deployments](https://learnk8s.io/troubleshooting-deployments) 3/27  \n10/8/2020 A visual guide on troubleshooting Kubernetes deployments  \nAssuming you wish to deploy a simple Hello World application, the YAML for such application should look similar to this:  \nhello-world.yaml  \napiVersion : apps/v1  \nkind : Deployment  \nmetadata :  \nname : my-deployment  \nlabels :  \ntrack : canary  \nspec :  \nselector :  \nmatchLabels :  \nany-name : my-app  \ntemplate :  \nmetadata :  \nlabels :  \nany-name : my-app  \nspec :  \ncontainers :  \n- name : cont1  \nimage : learnk8s/app : 1.0.0  \nports :  \n- containerPort : 8080  \n---  \napiVersion : v1  \nkind : Service  \nmetadata :  \nname : my-service  \nspec :  \nports :  \n- port : 80  \ntargetPort : 8080  \nselector :  \nname : app  \n---  \napiVersion : networking. k8s .io/v1beta1  \n[https://learnk8s.io/troubleshooting-deployments](https://learnk8s.io/troubleshooting-deployments) 4/27  \n10/8/2020 A visual guide on troubleshooting Kubernetes deployments  \nkind : Ingress  \nmetadata :  \nname : my-ingress  \nspec :  \nrules :  \n- [http](http:)[:](http:)[ ](http:)[paths](paths:)[:](paths:)  \n- backend :  \nserviceName : app  \nservicePort : 80  \npath : /  \nThe definition is quite long, and it's easy to overlook how the components relate to each other.  \nFor example:  \n When should you use port 80 and when port 8080?  \n Should you create a new port for every Service so that they don't clash?  \n Do label names matter? Should it be the same everywhere?  \nBefore focusing on the debugging, let's recap how the three components link to each other.  \nLet's start with Deployment and Service.  \nConnecting Deployment and Service  \nThe surprising news is that Service and Deployment aren't connected at all.  \nInstead, the Service points to the Pods directly and skips the Deployment altogether.  \n[https://learnk8s.io/troubleshooting-deployments](https://learnk8s.io/troubleshooting-deployments) 5/27  \n10/8/2020 A visual guide on troubleshooting Kubernetes deployments  \nSo what you should pay attention to is how the Pods and the Service are related to each other.  \nYou should remember three things:  \n1. The Service selector should match at least one label of the Pod  \n2. The Service targetPort should match the containerPort of the container inside the Pod  \n3. The Service port can be any number. Multiple Services can use the same port because they have different IP addresses assigned.  \nThe following diagram summarises the how to connect the ports:  \n5/5  \n PREVIOUS If your container exposes port 3000, then the  \ntargetPort should match that number.  \n[https://learnk8s.io/troubleshooting-deployments](https://learnk8s.io/troubleshooting-deployments) 6/27  \nIf you look at the YAML, the labels and ports / targetPort should match:  \nhello-worl","cbCairv3u2t9YGVJ","https://ap.wps.com/l/cbCairv3u2t9YGVJ","pdf",1121045,27,"English","# Overview of Kubernetes exposure layers\n## Deployment, Service, and Ingress components\n# Example YAML for Hello World\n## Deployment configuration\n## Service configuration\n## Ingress configuration\n# How components link together\n## Service connects directly to Pods\n## Label and port mapping rules\n# Testing and debugging steps\n## Verify Pod labels with kubectl\n## Port-forward to test connectivity","[{\"question\":\"What are the three main Kubernetes components discussed for deploying an application?\",\"answer\":\"The guide covers Deployment, Service, and Ingress. Deployment creates Pods, Service routes traffic to Pods internally, and Ingress defines how external traffic flows from outside the cluster to the Service.\"},{\"question\":\"How should the Service selector relate to Pod labels?\",\"answer\":\"The Service selector must match at least one label on the Pod. In practice, the selector section used by the Deployment tracks Pods via matchLabels, while the Service selector is what routes traffic to those Pods.\"},{\"question\":\"When using port-forward, what should the local port and Service port represent?\",\"answer\":\"The local port is the port opened on the user’s computer, while the Service port is the port exposed by the Service (the guide’s example maps local 3000 to Service 80). If connectivity works, traffic routing through the configured ports is functioning.\"}]","A visual guide on troubleshooting Kubernetes deployments - read online free | PDF",1792967552,68]