<p>I have to deploy a Kubernetes cluster, and I currently use <code>bash</code> to set up the security key, the environment prop, create pods etc with <code>kuberctl</code>. But I am wondering if <code>bash</code> is a good choice to used when the deployment steps getting big. E.g. ~50 deployment and services.</p>

<p>Is that a better choice than <code>bash</code> on deploying system under kubernetes? Any good example of automatic deployment under Kubernetes?</p>

<p>In order to install/manage resources in kubernetes the advised solution is to use <a href="https://github.com/kubernetes/helm" rel="nofollow noreferrer">Helm Package Manager</a>. </p>

<blockquote>
  <p>Helm is a tool for managing Kubernetes charts. Charts are packages of
  pre-configured Kubernetes resources.</p>
</blockquote>

<p>So most configurations would belong to applications and tools charts. </p>

<p>Then you can use a third party tool (anSible, puppet, chef) in order to help with the automation. 
In general I prefer to use <a href="https://www.ansible.com" rel="nofollow noreferrer">Ansible</a> as it relies mainly on ssh commands and it's easier to manage compared to Chef and Puppet whose scripts get really messy real quick. 
I prefer composition over orchestration. </p>
