Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

151
Views
K8s node labels with keys and no values

Sometimes k8s nodes are labelled as k8s.infra/postgres= . Is this a valid label for a node ?

How do we use this kind of label whilst adding node affinities in our Deployment manifests ?

    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
            - matchExpressions:
              - key: k8s.infra/postgres
                operator: Exists
                values:
                - 
                - 
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Sometimes k8s nodes are labelled as k8s.infra/postgres= . Is this a valid label for a node?

Yes, it is a valid label. The type the key is a string and the value is also a string but the value can be empty string: "".

How do we use this kind of label whilst adding node affinities in our Deployment manifests?

The operators Exists and DoesNotExists only use key: and not values: so you can write:

        - matchExpressions:
          - key: k8s.infra/postgres
            operator: Exists
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!