QuestionQ159Verified/Kubernetes FundamentalsCopy linkReport a problemAsk AstroTutorSave questionIn a Kubernetes cluster, how are Labels and Selectors used to organize and manage resources?ALabels are used only for service discovery and do not affect resource management.BLabels are used for categorizing resources, while Selectors are used to filter and retrieve resources based on those labels.CSelectors can only be applied to Pods and not to other resource types in Kubernetes.DLabels are automatically generated by Kubernetes, and Selectors are manually defined by users.Show AnswerAnswerExplanationLabels are key/value metadata attached to Kubernetes objects for organization and identification. Label selectors match objects with specified labels, enabling clients and Kubernetes resources to filter, retrieve, and target groups of resources.Learn moreLabels and Selectors | KubernetesShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion