<p>I have installed kubernetes using minikube on a single node. I have implemented ‘LoadBalancer’ type of service which manages 3 pods. By default, it uses a ‘network load balancer’. Can we change load balancer type in service .yaml file or can we change load balancer algorithm used? please find the service file below :</p>

<p>— myservice.yaml</p>

<pre><code>apiVersion: v1
kind: Service
metadata:
  name: demo-apps-lb
spec:
  type: LoadBalancer
  ports:
    port: 80
  selector:
      app: app1
</code></pre>

<p>Note : Here I am not using any cloud platform, all the things are on single host machine.</p>

kalyani chaudhari
<p>If you have later plan to attach domain do DNS mapping check this indirectly this will also make load balancer but handling request and other stuff is easy with it.</p>

<blockquote>
  <p><a href="https://kubernetes.io/docs/concepts/services-networking/ingress/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/services-networking/ingress/</a></p>
</blockquote>

<p>You can use annotation to change load balancer type.</p>

<blockquote>
  <p>service.beta.kubernetes.io/aws-load-balancer-type</p>
</blockquote>
