<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mustafa Bayramoglu on Medium]]></title>
        <description><![CDATA[Stories by Mustafa Bayramoglu on Medium]]></description>
        <link>https://medium.com/@moosebay?source=rss-91f9d9d2fb2d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NoBCBQ5As-DZKfc4PuwA9A.png</url>
            <title>Stories by Mustafa Bayramoglu on Medium</title>
            <link>https://medium.com/@moosebay?source=rss-91f9d9d2fb2d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 18:31:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@moosebay/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to create a Private Kubernetes Cluster on Azure]]></title>
            <link>https://medium.com/@moosebay/how-to-create-a-private-kubernetes-cluster-on-azure-318adfaceca?source=rss-91f9d9d2fb2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/318adfaceca</guid>
            <category><![CDATA[azure-kubernetes-service]]></category>
            <category><![CDATA[aks-privatecluster]]></category>
            <dc:creator><![CDATA[Mustafa Bayramoglu]]></dc:creator>
            <pubDate>Mon, 01 Jun 2020 00:44:23 GMT</pubDate>
            <atom:updated>2020-06-01T18:14:35.100Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to access to the Private Kubernetes Cluster on Azure</h3><p>I have struggled with the Kubernetes Private Cluster creation. So I wanted to share the steps I did to manage my kubernetes cluster.</p><p>First of all, perquisites:</p><ul><li>VNET Gateway to connect to VNET</li></ul><p>or</p><ul><li>Create a VM in the same VNET</li></ul><p>Before creating your cluster on Azure:</p><ul><li>Create an address space for your AKS. I wanted it to be big so I would not have any concerns about scaling later on. I gave <em>10.12.0.0/16</em> range which equivalents to ~65,500 with some reserved Azure IPs</li><li>Create a subnet with the same IP range for that address space in your VNET</li></ul><p>Create an AKS with this command:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c54cdb469474d3e751d4c1f9775e31d1/href">https://medium.com/media/c54cdb469474d3e751d4c1f9775e31d1/href</a></iframe><p>And then get the credentials of the AKS that’s created.</p><p>When you try to get pods you will see an error because your DNS don’t know your private kube api server’s IP.</p><p>kubectl get pods</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*EqCBZQD1u1X4TPqN7vIMhw.png" /></figure><p>To fix this find the KubeAPI’s Local IP address from your VNET connected devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pWszRhb3XjLd0Vgpgtbw7w.png" /></figure><p>10.12.0.4 in our case.</p><p>I’m going to add this in my `etc/hosts` file.</p><p>sudo vi /etc/hosts</p><p>add the private link when you try to get your pods</p><p><em>10.12.0.4 guid.privatelink.centralus.azmk8s.io</em></p><p>after adding this we can access to our pods inside private cluster:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*Cv-5UXIYWGaEWeZD2KqNVA.png" /></figure><h3>Notes:</h3><ul><li>When you want to access to these pods from VNET create the services with NodePort config. Ex: <em>kubectl expose deployment hello-node — type=NodePort — port=8080</em></li></ul><p>Thank you for reading. Let me know if you have any questions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=318adfaceca" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>