<p>I am trying to deploy my microservices using Kubernetes. And also I have one Ubuntu 16.04 machine as AWS Ec2. In that AWS Ec2 I need to use Kubernetes and deploy my microservices developed using Spring Boot. I already explored the architecture of Kubernetes. But when I am learning how to install Kubernetes in Ubuntu.</p>

<p>It showing that need at least two machine, one for master and another for nodes (worker machines). I am adding the one or two links that I readed for installing Kubernetes below:</p>

<ol>
<li><a href="https://medium.com/@Grigorkh/install-kubernetes-on-ubuntu-1ac2ef522a36" rel="nofollow noreferrer">https://medium.com/@Grigorkh/install-kubernetes-on-ubuntu-1ac2ef522a36</a></li>
<li><a href="https://medium.com/@SystemMining/setup-kubenetes-cluster-on-ubuntu-16-04-with-kubeadm-336f4061d929" rel="nofollow noreferrer">https://medium.com/@SystemMining/setup-kubenetes-cluster-on-ubuntu-16-04-with-kubeadm-336f4061d929</a></li>
</ol>

<p>And I am here need to clarify my confusions related with Kubernetes and its installation. I am adding confusions below section:</p>

<ol>
<li>Can I use one Ubuntu 16.04 machine for both master and worker for my microservice deployment?</li>
<li>Can I integrate Kubernetes with Jenkins in the same ubuntu 16.04 machine, since I am planning to choose Ec2 Ubuntu 16.04 LTS for this?</li>
<li>If master and node in same machine is possible (doubt 1), then how I can create different number of nodes when I am initializing my cluster by using kubeadm init?</li>
</ol>

<p><a href="https://i.stack.imgur.com/Z6N42.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z6N42.png" alt="enter image description here"></a></p>

<p>I am only a beginner with this.</p>

Mr.DevEng
<p>Let's clarify one by one.</p>

<blockquote>
  <p>Can I use one ubuntu 16.04 machine for both master and worker for my microservice deployment?</p>
</blockquote>

<p>Yes, you can use one server for all components, but if you will run your master and node in different VMs or containers. Theoretically, it is possible to create all-in-one server without that, but its a tricky way and I don't recommend it to you.</p>

<blockquote>
  <p>Can I integrate Kubernetes with Jenkins in the same ubuntu 16.04 machine? , Since I am planning to choose Ec2 Ubuntu 16.04 LTS for this</p>
</blockquote>

<p>You can, as example, install Jenkins inside a Kubernetes, or install it somewhere else and integrate. So - yes, you can. <a href="https://akomljen.com/set-up-jenkins-ci-cd-pipeline-with-kubernetes/" rel="nofollow noreferrer">Here</a> is one of the articles about it.</p>

<blockquote>
  <p>If master and node in same machine is possible (Doubt 1), Then How I can create different number of nodes when I am initializing my cluster by using kubeadm init?</p>
</blockquote>

<p>You cannot create multiple nodes on a single machine without docker-in-docker solution or VMs.</p>

<p>Actually, I highly recommend you <a href="https://kubernetes.io/docs/getting-started-guides/minikube/" rel="nofollow noreferrer">Minikube</a> for single node Kubernetes. It will automatically create for you a local cluster in VMs in one click.</p>
