<p>I have two different YAMLs one for <strong>Pod</strong> and one for <strong>Service</strong>.
Is it possible to combine them into one YAML but not to use <strong>Deployment</strong> kind YAML in which I know we can specify both Pod and Service definition but I do not need to worry about replicas etc.
Is it possible to combine them together? I haven't find such example/ guidance in documentation.</p>
<p>Thank you.</p>

<p>Yes you can put whatever resources you want in a yaml file, you just need to separate them with three dashes e.g:</p>
<pre><code>apiVersion: apps/v1
kind: Service

---
apiVersion: apps/v1
kind: Pod
</code></pre>
