<p>I am quite familiar with Docker, but I have zero experience on Kubernetes.</p>

<p>I have a <a href="https://docs.docker.com/engine/reference/commandline/stack/" rel="nofollow noreferrer">Docker stack</a> (multi-container) software that I can deploy in a Docker swarm cluster. I was wondering if Kubernetes has something similar? I don't need replicas, auto scaling and so on... I just need a group of containers working together with its dependencies and networks defined in single text file.</p>

<p>I have searched and found a tool called <a href="http://kompose.io/" rel="nofollow noreferrer">kompose</a> that translates the Docker stack file to Kubernetes syntax... However, it looks like the output is a list of <code>*.yaml</code> files, instead of a single file. </p>

<p>So, I came to the conclusion that kubernetes does not have this exact functionality.. Am I missing something?</p>

<p>You can copy the content of the generated files into one file and separate them with <code>---</code>.</p>

<p>For instance, if you've got 3 Kubernetes files: <code>service.yml</code>, <code>deployment.yml</code> and <code>configmap.yml</code>, your file should look something like:</p>

<pre><code># content of service.yml
....
---
# content of deployment.yml
....
---
# content of configmap.yml
....
</code></pre>

<p>You would use the same <code>kubectl</code> commands to CRUD using this spec file.</p>
