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

173
Views
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
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!