<?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 Nuri GUNDOGAN on Medium]]></title>
        <description><![CDATA[Stories by Nuri GUNDOGAN on Medium]]></description>
        <link>https://medium.com/@nurigundogan?source=rss-db3c465cfc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*um3d8hFXooL9tY7EYPv8GA.png</url>
            <title>Stories by Nuri GUNDOGAN on Medium</title>
            <link>https://medium.com/@nurigundogan?source=rss-db3c465cfc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 11:03:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nurigundogan/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[Docker ile Multi-Arch Image Oluşturma]]></title>
            <link>https://medium.com/turknettech/docker-ile-multi-arch-image-olu%C5%9Fturma-b57da9ef8502?source=rss-db3c465cfc------2</link>
            <guid isPermaLink="false">https://medium.com/p/b57da9ef8502</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[multiarch]]></category>
            <category><![CDATA[image]]></category>
            <category><![CDATA[arm64]]></category>
            <dc:creator><![CDATA[Nuri GUNDOGAN]]></dc:creator>
            <pubDate>Thu, 08 Jun 2023 13:34:44 GMT</pubDate>
            <atom:updated>2023-06-08T13:34:44.806Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*-ZnSCu1zNwyKdx3a-zJBtQ.png" /></figure><p>Merhaba, bu yazıda <strong>Docker</strong> üzerinde <strong>Multi-Arch (ARM64-AMD64)</strong> image oluşturmayı anlatıyor olacağım.</p><p>Bildiğiniz gibi <strong>Apple</strong>, yeni <strong>Macbook</strong> modellerinde işlemci mimarisini <strong>ARM</strong> tabanlı olarak değiştirdi. Bu sebeple birçok firma ve topluluk, uygulamalarını <strong>ARM</strong> mimarisine göre çıkarmaya başladı. Hal böyle olunca, Docker tarafında da<strong> hem AMD64 hem ARM64</strong> uyumlu image oluşturma ihtiyacı doğmuş oldu.</p><p>İsterseniz başlayalım. Ben ARM tabanlı Macbook üzerinde işlemleri anlatıyor olacağım.</p><p><strong>Docker Kurulumu</strong></p><p>Makinemizde <strong>Docker</strong> kurulu değil ise, aşağıdaki komut ile kurulumu yapıyoruz.</p><pre>brew install --cask docker</pre><p><strong>Docker Buildx Kullanımı</strong></p><p><strong>Multi-Arch</strong> image oluşturmak için <strong>buildx</strong> parametresinden faydalanacağız. Bu işlem için ilk olarak bir builder oluşturmamız gerekiyor.</p><pre>docker buildx create --name builder</pre><p>Aşağıdaki komut ile, builder’ı kullanmaya hazır hale getiriyoruz.</p><pre>docker buildx use builder</pre><p>Oluşturduğumuz builder’ı görmek için de aşağıdaki komutu çalıştırıyoruz.</p><pre>docker buildx ls</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*JzVOGtQQDtWafq6kDqjwxg.png" /></figure><p>Artık altyapımız hazır. Yapmamız gereken tek şey aşağıdaki komutu<strong> Dockerfile’ın</strong> olduğu path’de çalıştırmak. Build sonrası push için de private repo kullanıyor olacağım.</p><pre>docker buildx build --platform linux/arm64/v8,linux/amd64 --tag &lt;repository-path&gt;:1.0.0 --push .</pre><p>Aşağıdaki görselde görüldüğü gibi build işleminden sonra image, <strong>Multi-Arch</strong> olarak repo’muza push’landı.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*TIS_2yPUNSi7ZyBvuSCbMg.png" /></figure><p>Bir sonraki yazıda görüşmek üzere.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b57da9ef8502" width="1" height="1" alt=""><hr><p><a href="https://medium.com/turknettech/docker-ile-multi-arch-image-olu%C5%9Fturma-b57da9ef8502">Docker ile Multi-Arch Image Oluşturma</a> was originally published in <a href="https://medium.com/turknettech">Turknet Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AKS Multi NGINX Ingress Deployment]]></title>
            <link>https://medium.com/turknettech/aks-multi-nginx-ingress-deployment-1959cd19b22e?source=rss-db3c465cfc------2</link>
            <guid isPermaLink="false">https://medium.com/p/1959cd19b22e</guid>
            <category><![CDATA[nginx-ingress]]></category>
            <category><![CDATA[helm]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Nuri GUNDOGAN]]></dc:creator>
            <pubDate>Fri, 23 Dec 2022 08:56:22 GMT</pubDate>
            <atom:updated>2022-12-23T09:02:18.948Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*sVDKOepGkbUNOxHDSB9hsw.png" /></figure><p>Merhaba, bu yazıda <strong>AKS</strong> ortamındaki bir cluster’a <strong>Multi NGINX Ingress</strong> deploy ediyor olacağız.</p><p><strong><em>Böyle bir altyapıya neden ihtiyaç duyduk?</em></strong></p><p>Bildiğiniz üzere <strong>Cloud</strong> tarafına deploy edilen Ingress’ler, Loadbalancer servis tipinde ve otomatik Public IP atanarak çalışır. Biz hem internal uygulamalarımızı hem de external uygulamalarımızı tek bir cluster’a namespace bazında ayırarak deploy etmemiz gerekti. Bu durumda tüm DNS kayıtları Public IP ile oluşturulmuş olacaktı. Bu sorunun önüne geçmek ve düzgün bir altyapı oluşturmak için böyle bir çözüme karar verdik. İsterseniz başlayalım.</p><p>Deploy’ları Helm kullanarak yapıyor olacağız. İlk olarak aşağıdaki komutlar ile repo’muzu ekleyip, update edelim.</p><p>Sırasıyla Internal ve External taraf için komutları uygulayacağız.</p><pre>helm repo add nginx-stable https://helm.nginx.com/stable<br>helm repo update</pre><p><strong>Internal NGINX Ingress Deployment</strong></p><pre>kubectl create namespace nginx-internal<br><br>helm install nginx-internal nginx-stable/nginx-ingress &amp;&amp; \<br> — set controller.ingressClass=nginx-internal &amp;&amp; \<br> — set controller.service.name=nginx-internal &amp;&amp; \<br>-n nginx-internal</pre><p><strong>External NGINX Ingress Deployment</strong></p><pre>kubectl create namespace nginx-external<br> <br>helm install nginx-external nginx-stable/nginx-ingress &amp;&amp; \<br> — set controller.ingressClass=nginx-external &amp;&amp; \<br> — set controller.service.name=nginx-external &amp;&amp; \<br>-n nginx-external</pre><p>Şuan her iki Ingress’e Public IP atanmış oldu. External taraf için yaptığımız deploy’da bir değişikliğe gerek yok.</p><p>Internal taraftaki Ingress’in manifest’ine aşağıdaki parametreleri eklememiz gerekiyor.</p><pre>annotations:<br>  service.beta.kubernetes.io/azure-load-balancer-internal: “true”<br> <br>controller:<br>  hostNetwork: true</pre><p>Aşağıdaki komut ile servisleri listelediğinizde 2 farklı Ingress’i, Public/Private IP atanmış şekilde görebileceksiniz.</p><pre>kubectl get svc -A|grep ingress</pre><p>Son olarak uygulama deploylarındaki manifest’lerde, kullanacağımız <strong>ingressClassName</strong>‘i belirtiyoruz.</p><pre>spec:<br>  ingressClassName: nginx-internal / nginx-external</pre><p>Bir sonraki yazıda görüşmek üzere.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1959cd19b22e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/turknettech/aks-multi-nginx-ingress-deployment-1959cd19b22e">AKS Multi NGINX Ingress Deployment</a> was originally published in <a href="https://medium.com/turknettech">Turknet Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chef Nedir? Chef Server Kurulumu ve Kullanımı]]></title>
            <link>https://medium.com/turknetdevops/chef-nedir-chef-server-kurulumu-ve-kullan%C4%B1m%C4%B1-fb09a109f472?source=rss-db3c465cfc------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb09a109f472</guid>
            <category><![CDATA[infrastructure-as-code]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[chefs]]></category>
            <dc:creator><![CDATA[Nuri GUNDOGAN]]></dc:creator>
            <pubDate>Mon, 18 Jan 2021 14:01:17 GMT</pubDate>
            <atom:updated>2021-02-23T09:16:58.094Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*ClVXrk-O3LqLluw2oj_WQQ.png" /></figure><p>Merhaba, <strong>IT</strong> alanında sıkça duyulan <strong>Chef;</strong> sistem ve uygulama yöneticileri tarafından tercih edilen, sistem altyapılarının kurulumlarını <strong>otomatize</strong> etme imkanı sağlayan ve <strong>yönetimi kolaylaştırmayı</strong> hedefleyen açık kaynak kodlu bir yazılımdır.</p><p><strong>Chef,</strong> script tabanlı çalışan bir uygulamadır ve arka planda <strong>Ruby</strong> kullanmaktadır.</p><p>Kullanım amacına kısaca bir örnek verecek olursak; linux tabanlı bir web sunucunuz var ve içerisinde 10 adet site barındırıyorsunuz. <strong>Kaynak yetersizliğinden veya performans sorunlarından dolayı</strong> sunucu sayısını çoğaltmak ve farm yapısına geçmek isteyebilirsiniz. Normal bir durumda ilk olarak makineye <strong>NGINX</strong> veya <strong>Apache</strong> tarzı bir uygulama kurup, yayın yapılacak sitelerin dosyalarını ve konfigürasyonları tek tek yeni makinede veya makinelerde hazırlamanız gerekiyor olacaktı. Ama <strong>Chef</strong> ile bu işlemleri sadece bir kere <strong>script</strong> haline getirip, 10 adet web sitesini yeni bir makine veya makinelerde saniyeler içerisinde ayağa kaldırabilirsiniz.</p><p>Kuruluma ve kullanımına geçmeden önce <strong>Chef</strong> içinde en çok kullanılan birkaç teknik terime değinmek istiyorum. Bunlar;</p><ul><li><strong>Knife:</strong> Chef Server ile iletişimi sağlayan ve Chef ile uzak makineye kurulum yapma sırasında kullanılan komuttur. Örneğin; <strong>knife upload cookbook web-sunucu-kurulumu</strong>. Bu komut sayesinde oluşturulan cookbook’umuzu Chef Server’a upload etmiş oluyoruz.</li><li><strong>Cookbook:</strong> Script havuzumuzun genel ismi gibi düşünebilirsiniz. Örneğin; cookbook ismi “web-sunucu-kurulumları” olsun. Bu oluşturulan cookbook’un altında ayrı ayrı nginx-kurulumu, apache-kurulumu vs. oluşturabiliriz.</li><li><strong>Recipe: </strong>Yukarıdaki nginx-kurulumu ve apache-kurulumu örneğinde olduğu gibi, cookbook’un altında yer alan her alt kurulumlar<strong> recipe</strong> olarak adlandırılıyor. Aslında biz kurulum scriptlerimizi<strong> </strong>recipe denilen dosyaların içine Ruby kullanarak (uzantısı .rb) yazıyoruz. Örneğin; <strong>nginx-kurulumu.rb</strong></li></ul><h3>CHEF SERVER KURULUMU</h3><p>Chef Server’ın kurulumunu linux (Ubuntu) üzerinde gerçekleştireceğiz. İlk olarak, makinemizin hostname kısmını düzenleyelim ve hosts dosyamıza kayıt girelim.</p><pre>hostnamectl set-hostname chef.demo.com</pre><pre>vi /etc/hosts &gt;&gt; 127.0.0.1 chef.demo.com</pre><p>Makinemize uygun Chef Server paketini aşağıdaki linkten seçip indirelim.</p><pre><a href="https://downloads.chef.io/">https://downloads.chef.io/</a></pre><p>Aşağıdaki komutlarla yükleme işlemini gerçekleştirelim.</p><pre>dpkg -i chef-server-*.deb</pre><pre>chef-server-ctl reconfigure</pre><p>Yüklemeden sonra, Chef servisinin durumunu kontrol edelim.</p><pre>chef-server-ctl status</pre><p>Chef Server’ı yöneteceğimiz web arayüzünün kurulumunu, aşağıdaki komutlarla gerçekleştirelim.</p><pre>chef-server-ctl install chef-manage</pre><pre>chef-server-ctl reconfigure</pre><pre>chef-manage-ctl reconfigure</pre><pre>chef-manage-ctl reconfigure --accept-license</pre><p>Chef Server’ın konfigürasyonlarının tutulacağı bir klasör oluşturalım.</p><pre>mkdir ~/.chef</pre><p>Oluşturduğumuz klasörün içinde, web arayüzün erişimi için <strong>admin</strong> adında bir kullanıcı oluşturalım. Şifresi de <strong>Password1</strong> olsun.</p><pre>chef-server-ctl user-create admin Chef Administrator chef@demo.com Password1 -f ~/.chef/admin.pem</pre><p>Tüm cookbook ve ayarların tutulacağı <strong>Chef Demo</strong> adında bir organizasyon oluşturalım.</p><pre>chef-server-ctl org-create chef.demo.com &#39;Chef Demo&#39; <br>--association_user admin -f ~/.chef/my_org.pem</pre><p>En sonda arayüz erişimini, oluşturduğumuz kullanıcı adı ve şifre ile giriş yaparak kontrol edelim.</p><pre>chef.demo.com</pre><h3>CHEF KULLANIMI</h3><p>Local bilgisayarımızdan <strong>Chef</strong> kullanarak uzak makineye kurulum yapabilmek için <strong>ChefDK</strong> indirip kurmamız gerekiyor. <strong>ChefDK,</strong> Chef Server ve local bilgisayarımız arasında bir link oluşturuyor gibi düşünebilirsiniz. Ben local bilgisayarımda da linux (Ubuntu) kullandığım için linux versiyonunu indirip kurdum. Aşağıdaki linkten size uygun sürümü indirip kullanabilirsiniz. Bundan sonraki Chef kullanım süreçlerini linux üzerinden anlatıyor olacağım.</p><pre><a href="https://downloads.chef.io/chefdk/">https://downloads.chef.io/chefdk/</a></pre><p>İkinci adımda <strong>Chef Yönetim Arayüzü’nden,</strong> <strong>Starter Kit’i</strong> indirmemiz gerekiyor. Starter Kit’i<strong> </strong>Chef Server konfigürasyonlarının bulunduğu dosyalar olarak düşünebilirsiniz. Size tavsiyem yeni bir folder oluşturup tüm işlemlerinizi bu folder üzerinden halletmeniz. Böylece karışıklığı ortadan kaldırmış olursunuz. Ben <strong>/home/nuri/chef-repo</strong> adında bir folder oluşturup, indirdiğim Starter Kit’i bunun içine attım. Ve artık tüm işlemlerimi bu dizin üzerinden yapıyor olacağım.</p><p>Aşağıdaki komutlarla, local bilgisayarımız ile <strong>Chef Server</strong> arasındaki bağlantıyı kontrol ediyoruz.</p><pre>knife ssl fetch</pre><pre>knife ssl check</pre><p>Şimdi sıra ilk script havuzumuzu yani <strong>cookbook </strong>oluşturmaya geldi. Aşağıdaki komut ile ilk cookbook’umuzu oluşturalım.</p><pre>chef generate cookbook web-server-setups</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cWb4zbh3xgJ8cIXSBgk91A.png" /><figcaption>Görsel — 1</figcaption></figure><p>Oluşturduğumuz cookbook’u <strong>Chef Server’a</strong> upload edelim.</p><pre>knife upload cookbook web-server-setups</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*66PyXg7Xq_ygmcOTfHgtGA.png" /><figcaption>Görsel — 2</figcaption></figure><p>Daha sonra cookbook’un içinde yer alan <strong>recipes</strong> klasörünün altındaki <strong>default.rb</strong> dosyasına kısa bir script yazalım.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b62636a57bf26f0a2bdbad18e6ac3550/href">https://medium.com/media/b62636a57bf26f0a2bdbad18e6ac3550/href</a></iframe><p>Tekrardan oluşturduğumuz cookbook’u, <strong>Chef Server’a</strong> güncel hali ile upload edelim.</p><pre>knife upload cookbook web-server-setups</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*VAcqAhtNtorI0wt4ab_06Q.png" /><figcaption>Görsel — 3</figcaption></figure><p>Şimdi; aşağıdaki komut ile uzak sunucuya (CentOS) <strong>NGINX</strong> kurulumunu, oluşturduğumuz <strong>cookbook</strong> ile <strong>Chef</strong> üzerinden gerçekleştirelim.</p><pre>knife bootstrap <strong><em>ServerIP</em></strong> --ssh-user <strong><em>user</em></strong> --sudo --use-sudo-password --node-name <strong><em>ServerName</em></strong> --run-list &#39;recipe[web-server-setups::default]&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*Y1edFBhpGn-dQX7Rs2WYtw.png" /><figcaption>Görsel — 4</figcaption></figure><p>Böylelikle uzak sunucuya <strong>Chef</strong> ile <strong>NGINX</strong> kurulumunu saniyeler içerisinde gerçekleştirmiş olduk. <strong>Chef</strong> ile yapabileceklerimiz bu kadar sınırlı değil elbette. Daha detaylı ve kullanışlı scriptler internette mevcut. Basit ve anlaşılır bir örnek olması için <strong>NGINX</strong> kurulumunu seçtim. Umarım faydalı bir anlatım olmuştur. Bir sonraki yazıda görüşmek üzere…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb09a109f472" width="1" height="1" alt=""><hr><p><a href="https://medium.com/turknetdevops/chef-nedir-chef-server-kurulumu-ve-kullan%C4%B1m%C4%B1-fb09a109f472">Chef Nedir? Chef Server Kurulumu ve Kullanımı</a> was originally published in <a href="https://medium.com/turknetdevops">TurkNetDevOps</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>