<h2>I have a question around K8S Service Type "LoadBalancer".</h2>

<p>I am working on developing a new "Kubernetes As a Service" Platform (like GKE etc.) for multi cloud.</p>

<p>Question is: K8S Service Type "LoadBalancer" works with Cloud Load Balancers (which are external to Kubernetes). GKE &amp; other cloud based solution provides direct integration with them, so If I create a GKE Cluster &amp; implement a Service Type "LoadBalancer", it will transparently create a new GCP Load Balancer &amp; show Load Balancer IP in Kubernetes (as External IP). Same applies to other Cloud Providers also.</p>

<p>I want to allow a similar feature on my new "Kubernetes As a Service" platform, where users can choose a cloud provider, create a Kubernetes Cluster &amp; then apply a K8S Service Type "LoadBalancer" &amp; this will result creating a Load Balancer on the (user selected) cloud platform.</p>

<p>I am able to automate the flow till Kubernetes Cluster Creation, but clueless when it comes to "K8S Service &amp; External Load Balancer" Integration.</p>

<p>Can anyone please help me how can I approach integrating K8S Service Type "LoadBalancer" with Specific Cloud Load Balancers? Do I need to write a new CRD or is there any similar code available in Git (in case anyone know any link for reference) ?</p>

Akash Agrawal
<p>You have to understand how kubernetes is interacting with cloud provider. Like for example previously I deployed the Kubernetes on AWS with <code>kops</code>. I see that kubernetes uses aws access key &amp; access secret to interact with aws. If I remember correctly, I saw some CLI options in <code>kube-proxy</code> or <code>kubelet</code> to support AWS. (I have searched man pages for all kubernetes binaries for aws options, but I couldn't find any to provide to you).</p>

<p>For example look at the <a href="https://manpages.debian.org/experimental/kubernetes-node/kubelet.1.en.html" rel="nofollow noreferrer">kubelet man page</a>, they provided an option called <code>--google-json-key</code> to authenticate GCP. You will get some idea if you deploy kubernetes on AWS with <code>kops</code> or <code>kube-aws</code> and dig through the setup and its configuration/options etc.(Same applies to other cloud providers) </p>
