Difference between revisions of "Kubernetes selectors"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
* https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
 
* https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
 
* https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/
 
* https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/
 +
 +
* <code>[[kind: Deployment]], [[kind: Service]]</code> (Services without selectors)
  
  
Line 25: Line 27:
 
  {{PDB example}}
 
  {{PDB example}}
  
 +
 +
kind: [[AWSNodeTemplate]]
 +
spec:
 +
  [[subnetSelector]]:
 +
    [[karpenter.sh/discovery]]: ${CLUSTER_NAME}
 +
  securityGroupSelector:
 +
    karpenter.sh/discovery: ${CLUSTER_NAME}
  
 
== Related ==
 
== Related ==
Line 32: Line 41:
 
* [[CKA v1.21: Understand how to use Labels, Selector and Annotations]]
 
* [[CKA v1.21: Understand how to use Labels, Selector and Annotations]]
 
* <code>0/2 nodes are available: 1 Too many pods, 1 nodes(s) [[didn't match Pod's node affinity/selector]]</code>
 
* <code>0/2 nodes are available: 1 Too many pods, 1 nodes(s) [[didn't match Pod's node affinity/selector]]</code>
 +
* [[spec.selector]]
  
 
== See also ==
 
== See also ==

Latest revision as of 08:43, 3 October 2024

Advertising: