<p>I'm new to Kubernetes CRD. My question is as below:</p>

<p>Usually we need to apply a bunch of built-in resources for an Kubernetes app, like few deployments, services, or ingress. Can they be bundled into a single CRD, without implementing any controllers?</p>

<p>For example, I have a myapp-deploy, myapp-service. Instead if applying them separately, I want to define a new CRD "myapp", similar like:</p>

<pre><code>kind: myapp
spec:
  deployment: myapp-deploy
  service: my-service
</code></pre>

<p>Then apply this new CRD. </p>

<p>Is this supported directly in kubernetes, without implementing own controller?</p>

<p>I read the official document and googled as well, but didn't find the answer.</p>

<p>Thanks!</p>

Wei Huang
<p>It is not possible without writing anything. As per your requirement, you need to use kubernetes operator (<a href="https://kubernetes.io/docs/concepts/extend-kubernetes/operator/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/extend-kubernetes/operator/</a>) which will help you to deploy all your resources using one crd.</p>
