[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-698068-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-698068-en":130,"doc-similar-698068":160},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","kubernetes-objects","KUBERNETES OBJECTS","","Kubernetes objects are persistent entities that define and represent the state of a cluster. The specification (spec) captures the desired characteristics set during creation, while the status reflects the current, system-updated state. The material explains how to create objects via Kubernetes API and kubectl, including YAML fields like apiVersion, kind, metadata, and spec. It also covers imperative kubectl commands, naming and UID concepts, DNS/RFC-based name constraints, and namespace isolation with common namespaces and commands.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/kubernetes-objects/698068/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/kubernetes-objects/698068.png","ImageObject",300,407,{"name":42,"@type":43},"percent12345","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-23","2026-11-12",true,{"@type":52,"interactionType":53,"userInteractionCount":33},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What is the difference between object spec and object status in Kubernetes?","Question",{"text":62,"@type":63},"Spec defines the desired characteristics you set when creating an object. Status describes the current state supplied and updated by Kubernetes and its components.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"Which fields are required in a Kubernetes YAML manifest to create an object?",{"text":67,"@type":63},"The manifest needs apiVersion, kind, metadata (including a name and optional namespace), and spec describing the desired object state.",{"name":69,"@type":60,"acceptedAnswer":70},"How do namespaces work for isolating resources in a Kubernetes cluster?",{"text":71,"@type":63},"Resources must be unique within a namespace, not across namespaces. Namespaces divide cluster resources for different users, and resources each belong to only one namespace.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},698068,1794447832,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":33,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":110,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":79,"read_time":117,"preview_page_count":33,"preview_urls":143},1099529851338,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","KUBERNETES OBJECTS  \n􀁸 Kubernetes objects are persistent entities in the Kubernetes system. Kubernetes uses these entities to represent the state of your cluster.  \n􀁸 Specifically, they can describe:  \n􀂃 What containerized applications are running (and on which nodes)  \n􀂃 The resources available to those applications  \n􀂃 The policies around how those applications behave, such as restart policies, upgrades, and fault-tolerance.  \nOBJECT SPEC AND STATUS:  \n􀁸 Every Kubernetes object includes two nested object fields that govern the object's configuration: object spec & object status.  \n􀁸 For objects that have a spec, you have to set this when you create the object, providing a description of the characteristics you want the resource to have: its desired state.  \n􀁸 The status describes the current state of the object, supplied and updated by the Kubernetes system and its components.  \nDESCRIBING A KUBERNETES OBJECT:  \n􀁸 When you use the Kubernetes API to create the object (either directly or via kubectl), that API request must include that information as JSON in the request body.  \n􀁸 Most often, you provide the information to kubectl in a .yaml file. kubectl converts the information to JSON when making the API request.  \nREQUIRED FIELDS:  \n􀁸 In the .yaml file for the Kubernetes object you want to create, you'll need to set values for the following fields:  \n􀂃 apiVersion: Which version of the Kubernetes API you're using to create this object  \n􀂃 kind: What kind of object you want to create  \n􀂃 metadata: Data that helps uniquely identify the object, including a name string, UID, and optional namespace  \n􀂃 spec: What state you desire for the object  \n$kubectl apply-f [https://k8s.io/examples/application/deployment.yaml](https://k8s.io/examples/application/deployment.yaml)  \nIMPERATIVE COMMANDS:  \n􀁸 When using imperative commands, a user operates directly on live objects ina cluster. The user provides operations to the kubectl command as arguments or flags.  \nRun an instance of the nginx container by creating a Deployment object:  \n$kubectl create deployment nginx--image nginx  \nDelete the objects defined in two configuration files:  \n$kubectl delete-fnginx.yaml-fredis.yaml  \nUpdate the objects defined in a configuration file by overwriting the live configuration:  \n$kubectl replace-fnginx.yaml  \nOBJECT NAMES AND IDS:  \n􀁸 Each object in your cluster has a Name that is unique for that type of resource.  \n􀁸 Every Kubernetes object also has a UID that is unique across your whole cluster.  \nNAMES:  \n􀁸 A client-provided string that refers to an object in a resource URL, such as /api/v1/pods/somename.  \n􀁸 Four types of commonly used name constraints for resources.  \nDNS SUBDOMAIN NAMES:  \n􀁸 Most resource types require a name that can be used as a DNS subdomain name as defined in RFC 1123.  \n􀁸 This means the name must:  \n􀂃 contain no more than 253 characters  \n􀂃 contain only lowercase alphanumeric characters, '-' or '.'  \n􀂃 start with an alphanumeric character  \n􀂃 end with an alphanumeric character  \nRFC 1123 LABEL NAMES:  \n􀁸 Some resource types require their names to follow the DNS label standard as defined in RFC 1123.  \n􀁸 This means the name must:  \n􀂃 contain at most 63 characters  \n􀂃 contain only lowercase alphanumeric characters or '-'  \n􀂃 start with an alphanumeric character  \n􀂃 end with an alphanumeric character  \nRFC 1035 LABEL NAMES:  \n􀁸 Some resource types require their names to follow the DNS label standard as defined in RFC 1035.  \n􀁸 This means the name must:  \n􀂃 contain at most 63 characters  \n􀂃 contain only lowercase alphanumeric characters or '-'  \n􀂃 start with an alphabetic character  \n􀂃 end with an alphanumeric character  \nPATH SEGMENT NAMES:  \n􀁸 Some resource types require their names to be able to be safely encoded as a path segment. In other words, the name may not be \". \" or \".. \" and the name may not contain \"/\" or \"%\".  \nManifest for a Pod named nginx-demo:  \nNAMESPACES:  \n􀁸 In Kubernetes, namespaces provide a mechanis","cbCaikBpxzEKdPtl","https://ap.wps.com/l/cbCaikBpxzEKdPtl","pdf",312373,"English","# Kubernetes objects\n## Object spec and status\n## Describing a Kubernetes object\n## Required YAML fields\n## Imperative kubectl commands\n## Object names and IDs\n## Name constraints and formats\n## Namespaces\n## Initial namespaces and basic namespace commands","[{\"question\":\"What is the difference between object spec and object status in Kubernetes?\",\"answer\":\"Spec defines the desired characteristics you set when creating an object. Status describes the current state supplied and updated by Kubernetes and its components.\"},{\"question\":\"Which fields are required in a Kubernetes YAML manifest to create an object?\",\"answer\":\"The manifest needs apiVersion, kind, metadata (including a name and optional namespace), and spec describing the desired object state.\"},{\"question\":\"How do namespaces work for isolating resources in a Kubernetes cluster?\",\"answer\":\"Resources must be unique within a namespace, not across namespaces. Namespaces divide cluster resources for different users, and resources each belong to only one namespace.\"}]","KUBERNETES OBJECTS | PDF",[144,148,152,156],{"page_no":22,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/9371cd6680b7aa44e6ba2b61174ff045.webp",983,1272,{"page_no":26,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/dd1c8817e3f43752f75bb484ce73e414.webp",982,1270,{"page_no":30,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/c870d48020960686e9620a1b214f5c65.webp",981,1269,{"page_no":33,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/b2093e5723dd72537d0dc9c495a646e1.webp",980,1268,{"list":161,"token":11},[162,169,175,181,187,192,198,204,210,216],{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":167,"category_name":29,"create_tm":168},203668,"Kubernetes Administrator - Roadmap","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229882564897/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=BRyMVEYrC3e1EHQtQRyf90ISpH8%3D","kubernetes-administrator-roadmap",14,1788562503,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":96,"category_name":29,"create_tm":174},718193,"A GUIDE TO KUBERNETES FOR SRES AND SYSADMINS","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230018621790/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=5YJyFv6OSG6Juug1iV6C0%2BwEHCQ%3D","a-guide-to-kubernetes-for-sres-and-sysadmins",1794857296,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":33,"category_name":29,"create_tm":180},698072,"Kubernetes Tutorial - Quick-start and Test Cluster Setup","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010182020/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=%2BGkiL0FvUqtVJXojAyMv5k3YPMA%3D","kubernetes-tutorial-quick-start-and-test-cluster-setup",1794447841,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":30,"category_name":29,"create_tm":186},698074,"Kubernetes Basics - Issue 01 - Issue date 2025-07-29","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010182049/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=rqesrwtGApVnK%2B5C6oX1SOoBZ3s%3D","kubernetes-basics-issue-01-issue-date-2025-07-29",1794447847,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":33,"category_name":29,"create_tm":186},698073,"Kubernetes Succinctly - read online free","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010182111/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=GoxxRH%2BftKHceHujgBzjlDAF0A8%3D","kubernetes-succinctly-read-online-free",{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":33,"category_name":29,"create_tm":197},689172,"Linux-namespaces-NDC-TechTown-2019-Kerrisk","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001529873/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=s%2F9t%2FXuKGGsyDVPI3ojPixy7QEg%3D","linux-namespaces-ndc-techtown-2019-kerrisk",1794098398,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":33,"category_name":29,"create_tm":203},698071,"Local Development Environment for Kubernetes using Minikube","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010182043/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=5BQklYILOYmsrVCcEPuRPZqDYaA%3D","local-development-environment-for-kubernetes-using-minikube",1794447840,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":30,"category_name":29,"create_tm":209},698069,"Getting Started with Containers and Kubernetes - March 2020 CNCF Webinar","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010181827/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=5xageZ37YbLptuWl%2BoVQgS3eVUo%3D","getting-started-with-containers-and-kubernetes-march-2020-cncf-webinar",1794447835,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":30,"category_name":29,"create_tm":215},701208,"Back to the basics - Namespaces 101 - Meeting C++ - Best Practices","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012053920/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=DukSOHQaAEa4KxYdFOv1Hs%2BKwlg%3D","back-to-the-basics-namespaces-101-meeting-c-best-practices",1794524169,{"doc_id":217,"doc_title":218,"file_type":137,"home_preview_img_url":219,"slug":220,"view_count":30,"category_name":29,"create_tm":221},698075,"Getting Started with Kubernetes - Ref Card","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010182142/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=DRT8vikuFJRi%2BHygeV%2BczfggLWM%3D","getting-started-with-kubernetes-ref-card",1794447848]