<p>I want to make a <code>YAML</code> file with Deployment, Ingress, and Service (maybe with clusterissuer, issuer and cert) on one file, how can I do that? I tried</p>
<pre><code>kubectl apply -f (name_file.yaml)
</code></pre>

<p>You can it with three dashes on your yaml file
like this</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
  name: mock
spec:
...
---
apiVersion: v1
kind: ReplicationController
metadata:
  name: mock
spec:
</code></pre>
<p>Source : <a href="https://levelup.gitconnected.com/kubernetes-merge-multiple-yaml-into-one-e8844479a73a" rel="nofollow noreferrer">https://levelup.gitconnected.com/kubernetes-merge-multiple-yaml-into-one-e8844479a73a</a></p>
