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

169
Vistas
Kubernetes Yaml with CRD Resource and CRD object

I have a single yaml file having CustomResourceDefinition and CRD object. But when I am trying to apply the yaml then sometimes crd object creation failed with kind DemoRule not present.

Tried to apply separately and it worked fine. Is there any way to execute both in a single yaml without having any error? Or adding wait between two deployments?

apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: server.demo.com
spec:
  group: demo.com
  versions:
  - name: v1
    served: true
    storage: true
    schema:
      openAPIV3Schema:
        type: object
        properties:
          spec:
            type: object
            properties:
              HOST:
                type: string
  scope: Namespaced
  names:
    plural: servers
    singular: server
    kind: DemoRule
    shortNames:
    - dr
---
apiVersion: demo.com/v1
kind: DemoRule
metadata:
  name: demo-config-rule
  namespace: abc
spec:
  HOST: a.b.c.d

over 4 years ago · Santiago Trujillo
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