{"id":37078,"date":"2025-12-27T04:00:32","date_gmt":"2025-12-27T01:00:32","guid":{"rendered":"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/"},"modified":"2025-12-27T04:00:32","modified_gmt":"2025-12-27T01:00:32","slug":"adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi","status":"publish","type":"post","link":"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/","title":{"rendered":"Ad\u0131m Ad\u0131m AKS Kurulumu: Azure Kubernetes Service&#8217;e Giri\u015f ve Yap\u0131land\u0131rma Rehberi"},"content":{"rendered":"<h2>Ad\u0131m Ad\u0131m AKS Kurulumu: Azure Kubernetes Service&#8217;e Giri\u015f ve Yap\u0131land\u0131rma Rehberi<\/h2>\n<p>Modern bulut tabanl\u0131 uygulamalar\u0131n vazge\u00e7ilmezi haline gelen konteyner teknolojisi, mikroservis mimarilerinin yayg\u0131nla\u015fmas\u0131yla birlikte b\u00fcy\u00fck bir ivme kazand\u0131. Bu konteynerleri etkin bir \u015fekilde y\u00f6netmek ve \u00f6l\u00e7eklendirmek i\u00e7in ise Kubernetes gibi konteyner orkestrasyon platformlar\u0131na ihtiya\u00e7 duyulmaktad\u0131r. Azure Kubernetes Service (AKS), Microsoft Azure&#8217;\u0131n sundu\u011fu, y\u00f6netilen bir Kubernetes hizmetidir. Bu makalede, AKS&#8217;in temel bile\u015fenlerinden ba\u015flayarak, ad\u0131m ad\u0131m bir AKS k\u00fcmesini nas\u0131l kuraca\u011f\u0131n\u0131z\u0131, y\u00f6netece\u011finizi ve uygulamalar\u0131n\u0131z\u0131 nas\u0131l da\u011f\u0131taca\u011f\u0131n\u0131z\u0131 detayl\u0131 bir \u015fekilde ele alaca\u011f\u0131z. Amac\u0131m\u0131z, bulut tabanl\u0131 konteyner altyap\u0131n\u0131z\u0131 kurmak i\u00e7in sa\u011flam bir temel olu\u015fturmakt\u0131r.<\/p>\n<h3>AKS Nedir ve Neden Kullanmal\u0131y\u0131z?<\/h3>\n<p>Azure Kubernetes Service (AKS), Microsoft Azure taraf\u0131ndan sunulan, tam olarak y\u00f6netilen bir Kubernetes hizmetidir. Geli\u015ftiricilerin ve operasyon ekiplerinin Kubernetes k\u00fcmelerini kolayca da\u011f\u0131tmas\u0131na, y\u00f6netmesine ve \u00f6l\u00e7eklendirmesine olanak tan\u0131r. AKS, Kubernetes kontrol d\u00fczlemini (master node&#8217;lar) sizin i\u00e7in y\u00f6neterek, altyap\u0131 y\u00f6netimi y\u00fck\u00fcn\u00fc azalt\u0131r ve uygulaman\u0131za odaklanman\u0131z\u0131 sa\u011flar.<\/p>\n<h4>Kubernetes&#8217;in Temelleri<\/h4>\n<p>Kubernetes, Google taraf\u0131ndan geli\u015ftirilen a\u00e7\u0131k kaynakl\u0131 bir konteyner orkestrasyon platformudur. Konteynerli uygulamalar\u0131 otomatik olarak da\u011f\u0131tmak, \u00f6l\u00e7eklendirmek ve y\u00f6netmek i\u00e7in tasarlanm\u0131\u015ft\u0131r. Pod&#8217;lar, Deployment&#8217;lar, Service&#8217;ler ve Ingress gibi temel bile\u015fenleriyle, uygulamalar\u0131n y\u00fcksek eri\u015filebilirlik, \u00f6l\u00e7eklenebilirlik ve esneklikle \u00e7al\u0131\u015fmas\u0131n\u0131 sa\u011flar.<\/p>\n<h4>AKS&#8217;in Avantajlar\u0131<\/h4>\n<ul>\n<li><strong>Y\u00f6netilen Hizmet:<\/strong> Kontrol d\u00fczlemi Azure taraf\u0131ndan y\u00f6netilir, bu da operasyonel y\u00fck\u00fc azalt\u0131r.<\/li>\n<li><strong>Kolay Entegrasyon:<\/strong> Azure Active Directory, Azure Monitor, Azure Policy gibi di\u011fer Azure hizmetleriyle sorunsuz entegrasyon.<\/li>\n<li><strong>Otomatik \u00d6l\u00e7eklendirme:<\/strong> Uygulama y\u00fck\u00fcne g\u00f6re otomatik olarak node&#8217;lar\u0131 veya pod&#8217;lar\u0131 \u00f6l\u00e7eklendirme yetene\u011fi.<\/li>\n<li><strong>Maliyet Optimizasyonu:<\/strong> Sadece kulland\u0131\u011f\u0131n\u0131z kaynaklar i\u00e7in \u00f6deme yapars\u0131n\u0131z ve spot VM&#8217;ler gibi se\u00e7eneklerle maliyetleri d\u00fc\u015f\u00fcrebilirsiniz.<\/li>\n<li><strong>Geli\u015ftirici Dostu:<\/strong> Kubernetes&#8217;in t\u00fcm g\u00fcc\u00fcn\u00fc, basitle\u015ftirilmi\u015f bir y\u00f6netim deneyimiyle sunar.<\/li>\n<\/ul>\n<h4>Kullan\u0131m Senaryolar\u0131<\/h4>\n<p>AKS, mikroservis mimarileri, CI\/CD i\u015flem hatlar\u0131, IoT \u00e7\u00f6z\u00fcmleri, makine \u00f6\u011frenimi i\u015f y\u00fckleri ve b\u00fcy\u00fck veri i\u015fleme gibi bir\u00e7ok farkl\u0131 senaryoda kullan\u0131labilir. \u00d6zellikle y\u00fcksek trafikli web uygulamalar\u0131 ve s\u00fcrekli entegrasyon\/s\u00fcrekli da\u011f\u0131t\u0131m (CI\/CD) s\u00fcre\u00e7lerine sahip projeler i\u00e7in ideal bir \u00e7\u00f6z\u00fcmd\u00fcr.<\/p>\n<h3>\u00d6n Gereksinimler ve Ortam Haz\u0131rl\u0131\u011f\u0131<\/h3>\n<p>AKS k\u00fcmesi olu\u015fturmaya ba\u015flamadan \u00f6nce baz\u0131 temel ara\u00e7lara ve bir Azure hesab\u0131na ihtiyac\u0131m\u0131z var.<\/p>\n<h4>Azure Hesab\u0131 ve Aboneli\u011fi<\/h4>\n<p>Bir Azure aboneli\u011finizin olmas\u0131 gerekmektedir. E\u011fer yoksa, <a href=\"https:\/\/azure.microsoft.com\/tr-tr\/free\/\" target=\"_blank\">Azure \u00fccretsiz hesab\u0131<\/a> olu\u015fturarak ba\u015flayabilirsiniz.<\/p>\n<h4>Azure CLI Kurulumu<\/h4>\n<p>Azure kaynaklar\u0131n\u0131 komut sat\u0131r\u0131ndan y\u00f6netmek i\u00e7in Azure CLI (Command-Line Interface) kurulu olmal\u0131d\u0131r. Kurulum talimatlar\u0131 i\u00e7in <a href=\"https:\/\/docs.microsoft.com\/tr-tr\/cli\/azure\/install-azure-cli\" target=\"_blank\">Azure CLI belgelerine<\/a> bakabilirsiniz. Kurulumdan sonra Azure hesab\u0131n\u0131za giri\u015f yap\u0131n:<\/p>\n<pre><code class=\"language-bash\">az login<\/pre>\n<p><\/code><\/p>\n<h4>Kaynak Grubu Olu\u015fturma<\/h4>\n<p>Azure'da t\u00fcm kaynaklar bir kaynak grubu i\u00e7inde yer al\u0131r. AKS k\u00fcmenizi ve ilgili kaynaklar\u0131 bar\u0131nd\u0131rmak i\u00e7in bir kaynak grubu olu\u015ftural\u0131m:<\/p>\n<pre><code class=\"language-bash\">az group create --name myAKSResourceGroup --location eastus<\/pre>\n<p><\/code><\/p>\n<p><code>myAKSResourceGroup<\/code> yerine kendi kaynak grubunuzun ad\u0131n\u0131, <code>eastus<\/code> yerine ise tercih etti\u011finiz Azure b\u00f6lgesini yazabilirsiniz.<\/p>\n<h4>kubectl Kurulumu<\/h4>\n<p>Kubernetes k\u00fcmeleriyle etkile\u015fim kurmak i\u00e7in <code>kubectl<\/code> komut sat\u0131r\u0131 arac\u0131na ihtiyac\u0131m\u0131z var. Azure CLI \u00fczerinden kolayca kurabiliriz:<\/p>\n<pre><code class=\"language-bash\">az aks install-cli<\/pre>\n<p><\/code><\/p>\n<h3>AKS K\u00fcmesi Olu\u015fturma<\/h3>\n<p>\u015eimdi s\u0131ra AKS k\u00fcmemizi olu\u015fturmaya geldi. Bu ad\u0131mda k\u00fcmenin temel \u00f6zelliklerini belirleyece\u011fiz.<\/p>\n<h4>Temel K\u00fcme Olu\u015fturma Komutu<\/h4>\n<p>A\u015fa\u011f\u0131daki komutla basit bir AKS k\u00fcmesi olu\u015fturabiliriz. Bu komut, belirtilen kaynak grubunda varsay\u0131lan ayarlarla (\u00f6rne\u011fin, 3 sanal makine d\u00fc\u011f\u00fcm\u00fc) bir k\u00fcme olu\u015fturacakt\u0131r:<\/p>\n<pre><code class=\"language-bash\">az aks create \\\n    --resource-group myAKSResourceGroup \\\n    --name myAKSCluster \\\n    --node-count 3 \\\n    --enable-managed-identity \\\n    --generate-ssh-keys<\/pre>\n<p><\/code><\/p>\n<ul>\n<li><code>--resource-group<\/code>: K\u00fcmenin olu\u015fturulaca\u011f\u0131 kaynak grubu.<\/li>\n<li><code>--name<\/code>: K\u00fcmenizin ad\u0131.<\/li>\n<li><code>--node-count<\/code>: K\u00fcmedeki ba\u015flang\u0131\u00e7 d\u00fc\u011f\u00fcm (node) say\u0131s\u0131.<\/li>\n<li><code>--enable-managed-identity<\/code>: K\u00fcmenin Azure kaynaklar\u0131yla kimlik do\u011frulamas\u0131 yapmas\u0131 i\u00e7in y\u00f6netilen kimlikleri etkinle\u015ftirir.<\/li>\n<li><code>--generate-ssh-keys<\/code>: SSH anahtarlar\u0131 olu\u015fturur (Linux d\u00fc\u011f\u00fcmleri i\u00e7in gereklidir).<\/li>\n<\/ul>\n<p>Bu i\u015flem birka\u00e7 dakika s\u00fcrebilir.<\/p>\n<h4>Node Pool Yap\u0131land\u0131rmas\u0131<\/h4>\n<p>AKS, farkl\u0131 i\u015f y\u00fckleri i\u00e7in farkl\u0131 node pool'lar\u0131 (d\u00fc\u011f\u00fcm havuzlar\u0131) destekler. \u00d6rne\u011fin, GPU'lu veya y\u00fcksek bellekli node'lara sahip havuzlar olu\u015fturabilirsiniz. Varsay\u0131lan olarak bir \"default\" node pool olu\u015fturulur. Yeni bir node pool eklemek i\u00e7in:<\/p>\n<pre><code class=\"language-bash\">az aks nodepool add \\\n    --resource-group myAKSResourceGroup \\\n    --cluster-name myAKSCluster \\\n    --name myuserpool \\\n    --node-count 2 \\\n    --node-vm-size Standard_DS2_v2<\/pre>\n<p><\/code><\/p>\n<h4>Geli\u015fmi\u015f A\u011f Ayarlar\u0131 (Opsiyonel)<\/h4>\n<p>Varsay\u0131lan olarak AKS, k\u00fcme i\u00e7in temel a\u011f ayarlar\u0131n\u0131 kullan\u0131r. Daha geli\u015fmi\u015f senaryolar i\u00e7in (\u00f6rne\u011fin, mevcut bir VNet'e entegrasyon) Azure CNI (Container Network Interface) kullanabilirsiniz. Bu, k\u00fcme olu\u015fturma s\u0131ras\u0131nda <code>--network-plugin azure<\/code> ve di\u011fer a\u011f parametreleriyle belirtilir.<\/p>\n<h4>K\u00fcme Kimlik Do\u011frulamas\u0131<\/h4>\n<p>AKS, Azure Active Directory (AAD) ile entegrasyonu destekler. Bu, kullan\u0131c\u0131lar\u0131n ve gruplar\u0131n Kubernetes API'sine eri\u015fimini AAD \u00fczerinden y\u00f6netmenizi sa\u011flar. K\u00fcme olu\u015ftururken <code>--enable-aad<\/code> ve <code>--aad-admin-group-object-ids<\/code> gibi parametrelerle etkinle\u015ftirilebilir.<\/p>\n<h3>AKS K\u00fcmesini Y\u00f6netme ve \u00d6l\u00e7eklendirme<\/h3>\n<p>K\u00fcmeniz olu\u015ftuktan sonra, onu y\u00f6netmek ve uygulaman\u0131z\u0131n ihtiya\u00e7lar\u0131na g\u00f6re \u00f6l\u00e7eklendirmek \u00f6nemlidir.<\/p>\n<h4>K\u00fcme Ba\u011flant\u0131s\u0131n\u0131 Yap\u0131land\u0131rma<\/h4>\n<p><code>kubectl<\/code>'in AKS k\u00fcmenizle ileti\u015fim kurabilmesi i\u00e7in kimlik bilgilerini indirmeniz gerekir:<\/p>\n<pre><code class=\"language-bash\">az aks get-credentials --resource-group myAKSResourceGroup --name myAKSCluster<\/pre>\n<p><\/code><\/p>\n<p>\u015eimdi k\u00fcmenizin d\u00fc\u011f\u00fcmlerini kontrol edebilirsiniz:<\/p>\n<pre><code class=\"language-bash\">kubectl get nodes<\/pre>\n<p><\/code><\/p>\n<h4>Node Pool Ekleme ve Kald\u0131rma<\/h4>\n<p>Uygulama gereksinimleriniz de\u011fi\u015ftik\u00e7e node pool'lar\u0131 ekleyebilir veya kald\u0131rabilirsiniz. Yukar\u0131da bir node pool eklemeyi g\u00f6rm\u00fc\u015ft\u00fck. Mevcut bir node pool'u kald\u0131rmak i\u00e7in:<\/p>\n<pre><code class=\"language-bash\">az aks nodepool delete \\\n    --resource-group myAKSResourceGroup \\\n    --cluster-name myAKSCluster \\\n    --name myuserpool<\/pre>\n<p><\/code><\/p>\n<h4>Otomatik \u00d6l\u00e7eklendirme (Autoscaler)<\/h4>\n<p>AKS, Cluster Autoscaler ve Horizontal Pod Autoscaler (HPA) ile otomatik \u00f6l\u00e7eklendirmeyi destekler. Cluster Autoscaler, k\u00fcmedeki node say\u0131s\u0131n\u0131 uygulama y\u00fck\u00fcne g\u00f6re otomatik olarak art\u0131r\u0131r veya azalt\u0131r. HPA ise pod'lar\u0131n CPU veya bellek kullan\u0131m\u0131na g\u00f6re \u00f6l\u00e7eklenmesini sa\u011flar. Cluster Autoscaler'\u0131 etkinle\u015ftirmek i\u00e7in:<\/p>\n<pre><code class=\"language-bash\">az aks update \\\n    --resource-group myAKSResourceGroup \\\n    --name myAKSCluster \\\n    --enable-cluster-autoscaler \\\n    --min-count 1 \\\n    --max-count 5<\/pre>\n<p><\/code><\/p>\n<h4>K\u00fcme Y\u00fckseltme (Upgrade)<\/h4>\n<p>Kubernetes'in yeni s\u00fcr\u00fcmleri \u00e7\u0131kt\u0131k\u00e7a AKS k\u00fcmenizi y\u00fckseltmeniz gerekebilir. Bu, g\u00fcvenlik yamalar\u0131 ve yeni \u00f6zellikler i\u00e7in \u00f6nemlidir:<\/p>\n<pre><code class=\"language-bash\">az aks upgrade \\\n    --resource-group myAKSResourceGroup \\\n    --name myAKSCluster \\\n    --kubernetes-version 1.28.3<\/pre>\n<p><\/code><\/p>\n<p>(S\u00fcr\u00fcm numaras\u0131n\u0131 g\u00fcncel olanla de\u011fi\u015ftirin)<\/p>\n<h3>Uygulama Da\u011f\u0131t\u0131m\u0131 ve Servisleri<\/h3>\n<p>K\u00fcmemiz haz\u0131r oldu\u011funa g\u00f6re, \u015fimdi \u00fczerine bir uygulama da\u011f\u0131tabiliriz.<\/p>\n<h4>\u00d6rnek Bir Uygulama Da\u011f\u0131t\u0131m\u0131 (Deployment)<\/h4>\n<p>Basit bir Nginx web sunucusu da\u011f\u0131t\u0131m\u0131 olu\u015ftural\u0131m. Bunun i\u00e7in <code>nginx-deployment.yaml<\/code> ad\u0131nda bir dosya olu\u015ftural\u0131m:<\/p>\n<pre><code class=\"language-yaml\">apiVersion: apps\/v1\nkind: Deployment\nmetadata:\n  name: nginx-deployment\nspec:\n  selector:\n    matchLabels:\n      app: nginx\n  replicas: 3\n  template:\n    metadata:\n      labels:\n        app: nginx\n    spec:\n      containers:\n      - name: nginx\n        image: nginx:latest\n        ports:\n        - containerPort: 80<\/pre>\n<p><\/code><\/p>\n<p>Bu da\u011f\u0131t\u0131m\u0131 k\u00fcmeye uygulamak i\u00e7in:<\/p>\n<pre><code class=\"language-bash\">kubectl apply -f nginx-deployment.yaml<\/pre>\n<p><\/code><\/p>\n<h4>Servis Olu\u015fturma (Service - LoadBalancer)<\/h4>\n<p>Uygulamam\u0131z\u0131n d\u0131\u015far\u0131dan eri\u015filebilir olmas\u0131 i\u00e7in bir Kubernetes Service olu\u015fturmam\u0131z gerekir. <code>nginx-service.yaml<\/code>:<\/p>\n<pre><code class=\"language-yaml\">apiVersion: v1\nkind: Service\nmetadata:\n  name: nginx-service\nspec:\n  selector:\n    app: nginx\n  ports:\n    - protocol: TCP\n      port: 80\n      targetPort: 80\n  type: LoadBalancer<\/pre>\n<p><\/code><\/p>\n<p>Bu servisi uygulamak i\u00e7in:<\/p>\n<pre><code class=\"language-bash\">kubectl apply -f nginx-service.yaml<\/pre>\n<p><\/code><\/p>\n<h4>Uygulamaya Eri\u015fim<\/h4>\n<p><code>LoadBalancer<\/code> tipi servis, Azure'da bir genel IP adresi ile bir y\u00fck dengeleyici olu\u015fturacakt\u0131r. Bu IP adresini almak i\u00e7in:<\/p>\n<pre><code class=\"language-bash\">kubectl get service nginx-service<\/pre>\n<p><\/code><\/p>\n<p><code>EXTERNAL-IP<\/code> s\u00fctunundaki IP adresini bir web taray\u0131c\u0131s\u0131na yap\u0131\u015ft\u0131rarak Nginx sayfan\u0131za eri\u015febilirsiniz.<\/p>\n<h4>Ingress Kontrol\u00f6rleri (K\u0131saca)<\/h4>\n<p>Daha karma\u015f\u0131k y\u00f6nlendirme ve TLS sonland\u0131rma senaryolar\u0131 i\u00e7in Ingress kontrol\u00f6rleri (\u00f6rne\u011fin NGINX Ingress Controller veya Azure Application Gateway Ingress Controller) kullanabilirsiniz. Ingress, HTTP\/HTTPS trafi\u011fini k\u00fcme i\u00e7indeki servislere y\u00f6nlendirir.<\/p>\n<h3>G\u00fcvenlik ve \u0130zleme \u0130pu\u00e7lar\u0131<\/h3>\n<p>Bir AKS k\u00fcmesini kurmak sadece ba\u015flang\u0131\u00e7t\u0131r. G\u00fcvenlik ve izleme, \u00fcretim ortamlar\u0131 i\u00e7in hayati \u00f6neme sahiptir.<\/p>\n<h4>RBAC ve Azure AD Entegrasyonu<\/h4>\n<p>Kubernetes'in yerle\u015fik Rol Tabanl\u0131 Eri\u015fim Kontrol\u00fc (RBAC) mekanizmas\u0131n\u0131 kullanarak kullan\u0131c\u0131lar\u0131n ve servis hesaplar\u0131n\u0131n k\u00fcme kaynaklar\u0131na eri\u015fimini k\u0131s\u0131tlay\u0131n. Azure AD entegrasyonu ile kurumsal kimlik y\u00f6netiminizi Kubernetes'e ta\u015f\u0131yabilirsiniz.<\/p>\n<h4>A\u011f G\u00fcvenli\u011fi (Network Policies)<\/h4>\n<p>Kubernetes Network Policies, pod'lar aras\u0131ndaki ve pod'lar ile d\u0131\u015f kaynaklar aras\u0131ndaki a\u011f trafi\u011fini kontrol etmenizi sa\u011flar. Bu, mikrosegmentasyon uygulayarak g\u00fcvenlik duru\u015funuzu g\u00fc\u00e7lendirir.<\/p>\n<h4>\u0130zleme ve Loglama (Azure Monitor)<\/h4>\n<p>Azure Monitor for Containers, AKS k\u00fcmelerinizin performans\u0131n\u0131 ve sa\u011fl\u0131\u011f\u0131n\u0131 izlemek i\u00e7in kapsaml\u0131 bir \u00e7\u00f6z\u00fcm sunar. CPU, bellek kullan\u0131m\u0131, a\u011f trafi\u011fi gibi metrikleri toplar ve loglar\u0131 analiz etmenizi sa\u011flar. Kurulum s\u0131ras\u0131nda <code>--enable-addons monitoring<\/code> ile etkinle\u015ftirilebilir.<\/p>\n<h4>G\u00fcncellemeler ve Yama Y\u00f6netimi<\/h4>\n<p>AKS k\u00fcmenizi ve node'lar\u0131n\u0131z\u0131 d\u00fczenli olarak g\u00fcncel tutun. Azure, otomatik d\u00fc\u011f\u00fcm i\u015fletim sistemi yamalama ve k\u00fcme y\u00fckseltme se\u00e7enekleri sunar. Bu, g\u00fcvenlik a\u00e7\u0131klar\u0131n\u0131 kapatmak ve yeni \u00f6zelliklerden yararlanmak i\u00e7in kritik \u00f6neme sahiptir.<\/p>\n<h3>AKS'i Kald\u0131rma<\/h3>\n<p>Art\u0131k AKS k\u00fcmenize ihtiyac\u0131n\u0131z kalmad\u0131\u011f\u0131nda, gereksiz maliyetlerden ka\u00e7\u0131nmak i\u00e7in onu silmelisiniz.<\/p>\n<h4>Kaynak Grubunu Silme<\/h4>\n<p>AKS k\u00fcmesini ve ili\u015fkili t\u00fcm kaynaklar\u0131 (depolama hesaplar\u0131, y\u00fck dengeleyiciler, sanal a\u011flar vb.) silmenin en kolay yolu, k\u00fcmenin bulundu\u011fu kaynak grubunu silmektir:<\/p>\n<pre><code class=\"language-bash\">az group delete --name myAKSResourceGroup --yes --no-wait<\/pre>\n<p><\/code><\/p>\n<p><code>--yes<\/code> komutu onay istemeden silme i\u015flemini ba\u015flat\u0131r, <code>--no-wait<\/code> ise komutun arka planda \u00e7al\u0131\u015fmas\u0131n\u0131 sa\u011flar.<\/p>\n<h4>Tek Tek Kaynaklar\u0131 Silme (Alternatif)<\/h4>\n<p>E\u011fer kaynak grubunuzda AKS k\u00fcmesi d\u0131\u015f\u0131nda korumak istedi\u011finiz ba\u015fka kaynaklar varsa, sadece AKS k\u00fcmesini silebilirsiniz:<\/p>\n<pre><code class=\"language-bash\">az aks delete --resource-group myAKSResourceGroup --name myAKSCluster --yes --no-wait<\/pre>\n<p><\/code><\/p>\n<p>Ancak bu, k\u00fcme taraf\u0131ndan olu\u015fturulan di\u011fer Azure kaynaklar\u0131n\u0131 (\u00f6rne\u011fin, y\u00fck dengeleyiciler) silmeyebilir. Bu y\u00fczden genellikle kaynak grubunu silmek daha g\u00fcvenli ve eksiksiz bir temizleme y\u00f6ntemidir.<\/p>\n<h3>Sonu\u00e7<\/h3>\n<p>Bu makalede, Azure Kubernetes Service (AKS) hakk\u0131nda kapsaml\u0131 bir rehber sunarak, temel kavramlardan ba\u015flay\u0131p ad\u0131m ad\u0131m bir AKS k\u00fcmesini nas\u0131l kuraca\u011f\u0131n\u0131z\u0131, y\u00f6netece\u011finizi ve \u00fczerine bir uygulama da\u011f\u0131taca\u011f\u0131n\u0131z\u0131 g\u00f6sterdik. Ayr\u0131ca g\u00fcvenlik ve izleme ipu\u00e7lar\u0131na de\u011findik ve k\u00fcmenizi nas\u0131l temizleyece\u011finizi a\u00e7\u0131klad\u0131k. AKS, konteynerli i\u015f y\u00fcklerinizi bulutta \u00e7al\u0131\u015ft\u0131rmak i\u00e7in g\u00fc\u00e7l\u00fc, esnek ve y\u00f6netilen bir platform sunar. Bu rehber, bulut yerel uygulamalar\u0131n\u0131z i\u00e7in sa\u011flam bir temel olu\u015fturman\u0131za yard\u0131mc\u0131 olacakt\u0131r. AKS'in sundu\u011fu t\u00fcm \u00f6zelliklerden tam olarak yararlanmak i\u00e7in Azure belgelerini ve Kubernetes toplulu\u011funu ke\u015ffetmeye devam etmenizi \u00f6neririz.<\/p>\n<h3>SSS (S\u0131k Sorulan Sorular)<\/h3>\n<h4>AKS \u00fccretsiz mi?<\/h4>\n<p>AKS'in kontrol d\u00fczlemi (master node'lar) \u00fccretsizdir. Ancak, k\u00fcmenizdeki sanal makineler (node'lar), depolama, a\u011f kaynaklar\u0131 ve di\u011fer Azure hizmetleri i\u00e7in kulland\u0131\u011f\u0131n\u0131z kadar \u00f6deme yapars\u0131n\u0131z.<\/p>\n<h4>AKS'te ka\u00e7 node olmal\u0131?<\/h4>\n<p>Ba\u015flang\u0131\u00e7 i\u00e7in genellikle 1 ila 3 node ile ba\u015flan\u0131r. \u00dcretim ortamlar\u0131 i\u00e7in y\u00fcksek eri\u015filebilirlik sa\u011flamak amac\u0131yla en az 3 node \u00f6nerilir. Uygulaman\u0131z\u0131n y\u00fck\u00fcne ve gereksinimlerine g\u00f6re bu say\u0131y\u0131 otomatik \u00f6l\u00e7eklendirme ile art\u0131rabilir veya azaltabilirsiniz.<\/p>\n<h4>AKS'i neden kullanmal\u0131y\u0131m?<\/h4>\n<p>AKS, Kubernetes y\u00f6netiminin karma\u015f\u0131kl\u0131\u011f\u0131n\u0131 azalt\u0131r, operasyonel y\u00fck\u00fc hafifletir ve uygulamalar\u0131n\u0131za odaklanman\u0131z\u0131 sa\u011flar. Azure ekosistemiyle entegrasyonu, otomatik \u00f6l\u00e7eklendirme yetenekleri ve y\u00fcksek eri\u015filebilirlik sunmas\u0131, onu modern bulut uygulamalar\u0131 i\u00e7in cazip bir se\u00e7enek haline getirir.<\/p>\n<h4>AKS ve di\u011fer Kubernetes da\u011f\u0131t\u0131mlar\u0131 aras\u0131ndaki fark nedir?<\/h4>\n<p>AKS, Azure taraf\u0131ndan y\u00f6netilen bir Kubernetes hizmetidir. Bu, kontrol d\u00fczleminin Azure taraf\u0131ndan y\u00f6netildi\u011fi ve bak\u0131m\u0131 yap\u0131ld\u0131\u011f\u0131 anlam\u0131na gelir. Di\u011fer da\u011f\u0131t\u0131mlar (\u00f6rne\u011fin, Kubeadm ile kendi sunucunuzda kurulan Kubernetes veya di\u011fer bulut sa\u011flay\u0131c\u0131lar\u0131n\u0131n sundu\u011fu y\u00f6netilen hizmetler) kontrol d\u00fczlemi y\u00f6netimi ve entegrasyon a\u00e7\u0131s\u0131ndan farkl\u0131l\u0131k g\u00f6sterebilir.<\/p>\n<h4>AKS'te maliyeti nas\u0131l optimize edebilirim?<\/h4>\n<p>Maliyeti optimize etmek i\u00e7in Cluster Autoscaler'\u0131 etkinle\u015ftirerek node'lar\u0131 otomatik \u00f6l\u00e7eklendirebilir, spot VM'leri kullanarak daha ucuz sanal makinelerden faydalanabilir, uygun VM boyutlar\u0131n\u0131 se\u00e7ebilir ve kullan\u0131lmayan kaynaklar\u0131 d\u00fczenli olarak temizleyebilirsiniz. Ayr\u0131ca Azure Maliyet Y\u00f6netimi ara\u00e7lar\u0131n\u0131 kullanarak harcamalar\u0131n\u0131z\u0131 takip edebilirsiniz.<\/p>\n","protected":false},"excerpt":{"rendered":"Modern bulut tabanl\u0131 uygulamalar\u0131n vazge\u00e7ilmezi haline gelen konteyner teknolojisi, mikroservis mimarilerinin yayg\u0131nla\u015fmas\u0131yla birlikte b\u00fcy\u00fck bir ivm&#8230;","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"csco_page_header_type":"","csco_page_load_nextpost":"","csco_page_subscribe_form":"","csco_page_contact_form":"","footnotes":""},"categories":[1491],"tags":[],"class_list":{"0":"post-37078","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-kubernetes","7":"cs-entry","8":"cs-video-wrap"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.5 (Yoast SEO v25.3.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ad\u0131m Ad\u0131m AKS Kurulumu: Azure Kubernetes Service&#039;e Giri\u015f ve Yap\u0131land\u0131rma Rehberi - Kodlar\u0131n Gizemli D\u00fcnyas\u0131<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ad\u0131m Ad\u0131m AKS Kurulumu: Azure Kubernetes Service&#039;e Giri\u015f ve Yap\u0131land\u0131rma Rehberi\" \/>\n<meta property=\"og:description\" content=\"Modern bulut tabanl\u0131 uygulamalar\u0131n vazge\u00e7ilmezi haline gelen konteyner teknolojisi, mikroservis mimarilerinin yayg\u0131nla\u015fmas\u0131yla birlikte b\u00fcy\u00fck bir ivm...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/\" \/>\n<meta property=\"og:site_name\" content=\"Kodlar\u0131n Gizemli D\u00fcnyas\u0131\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-27T01:00:32+00:00\" \/>\n<meta name=\"author\" content=\"Fatih Soysal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fatih Soysal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/\"},\"author\":{\"name\":\"Fatih Soysal\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"headline\":\"Ad\u0131m Ad\u0131m AKS Kurulumu: Azure Kubernetes Service&#8217;e Giri\u015f ve Yap\u0131land\u0131rma Rehberi\",\"datePublished\":\"2025-12-27T01:00:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/\"},\"wordCount\":1989,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"articleSection\":[\"Kubernetes\"],\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/#respond\"]}],\"copyrightYear\":\"2025\",\"copyrightHolder\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/\",\"name\":\"Ad\u0131m Ad\u0131m AKS Kurulumu: Azure Kubernetes Service'e Giri\u015f ve Yap\u0131land\u0131rma Rehberi - Kodlar\u0131n Gizemli D\u00fcnyas\u0131\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\"},\"datePublished\":\"2025-12-27T01:00:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/fatihsoysal.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ad\u0131m Ad\u0131m AKS Kurulumu: Azure Kubernetes Service&#8217;e Giri\u015f ve Yap\u0131land\u0131rma Rehberi\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/\",\"name\":\"Fatihsoysal.com\",\"description\":\"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim\",\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"tr\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\",\"name\":\"Fatih Soysal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"contentUrl\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"width\":512,\"height\":512,\"caption\":\"Fatih Soysal\"},\"logo\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Ad\u0131m Ad\u0131m AKS Kurulumu: Azure Kubernetes Service'e Giri\u015f ve Yap\u0131land\u0131rma Rehberi - Kodlar\u0131n Gizemli D\u00fcnyas\u0131","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/","og_locale":"tr_TR","og_type":"article","og_title":"Ad\u0131m Ad\u0131m AKS Kurulumu: Azure Kubernetes Service'e Giri\u015f ve Yap\u0131land\u0131rma Rehberi","og_description":"Modern bulut tabanl\u0131 uygulamalar\u0131n vazge\u00e7ilmezi haline gelen konteyner teknolojisi, mikroservis mimarilerinin yayg\u0131nla\u015fmas\u0131yla birlikte b\u00fcy\u00fck bir ivm...","og_url":"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/","og_site_name":"Kodlar\u0131n Gizemli D\u00fcnyas\u0131","article_published_time":"2025-12-27T01:00:32+00:00","author":"Fatih Soysal","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Fatih Soysal","Tahmini okuma s\u00fcresi":"11 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/#article","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/"},"author":{"name":"Fatih Soysal","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"headline":"Ad\u0131m Ad\u0131m AKS Kurulumu: Azure Kubernetes Service&#8217;e Giri\u015f ve Yap\u0131land\u0131rma Rehberi","datePublished":"2025-12-27T01:00:32+00:00","mainEntityOfPage":{"@id":"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/"},"wordCount":1989,"commentCount":0,"publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"articleSection":["Kubernetes"],"inLanguage":"tr","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/#respond"]}],"copyrightYear":"2025","copyrightHolder":{"@id":"https:\/\/fatihsoysal.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/","url":"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/","name":"Ad\u0131m Ad\u0131m AKS Kurulumu: Azure Kubernetes Service'e Giri\u015f ve Yap\u0131land\u0131rma Rehberi - Kodlar\u0131n Gizemli D\u00fcnyas\u0131","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/#website"},"datePublished":"2025-12-27T01:00:32+00:00","breadcrumb":{"@id":"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fatihsoysal.com\/blog\/adim-adim-aks-kurulumu-azure-kubernetes-servicee-giris-ve-yapilandirma-rehberi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/fatihsoysal.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Ad\u0131m Ad\u0131m AKS Kurulumu: Azure Kubernetes Service&#8217;e Giri\u015f ve Yap\u0131land\u0131rma Rehberi"}]},{"@type":"WebSite","@id":"https:\/\/fatihsoysal.com\/blog\/#website","url":"https:\/\/fatihsoysal.com\/blog\/","name":"Fatihsoysal.com","description":"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim","publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"tr"},{"@type":["Person","Organization"],"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1","name":"Fatih Soysal","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","contentUrl":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","width":512,"height":512,"caption":"Fatih Soysal"},"logo":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/"},"description":"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.","url":"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/"}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/37078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/comments?post=37078"}],"version-history":[{"count":0,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/37078\/revisions"}],"wp:attachment":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/media?parent=37078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/categories?post=37078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/tags?post=37078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}