Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

160
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda