{"id":14437,"date":"2024-09-26T03:57:46","date_gmt":"2024-09-26T00:57:46","guid":{"rendered":"https:\/\/www.sunucun.com.tr\/blog\/?post_type=dt_articles&#038;p=14437"},"modified":"2026-02-07T08:46:35","modified_gmt":"2026-02-07T05:46:35","slug":"kubernetes-ile-sunucu","status":"publish","type":"post","link":"https:\/\/sunucun.com.tr\/blog\/kubernetes-ile-sunucu\/","title":{"rendered":"Kubernetes ile Sunucu Orkestrasyonu: Ad\u0131m Ad\u0131m Kurulum ve Y\u00f6netim"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/sunucun.com.tr\/blog\/kubernetes-ile-sunucu\/#Kubernetes_Nedir\" >Kubernetes Nedir?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/sunucun.com.tr\/blog\/kubernetes-ile-sunucu\/#Kubernetesin_Temel_Bilesenleri\" >Kubernetes&#8217;in Temel Bile\u015fenleri<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/sunucun.com.tr\/blog\/kubernetes-ile-sunucu\/#Kubernetes_Kurulumu\" >Kubernetes Kurulumu<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/sunucun.com.tr\/blog\/kubernetes-ile-sunucu\/#1_Gerekli_Araclarin_Kurulumu\" >1. Gerekli Ara\u00e7lar\u0131n Kurulumu<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/sunucun.com.tr\/blog\/kubernetes-ile-sunucu\/#2_Minikube_ile_Kubernetes_Kurulumu\" >2. Minikube ile Kubernetes Kurulumu<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/sunucun.com.tr\/blog\/kubernetes-ile-sunucu\/#3_Pod_Olusturma\" >3. Pod Olu\u015fturma<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/sunucun.com.tr\/blog\/kubernetes-ile-sunucu\/#4_Pod_Durumunu_Kontrol_Etme\" >4. Pod Durumunu Kontrol Etme<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/sunucun.com.tr\/blog\/kubernetes-ile-sunucu\/#Kubernetes_Yonetimi\" >Kubernetes Y\u00f6netimi<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/sunucun.com.tr\/blog\/kubernetes-ile-sunucu\/#1_Servis_Olusturma\" >1. Servis Olu\u015fturma<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/sunucun.com.tr\/blog\/kubernetes-ile-sunucu\/#2_Kubernetes_Guncellemeleri\" >2. Kubernetes G\u00fcncellemeleri<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/sunucun.com.tr\/blog\/kubernetes-ile-sunucu\/#3_Otomatik_Olceklendirme\" >3. Otomatik \u00d6l\u00e7eklendirme<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/sunucun.com.tr\/blog\/kubernetes-ile-sunucu\/#Sonuc\" >Sonu\u00e7<\/a><\/li><\/ul><\/nav><\/div>\n<p>G\u00fcn\u00fcm\u00fcz\u00fcn dijital d\u00fcnyas\u0131nda, uygulamalar\u0131n y\u00f6netimi ve \u00f6l\u00e7eklendirilmesi her zamankinden daha karma\u015f\u0131k hale gelmi\u015ftir. \u0130\u015fte bu noktada, <strong>Kubernetes<\/strong> devreye giriyor. Kubernetes, konteynerle\u015ftirilmi\u015f uygulamalar\u0131 otomatikle\u015ftirilmi\u015f bir \u015fekilde da\u011f\u0131tmak, y\u00f6netmek ve \u00f6l\u00e7eklendirmek i\u00e7in kullan\u0131lan g\u00fc\u00e7l\u00fc bir a\u00e7\u0131k kaynak platformudur. Bu makalede, Kubernetes ile sunucu orkestrasyonu hakk\u0131nda ad\u0131m ad\u0131m kurulum ve y\u00f6netim s\u00fcre\u00e7lerini ele alaca\u011f\u0131z. Kubernetes, <a href=\"https:\/\/www.sunucun.com.tr\/blog\/dt-article\/kubernetes-ile-sunucu\/\">konteynerle\u015ftirilmi\u015f<\/a> uygulamalar\u0131 y\u00f6netmek i\u00e7in g\u00fc\u00e7l\u00fc ve esnek bir platformdur. Bu makalede, Kubernetes ile sunucu orkestrasyonunu ad\u0131m ad\u0131m kurulum ve y\u00f6netim s\u00fcre\u00e7leri ile ele ald\u0131k. Minikube kullanarak yerel bir Kubernetes k\u00fcmesi olu\u015fturabilir, pod&#8217;lar ve servisler tan\u0131mlayabilir, g\u00fcncellemeler yapabilir ve otomatik \u00f6l\u00e7eklendirme i\u015flemlerini ger\u00e7ekle\u015ftirebilirsiniz.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Kubernetes_Nedir\"><\/span>Kubernetes Nedir?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Kubernetes, Google taraf\u0131ndan geli\u015ftirilmi\u015f ve \u015fu anda Cloud Native Computing Foundation taraf\u0131ndan y\u00f6netilen bir a\u00e7\u0131k <a href=\"https:\/\/kubernetes.io\/\" target=\"_blank\" rel=\"noopener\">kaynak<\/a> projesidir. Konteynerlerin da\u011f\u0131t\u0131m\u0131n\u0131 ve y\u00f6netimini kolayla\u015ft\u0131r\u0131r. Kubernetes, bir\u00e7ok farkl\u0131 i\u015f y\u00fck\u00fcn\u00fc y\u00f6netebilir ve uygulamalar\u0131n g\u00fcvenilirli\u011fini art\u0131r\u0131r. Ayr\u0131ca, uygulama g\u00fcncellemelerini kesintisiz bir \u015fekilde ger\u00e7ekle\u015ftirmenizi sa\u011flar.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Kubernetesin_Temel_Bilesenleri\"><\/span>Kubernetes&#8217;in Temel Bile\u015fenleri<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li><strong>Pod:<\/strong> Kubernetes&#8217;te en temel da\u011f\u0131t\u0131m birimidir. Bir veya daha fazla konteyner i\u00e7erebilir.<\/li>\n<li><strong>Node:<\/strong> Kubernetes k\u00fcmesindeki fiziksel veya sanal makinelerdir. Pod&#8217;lar\u0131 \u00e7al\u0131\u015ft\u0131rmak i\u00e7in kullan\u0131l\u0131r.<\/li>\n<li><strong>K\u00fcme (Cluster):<\/strong> Bir veya daha fazla node&#8217;dan olu\u015fan bir gruptur. T\u00fcm Kubernetes kaynaklar\u0131 bu k\u00fcme i\u00e7inde y\u00f6netilir.<\/li>\n<li><strong>Kubelet:<\/strong> Node&#8217;larda \u00e7al\u0131\u015fan ve pod&#8217;lar\u0131n durumunu y\u00f6neten bir ajand\u0131r.<\/li>\n<li><strong>Kubernetes API:<\/strong> Kubernetes kaynaklar\u0131 ile etkile\u015fim kurmak i\u00e7in kullan\u0131lan bir RESTful API&#8217;dir.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Kubernetes_Kurulumu\"><\/span>Kubernetes Kurulumu<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"1_Gerekli_Araclarin_Kurulumu\"><\/span>1. Gerekli Ara\u00e7lar\u0131n Kurulumu<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Kubernetes&#8217;i kurmadan \u00f6nce, baz\u0131 gerekli ara\u00e7lar\u0131 sisteminize kurman\u0131z gerekir. Bu ara\u00e7lar \u015funlard\u0131r Geli\u015fen teknoloji ve i\u015f y\u00fckleri, Kubernetes gibi orkestrasyon \u00e7\u00f6z\u00fcmlerine olan ihtiyac\u0131 art\u0131rmaktad\u0131r. Kubernetes ile sunucu y\u00f6netiminizi daha etkili ve verimli hale getirerek, uygulama geli\u015ftirme s\u00fcre\u00e7lerinizi h\u0131zland\u0131rabilirsiniz.<\/p>\n<ul>\n<li><strong>kubectl:<\/strong> Kubernetes komut sat\u0131r\u0131 arac\u0131. K\u00fcme ile etkile\u015fimde bulunmak i\u00e7in kullan\u0131l\u0131r.<\/li>\n<li><strong>Minikube:<\/strong> Yerel bir Kubernetes k\u00fcmesi olu\u015fturmak i\u00e7in kullan\u0131lan bir ara\u00e7t\u0131r. Geli\u015ftirme ve test a\u015famalar\u0131nda idealdir.<\/li>\n<li><strong>Docker:<\/strong> Konteyner g\u00f6r\u00fcnt\u00fclerini olu\u015fturmak ve \u00e7al\u0131\u015ft\u0131rmak i\u00e7in kullan\u0131l\u0131r.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"2_Minikube_ile_Kubernetes_Kurulumu\"><\/span>2. Minikube ile Kubernetes Kurulumu<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Minikube kullanarak yerel bir Kubernetes k\u00fcmesi kurmak olduk\u00e7a basittir. A\u015fa\u011f\u0131daki ad\u0131mlar\u0131 izleyebilirsiniz:<\/p>\n<ul>\n<li><strong>Minikube&#8217;u \u0130ndirin:<\/strong> Minikube&#8217;un en son s\u00fcr\u00fcm\u00fcn\u00fc indirin ve kurun.<\/li>\n<li><strong>Minikube Ba\u015flatma:<\/strong> Komut sat\u0131r\u0131na <code>minikube start<\/code> yaz\u0131n. Bu komut, yerel bir Kubernetes k\u00fcmesi ba\u015flat\u0131r.<\/li>\n<li><strong>Kubectl ile Ba\u011flant\u0131 Kurma:<\/strong> <code>kubectl cluster-info<\/code> komutunu kullanarak k\u00fcme durumunu kontrol edebilirsiniz.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"3_Pod_Olusturma\"><\/span>3. Pod Olu\u015fturma<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Kubernetes k\u00fcmeniz kurulduktan sonra, ilk pod&#8217;unuzu olu\u015fturabilirsiniz. A\u015fa\u011f\u0131daki \u00f6rnek YAML dosyas\u0131n\u0131 kullanarak bir pod olu\u015fturabilirsiniz:<\/p>\n<pre><code>apiVersion: v1\r\nkind: Pod\r\nmetadata:\r\n  name: my-nginx\r\nspec:\r\n  containers:\r\n  - name: nginx\r\n    image: nginx:latest\r\n<\/code><\/pre>\n<p>Bu dosyay\u0131 <code>nginx-pod.yaml<\/code> olarak kaydedin ve ard\u0131ndan a\u015fa\u011f\u0131daki komut ile pod&#8217;u olu\u015fturun:<\/p>\n<pre><code>kubectl apply -f nginx-pod.yaml<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"4_Pod_Durumunu_Kontrol_Etme\"><\/span>4. Pod Durumunu Kontrol Etme<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Pod&#8217;unuzun durumunu kontrol etmek i\u00e7in a\u015fa\u011f\u0131daki komutu kullanabilirsiniz:<\/p>\n<pre><code>kubectl get pods<\/code><\/pre>\n<p>Bu komut, k\u00fcmeniz i\u00e7indeki t\u00fcm pod&#8217;lar\u0131n durumunu g\u00f6sterir. E\u011fer pod&#8217;unuz &#8220;Running&#8221; durumundaysa, ba\u015far\u0131yla olu\u015fturulmu\u015ftur.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Kubernetes_Yonetimi\"><\/span>Kubernetes Y\u00f6netimi<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"1_Servis_Olusturma\"><\/span>1. Servis Olu\u015fturma<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Kubernetes, uygulamalar\u0131n\u0131z\u0131 d\u0131\u015f d\u00fcnyaya a\u00e7mak i\u00e7in <strong>Servis<\/strong> bile\u015fenini kullan\u0131r. A\u015fa\u011f\u0131da, nginx pod&#8217;unuzu bir servis ile d\u0131\u015fa a\u00e7mak i\u00e7in gereken YAML dosyas\u0131 \u00f6rne\u011fi verilmi\u015ftir:<\/p>\n<pre><code>apiVersion: v1\r\nkind: Service\r\nmetadata:\r\n  name: my-nginx-service\r\nspec:\r\n  type: NodePort\r\n  ports:\r\n    - port: 80\r\n      targetPort: 80\r\n  selector:\r\n    app: my-nginx\r\n<\/code><\/pre>\n<p>Bu dosyay\u0131 <code>nginx-service.yaml<\/code> olarak kaydedin ve a\u015fa\u011f\u0131daki komut ile servisi olu\u015fturun:<\/p>\n<pre><code>kubectl apply -f nginx-service.yaml<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"2_Kubernetes_Guncellemeleri\"><\/span>2. Kubernetes G\u00fcncellemeleri<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Kubernetes, uygulamalar\u0131n\u0131z\u0131 g\u00fcncellerken kesintisiz bir deneyim sunar. Bir uygulaman\u0131n yeni bir s\u00fcr\u00fcm\u00fcn\u00fc da\u011f\u0131tmak i\u00e7in a\u015fa\u011f\u0131daki komutu kullanabilirsiniz:<\/p>\n<pre><code>kubectl set image deployment\/my-nginx nginx=nginx:latest<\/code><\/pre>\n<p>Bu komut, mevcut nginx pod&#8217;unuzu en son g\u00f6r\u00fcnt\u00fc ile g\u00fcnceller.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_Otomatik_Olceklendirme\"><\/span>3. Otomatik \u00d6l\u00e7eklendirme<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Kubernetes, uygulaman\u0131z\u0131n y\u00fck\u00fcne g\u00f6re otomatik olarak \u00f6l\u00e7eklendirme yapman\u0131za olanak tan\u0131r. A\u015fa\u011f\u0131daki komut, pod say\u0131s\u0131n\u0131 art\u0131rmak i\u00e7in kullan\u0131labilir:<\/p>\n<pre><code>kubectl scale deployment my-nginx --replicas=3<\/code><\/pre>\n<p>Bu komut, nginx pod&#8217;unuzu 3 kopya ile \u00e7al\u0131\u015ft\u0131r\u0131r.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Sonuc\"><\/span>Sonu\u00e7<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Kubernetes, konteynerle\u015ftirilmi\u015f uygulamalar\u0131 y\u00f6netmek i\u00e7in g\u00fc\u00e7l\u00fc ve esnek bir platformdur. Bu makalede, Kubernetes ile sunucu orkestrasyonunu ad\u0131m ad\u0131m kurulum ve y\u00f6netim s\u00fcre\u00e7leri ile ele ald\u0131k. Minikube kullanarak yerel bir Kubernetes k\u00fcmesi olu\u015fturabilir, pod&#8217;lar ve servisler tan\u0131mlayabilir, g\u00fcncellemeler yapabilir ve otomatik \u00f6l\u00e7eklendirme i\u015flemlerini ger\u00e7ekle\u015ftirebilirsiniz.<\/p>\n<p>Geli\u015fen teknoloji ve i\u015f y\u00fckleri, Kubernetes gibi orkestrasyon \u00e7\u00f6z\u00fcmlerine olan ihtiyac\u0131 art\u0131rmaktad\u0131r. Kubernetes ile sunucu y\u00f6netiminizi daha etkili ve verimli hale getirerek, uygulama geli\u015ftirme s\u00fcre\u00e7lerinizi h\u0131zland\u0131rabilirsiniz.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>G\u00fcn\u00fcm\u00fcz\u00fcn dijital d\u00fcnyas\u0131nda, uygulamalar\u0131n y\u00f6netimi ve \u00f6l\u00e7eklendirilmesi her zamankinden daha karma\u015f\u0131k hale gelmi\u015ftir. \u0130\u015fte bu noktada, Kubernetes devreye giriyor. Kubernetes, konteynerle\u015ftirilmi\u015f uygulamalar\u0131 otomatikle\u015ftirilmi\u015f bir \u015fekilde da\u011f\u0131tmak, y\u00f6netmek ve \u00f6l\u00e7eklendirmek i\u00e7in kullan\u0131lan g\u00fc\u00e7l\u00fc bir a\u00e7\u0131k kaynak platformudur. Bu makalede, Kubernetes ile sunucu orkestrasyonu hakk\u0131nda ad\u0131m ad\u0131m kurulum ve y\u00f6netim s\u00fcre\u00e7lerini ele alaca\u011f\u0131z. Kubernetes, konteynerle\u015ftirilmi\u015f uygulamalar\u0131 y\u00f6netmek&hellip;<\/p>\n","protected":false},"author":1,"featured_media":14438,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[1521],"tags":[1527],"class_list":["post-14437","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-teknoloji","tag-teknoloji"],"_links":{"self":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts\/14437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/comments?post=14437"}],"version-history":[{"count":1,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts\/14437\/revisions"}],"predecessor-version":[{"id":16418,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts\/14437\/revisions\/16418"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/media\/14438"}],"wp:attachment":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/media?parent=14437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/categories?post=14437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/tags?post=14437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}