{"id":37529,"date":"2026-01-07T20:40:57","date_gmt":"2026-01-07T17:40:57","guid":{"rendered":"https:\/\/fatihsoysal.com\/blog\/?p=37529"},"modified":"2026-01-07T20:40:57","modified_gmt":"2026-01-07T17:40:57","slug":"node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi","status":"publish","type":"post","link":"https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/","title":{"rendered":"Node.js Uygulamas\u0131n\u0131 DigitalOcean Kubernetes&#8217;e Semaphore CI\/CD ile Da\u011f\u0131tma Rehberi"},"content":{"rendered":"<p><body><\/p>\n<h2>Node.js Uygulamas\u0131n\u0131 DigitalOcean Kubernetes&#8217;e Semaphore CI\/CD ile Da\u011f\u0131tma Rehberi<\/h2>\n<h2>Giri\u015f<\/h2>\n<p>Modern yaz\u0131l\u0131m geli\u015ftirme s\u00fcre\u00e7leri, h\u0131z, g\u00fcvenilirlik ve \u00f6l\u00e7eklenebilirlik gibi temel gereksinimleri kar\u015f\u0131lamak \u00fczere s\u00fcrekli evrim ge\u00e7irmektedir. Bu evrimin merkezinde S\u00fcrekli Entegrasyon (CI) ve S\u00fcrekli Da\u011f\u0131t\u0131m (CD) pratikleri, konteynerizasyon teknolojileri (Docker) ve konteyner orkestrasyon platformlar\u0131 (Kubernetes) yer almaktad\u0131r. \u00d6zellikle Node.js gibi dinamik ve h\u0131zl\u0131 geli\u015ftirme s\u00fcre\u00e7lerine olanak tan\u0131yan dillerle olu\u015fturulan uygulamalar i\u00e7in bu teknolojilerin entegrasyonu kritik \u00f6neme sahiptir.<\/p>\n<p>Bu makalede, bir Node.js uygulamas\u0131n\u0131 s\u0131f\u0131rdan olu\u015fturacak, Docker kullanarak konteynerize edecek, DigitalOcean Kubernetes (DOKS) \u00fczerinde bir k\u00fcme kuracak ve son olarak Semaphore CI\/CD platformunu kullanarak bu uygulaman\u0131n otomatik olarak derlenmesini, test edilmesini ve Kubernetes k\u00fcmesine da\u011f\u0131t\u0131lmas\u0131n\u0131 sa\u011flayaca\u011f\u0131z. Amac\u0131m\u0131z, geli\u015ftiricilere u\u00e7tan uca, \u00fcretim ortam\u0131na haz\u0131r bir CI\/CD hatt\u0131 olu\u015fturma konusunda kapsaml\u0131 bir rehber sunmakt\u0131r. Bu s\u00fcre\u00e7, geli\u015ftirme d\u00f6ng\u00fcs\u00fcn\u00fc h\u0131zland\u0131r\u0131rken, insan hatas\u0131n\u0131 minimize edecek ve da\u011f\u0131t\u0131m s\u00fcre\u00e7lerini standartla\u015ft\u0131racakt\u0131r.<\/p>\n<h2>\u00d6n Ko\u015fullar ve Gerekli Ara\u00e7lar<\/h2>\n<p>Bu rehberi takip edebilmek i\u00e7in a\u015fa\u011f\u0131daki ara\u00e7lar\u0131n sisteminizde kurulu olmas\u0131 ve ilgili platformlarda hesaplar\u0131n\u0131z\u0131n bulunmas\u0131 gerekmektedir:<\/p>\n<h3>Geli\u015ftirme Ortam\u0131 Ara\u00e7lar\u0131<\/h3>\n<p>*   <strong>Node.js ve npm\/yarn:<\/strong> Node.js uygulamam\u0131z\u0131 geli\u015ftirmek ve ba\u011f\u0131ml\u0131l\u0131klar\u0131n\u0131 y\u00f6netmek i\u00e7in gereklidir. Tercihen LTS (Uzun S\u00fcreli Destek) s\u00fcr\u00fcm\u00fc kullan\u0131lmas\u0131 \u00f6nerilir.<br \/>\n*   <strong>Git:<\/strong> Kaynak kod y\u00f6netimi ve Semaphore ile entegrasyon i\u00e7in bir Git istemcisi ve GitHub\/GitLab\/Bitbucket gibi bir Git sa\u011flay\u0131c\u0131s\u0131nda bir hesap.<br \/>\n*   <strong>Docker:<\/strong> Uygulamam\u0131z\u0131 konteynerize etmek ve yerel olarak test etmek i\u00e7in Docker Desktop veya Docker Engine.<br \/>\n*   <strong>Kubectl:<\/strong> Kubernetes k\u00fcmesiyle etkile\u015fim kurmak i\u00e7in Kubernetes komut sat\u0131r\u0131 arac\u0131.<\/p>\n<h3>Bulut ve CI\/CD Platformlar\u0131<\/h3>\n<p>*   <strong>DigitalOcean Hesab\u0131:<\/strong> Kubernetes k\u00fcmemizi bar\u0131nd\u0131rmak i\u00e7in bir DigitalOcean hesab\u0131.<br \/>\n*   <strong>Semaphore Hesab\u0131:<\/strong> CI\/CD hatt\u0131m\u0131z\u0131 olu\u015fturmak ve y\u00f6netmek i\u00e7in bir Semaphore hesab\u0131.<br \/>\n*   <strong>DigitalOcean API Token:<\/strong> Semaphore&#8217;un DigitalOcean hesab\u0131n\u0131zla etkile\u015fim kurabilmesi i\u00e7in bir API token&#8217;a ihtiyac\u0131m\u0131z olacak. Bu token&#8217;\u0131 DigitalOcean kontrol panelinden olu\u015fturabilirsiniz (API -> Tokens\/Keys -> Generate New Token). Okuma ve Yazma izinlerinin her ikisi de olmal\u0131d\u0131r.<\/p>\n<h2>Node.js Uygulamas\u0131 Olu\u015fturma<\/h2>\n<p>\u00d6ncelikle, da\u011f\u0131t\u0131m\u0131n\u0131 yapaca\u011f\u0131m\u0131z basit bir Node.js uygulamas\u0131 olu\u015ftural\u0131m. Bu uygulama, gelen HTTP isteklerine &#8220;Merhaba, Kubernetes!&#8221; \u015feklinde yan\u0131t veren k\u00fc\u00e7\u00fck bir Express sunucusu olacakt\u0131r.<\/p>\n<h3>Basit Bir Node.js Uygulamas\u0131<\/h3>\n<p>Yeni bir dizin olu\u015fturun ve i\u00e7ine girin:<\/p>\n<pre><code class=\"language-bash\">mkdir nodejs-kubernetes-app\ncd nodejs-kubernetes-app<\/code><\/pre>\n<p><code>package.json<\/code> dosyas\u0131n\u0131 ba\u015flat\u0131n ve Express ba\u011f\u0131ml\u0131l\u0131\u011f\u0131n\u0131 ekleyin:<\/p>\n<pre><code class=\"language-bash\">npm init -y\nnpm install express<\/code><\/pre>\n<p>\u015eimdi, <code>index.js<\/code> ad\u0131nda bir dosya olu\u015fturun ve i\u00e7ine a\u015fa\u011f\u0131daki kodu yap\u0131\u015ft\u0131r\u0131n:<\/p>\n<pre><code class=\"language-javascript\">const express = require('express');\nconst app = express();\nconst port = process.env.PORT || 3000;\n\napp.get('\/', (req, res) => {\n  res.send('Merhaba, Kubernetes! Uygulama v1.0');\n});\n\napp.listen(port, () => {\n  console.log(<code>Uygulama ${port} portunda \u00e7al\u0131\u015f\u0131yor.<\/code>);\n});<\/code><\/pre>\n<p>Bu kod, <code>PORT<\/code> ortam de\u011fi\u015fkeninden veya varsay\u0131lan olarak 3000 portundan gelen istekleri dinleyen basit bir Express sunucusu ba\u015flat\u0131r.<\/p>\n<h3>Uygulamay\u0131 Yerel Olarak Test Etme<\/h3>\n<p>Uygulaman\u0131n do\u011fru \u00e7al\u0131\u015ft\u0131\u011f\u0131ndan emin olmak i\u00e7in yerel olarak \u00e7al\u0131\u015ft\u0131r\u0131n:<\/p>\n<pre><code class=\"language-bash\">node index.js<\/code><\/pre>\n<p>Taray\u0131c\u0131n\u0131zda <code>http:\/\/localhost:3000<\/code> adresine giderek &#8220;Merhaba, Kubernetes! Uygulama v1.0&#8221; mesaj\u0131n\u0131 g\u00f6rmelisiniz.<\/p>\n<h2>Uygulamay\u0131 Konteynerize Etme (Docker)<\/h2>\n<p>Uygulamam\u0131z\u0131 Kubernetes&#8217;e da\u011f\u0131tmadan \u00f6nce, onu bir Docker imaj\u0131na d\u00f6n\u00fc\u015ft\u00fcrmemiz gerekir. Bu, uygulaman\u0131n t\u00fcm ba\u011f\u0131ml\u0131l\u0131klar\u0131 ve \u00e7al\u0131\u015fma zaman\u0131 ortam\u0131yla birlikte ta\u015f\u0131nabilir ve izole bir paket haline gelmesini sa\u011flar.<\/p>\n<h3>Dockerfile Olu\u015fturma<\/h3>\n<p>Uygulama dizininizin k\u00f6k\u00fcnde <code>Dockerfile<\/code> ad\u0131nda bir dosya olu\u015fturun ve i\u00e7ine a\u015fa\u011f\u0131daki i\u00e7eri\u011fi ekleyin:<\/p>\n<pre><code class=\"language-dockerfile\"># Node.js uygulamas\u0131n\u0131 \u00e7al\u0131\u015ft\u0131rmak i\u00e7in temel imaj\u0131 belirle\nFROM node:16-alpine\n\n<h2>Uygulama kaynak kodunun kopyalanaca\u011f\u0131 \u00e7al\u0131\u015fma dizinini belirle<\/h2>\nWORKDIR \/app\n\n<h2>package.json ve package-lock.json dosyalar\u0131n\u0131 kopyala<\/h2>\n<h2>Bu ad\u0131m, ba\u011f\u0131ml\u0131l\u0131klar\u0131n \u00f6nbelle\u011fe al\u0131nmas\u0131n\u0131 sa\u011flar<\/h2>\nCOPY package*.json .\/\n\n<h2>Ba\u011f\u0131ml\u0131l\u0131klar\u0131 y\u00fckle<\/h2>\nRUN npm install\n\n<h2>Uygulama kaynak kodunu kopyala<\/h2>\nCOPY . .\n\n<h2>Uygulaman\u0131n dinleyece\u011fi portu belirt<\/h2>\nEXPOSE 3000\n\n<h2>Uygulamay\u0131 ba\u015flatma komutunu belirle<\/h2>\nCMD [\"node\", \"index.js\"]<\/code><\/pre>\n<p>Bu <code>Dockerfile<\/code>, \u00e7ok a\u015famal\u0131 bir derleme (multi-stage build) olmasa da, \u00e7o\u011fu Node.js uygulamas\u0131 i\u00e7in iyi bir ba\u015flang\u0131\u00e7 noktas\u0131d\u0131r. <code>node:16-alpine<\/code> imaj\u0131, k\u00fc\u00e7\u00fck boyutu nedeniyle tercih edilmi\u015ftir.<\/p>\n<p>Ayr\u0131ca, Docker imaj\u0131na dahil etmek istemedi\u011finiz dosyalar\u0131 belirtmek i\u00e7in <code>.dockerignore<\/code> ad\u0131nda bir dosya olu\u015fturun:<\/p>\n<pre><code class=\"language-\">node_modules\nnpm-debug.log\n.git\n.gitignore\nDockerfile\nREADME.md<\/code><\/pre>\n<p>Bu, imaj boyutunu k\u00fc\u00e7\u00fcltmeye ve gereksiz dosyalar\u0131n imaja dahil edilmesini \u00f6nlemeye yard\u0131mc\u0131 olur.<\/p>\n<h3>Docker \u0130maj\u0131n\u0131 Olu\u015fturma ve Test Etme<\/h3>\n<p>\u015eimdi Docker imaj\u0131n\u0131 olu\u015ftural\u0131m ve yerel olarak test edelim:<\/p>\n<pre><code class=\"language-bash\">docker build -t nodejs-app-kubernetes .<\/code><\/pre>\n<p>\u0130maj ba\u015far\u0131yla olu\u015fturulduktan sonra, bir konteyner olarak \u00e7al\u0131\u015ft\u0131r\u0131n:<\/p>\n<pre><code class=\"language-bash\">docker run -p 3000:3000 nodejs-app-kubernetes<\/code><\/pre>\n<p>Taray\u0131c\u0131n\u0131zda tekrar <code>http:\/\/localhost:3000<\/code> adresine giderek uygulaman\u0131n Docker konteyneri i\u00e7inde \u00e7al\u0131\u015ft\u0131\u011f\u0131n\u0131 do\u011frulayabilirsiniz.<\/p>\n<h2>DigitalOcean Kubernetes K\u00fcmesi Kurulumu<\/h2>\n<p>Uygulamam\u0131z konteynerize edildi\u011fine g\u00f6re, onu da\u011f\u0131taca\u011f\u0131m\u0131z Kubernetes k\u00fcmesini DigitalOcean \u00fczerinde olu\u015ftural\u0131m.<\/p>\n<h3>DigitalOcean Hesab\u0131 ve Projesi<\/h3>\n<p>DigitalOcean hesab\u0131n\u0131za giri\u015f yap\u0131n. E\u011fer birden fazla projeniz varsa, bu k\u00fcme i\u00e7in yeni bir proje olu\u015fturabilir veya mevcut bir projeyi kullanabilirsiniz. Projeler, kaynaklar\u0131n\u0131z\u0131 d\u00fczenlemenize yard\u0131mc\u0131 olur.<\/p>\n<h3>Kubernetes K\u00fcmesi Olu\u015fturma<\/h3>\n<p>DigitalOcean kontrol panelinde sol men\u00fcden &#8220;Kubernetes&#8221; se\u00e7ene\u011fine t\u0131klay\u0131n ve &#8220;Create a Kubernetes Cluster&#8221; d\u00fc\u011fmesine bas\u0131n.<br \/>\n*   <strong>Choose a datacenter region:<\/strong> Uygulaman\u0131z\u0131n hedef kitlesine en yak\u0131n b\u00f6lgeyi se\u00e7in (\u00f6rne\u011fin, Frankfurt, London, New York).<br \/>\n*   <strong>Choose a Kubernetes version:<\/strong> En son kararl\u0131 s\u00fcr\u00fcm\u00fc se\u00e7in.<br \/>\n*   <strong>Add node pools:<\/strong> D\u00fc\u011f\u00fcm havuzlar\u0131, k\u00fcmenizin fiziksel sunucular\u0131n\u0131 (Droplets) temsil eder.<br \/>\n    *   <strong>Node plan:<\/strong> Geli\u015ftirme veya k\u00fc\u00e7\u00fck uygulamalar i\u00e7in &#8220;Basic&#8221; plan yeterli olabilir. \u00dcretim ortamlar\u0131 i\u00e7in daha g\u00fc\u00e7l\u00fc makineler se\u00e7melisiniz. \u00d6rne\u011fin, &#8220;s-2vcpu-4gb&#8221; plan\u0131n\u0131 se\u00e7ebiliriz.<br \/>\n    *   <strong>Nodes:<\/strong> Ba\u015flang\u0131\u00e7 i\u00e7in 2 veya 3 d\u00fc\u011f\u00fcm yeterli olacakt\u0131r. Y\u00fcksek eri\u015filebilirlik i\u00e7in en az 2 d\u00fc\u011f\u00fcm \u00f6nerilir.<br \/>\n*   <strong>Choose a name:<\/strong> K\u00fcmeniz i\u00e7in a\u00e7\u0131klay\u0131c\u0131 bir ad verin (\u00f6rne\u011fin, <code>nodejs-prod-cluster<\/code>).<br \/>\n*   <strong>Choose a project:<\/strong> K\u00fcmenizi ilgili bir projeye atay\u0131n.<\/p>\n<p>&#8220;Create Cluster&#8221; d\u00fc\u011fmesine t\u0131klad\u0131ktan sonra, k\u00fcmenizin olu\u015fturulmas\u0131 birka\u00e7 dakika s\u00fcrecektir.<\/p>\n<h3>Kubectl Yap\u0131land\u0131rmas\u0131<\/h3>\n<p>K\u00fcme olu\u015fturulduktan sonra, DigitalOcean kontrol panelinden k\u00fcmenizin detay sayfas\u0131na gidin. Burada &#8220;Actions&#8221; men\u00fcs\u00fcnden &#8220;Download Config File&#8221; se\u00e7ene\u011fini g\u00f6receksiniz. Bu dosyay\u0131 indirin veya daha iyisi, <code>doctl<\/code> komut sat\u0131r\u0131 arac\u0131n\u0131 kullanarak yap\u0131land\u0131rmay\u0131 otomatik olarak kaydedin.<\/p>\n<p><code>doctl<\/code> arac\u0131n\u0131 hen\u00fcz y\u00fcklemediyseniz, DigitalOcean dok\u00fcmantasyonundan kurulum talimatlar\u0131n\u0131 takip edin. Y\u00fcklendikten sonra, DigitalOcean API token&#8217;\u0131n\u0131zla kimlik do\u011frulamas\u0131 yap\u0131n:<\/p>\n<pre><code class=\"language-bash\">doctl auth init<\/code><\/pre>\n<p>Ard\u0131ndan, k\u00fcmenizin yap\u0131land\u0131rmas\u0131n\u0131 yerel <code>kubeconfig<\/code> dosyan\u0131za kaydedin. K\u00fcme ad\u0131n\u0131z\u0131 veya ID&#8217;nizi kullanabilirsiniz:<\/p>\n<pre><code class=\"language-bash\">doctl kubernetes cluster kubeconfig save <k\u00fcme-ad\u0131-veya-id><\/code><\/pre>\n<p>\u00d6rne\u011fin:<\/p>\n<pre><code class=\"language-bash\">doctl kubernetes cluster kubeconfig save nodejs-prod-cluster<\/code><\/pre>\n<p>Bu komut, <code>~\/.kube\/config<\/code> dosyan\u0131za k\u00fcmenizin kimlik do\u011frulama bilgilerini ekleyecektir.<\/p>\n<p>Ba\u011flant\u0131y\u0131 test etmek i\u00e7in:<\/p>\n<pre><code class=\"language-bash\">kubectl get nodes<\/code><\/pre>\n<p>K\u00fcmenizdeki d\u00fc\u011f\u00fcmleri listeledi\u011fini g\u00f6rmelisiniz.<\/p>\n<h2>Kubernetes Da\u011f\u0131t\u0131m Dosyalar\u0131 Olu\u015fturma<\/h2>\n<p>Uygulamam\u0131z\u0131 Kubernetes&#8217;e da\u011f\u0131tmak i\u00e7in iki temel Kubernetes kayna\u011f\u0131na ihtiyac\u0131m\u0131z var: bir <code>Deployment<\/code> ve bir <code>Service<\/code>.<\/p>\n<h3>Deployment Tan\u0131m\u0131<\/h3>\n<p><code>deployment.yaml<\/code> ad\u0131nda bir dosya olu\u015fturun:<\/p>\n<pre><code class=\"language-yaml\">apiVersion: apps\/v1\nkind: Deployment\nmetadata:\n  name: nodejs-app-deployment\n  labels:\n    app: nodejs-app\nspec:\n  replicas: 3 # Uygulaman\u0131n 3 kopyas\u0131n\u0131 \u00e7al\u0131\u015ft\u0131r\n  selector:\n    matchLabels:\n      app: nodejs-app\n  template:\n    metadata:\n      labels:\n        app: nodejs-app\n    spec:\n      containers:\n      - name: nodejs-app-container\n        image: your_docker_registry\/nodejs-app-kubernetes:latest # Docker imaj\u0131n\u0131z\u0131n yolu\n        ports:\n        - containerPort: 3000\n        resources:\n          limits:\n            memory: \"128Mi\"\n            cpu: \"500m\"\n          requests:\n            memory: \"64Mi\"\n            cpu: \"250m\"\n        livenessProbe: # Uygulaman\u0131n canl\u0131 olup olmad\u0131\u011f\u0131n\u0131 kontrol eder\n          httpGet:\n            path: \/\n            port: 3000\n          initialDelaySeconds: 5\n          periodSeconds: 5\n        readinessProbe: # Uygulaman\u0131n trafi\u011fi kabul etmeye haz\u0131r olup olmad\u0131\u011f\u0131n\u0131 kontrol eder\n          httpGet:\n            path: \/\n            port: 3000\n          initialDelaySeconds: 10\n          periodSeconds: 10<\/code><\/pre>\n<p>*   <code>apiVersion<\/code> ve <code>kind<\/code>: Kaynak t\u00fcr\u00fcn\u00fc belirtir (<code>Deployment<\/code>).<br \/>\n*   <code>metadata<\/code>: Da\u011f\u0131t\u0131m\u0131n ad\u0131 ve etiketleri.<br \/>\n*   <code>spec.replicas<\/code>: Uygulaman\u0131z\u0131n ka\u00e7 kopyas\u0131n\u0131n \u00e7al\u0131\u015faca\u011f\u0131n\u0131 belirtir. Y\u00fcksek eri\u015filebilirlik ve y\u00fck dengeleme i\u00e7in birden fazla kopya \u00f6nerilir.<br \/>\n*   <code>spec.selector<\/code>: Bu Deployment&#8217;\u0131n hangi Pod&#8217;lar\u0131 y\u00f6netece\u011fini belirler.<br \/>\n*   <code>spec.template<\/code>: Pod \u015fablonu.<br \/>\n    *   <code>metadata.labels<\/code>: Pod&#8217;a atanacak etiketler.<br \/>\n    *   <code>spec.containers<\/code>: Pod i\u00e7inde \u00e7al\u0131\u015facak konteynerlerin listesi.<br \/>\n        *   <code>name<\/code>: Konteynerin ad\u0131.<br \/>\n        *   <code>image<\/code>: Docker imaj\u0131n\u0131z\u0131n tam yolu. Buraya DigitalOcean Container Registry veya Docker Hub&#8217;daki imaj\u0131n\u0131z\u0131n yolunu yazacaks\u0131n\u0131z. \u00d6rne\u011fin, <code>registry.digitalocean.com\/my-registry\/nodejs-app-kubernetes:latest<\/code>.<br \/>\n        *   <code>ports<\/code>: Konteynerin a\u00e7\u0131\u011fa \u00e7\u0131kard\u0131\u011f\u0131 portlar.<br \/>\n        *   <code>resources<\/code>: Konteynerin kullanabilece\u011fi CPU ve bellek kaynaklar\u0131n\u0131n limitlerini ve isteklerini belirler. Bu, k\u00fcmenizin kaynaklar\u0131n\u0131 verimli kullanmak i\u00e7in \u00f6nemlidir.<br \/>\n        *   <code>livenessProbe<\/code> ve <code>readinessProbe<\/code>: Kubernetes&#8217;in uygulaman\u0131z\u0131n sa\u011fl\u0131\u011f\u0131n\u0131 ve trafi\u011fi kabul etmeye haz\u0131r olup olmad\u0131\u011f\u0131n\u0131 kontrol etmesini sa\u011flar. Bu, uygulaman\u0131z\u0131n istikrarl\u0131 \u00e7al\u0131\u015fmas\u0131 i\u00e7in kritik \u00f6neme sahiptir.<\/p>\n<h3>Service Tan\u0131m\u0131<\/h3>\n<p><code>service.yaml<\/code> ad\u0131nda bir dosya olu\u015fturun:<\/p>\n<pre><code class=\"language-yaml\">apiVersion: v1\nkind: Service\nmetadata:\n  name: nodejs-app-service\nspec:\n  selector:\n    app: nodejs-app # Bu servis, 'app: nodejs-app' etiketine sahip Pod'lar\u0131 hedefleyecek\n  ports:\n    - protocol: TCP\n      port: 80 # Servisin d\u0131\u015far\u0131dan dinleyece\u011fi port\n      targetPort: 3000 # Pod'un dinledi\u011fi port\n  type: LoadBalancer # D\u0131\u015far\u0131dan eri\u015filebilir bir LoadBalancer olu\u015ftur<\/code><\/pre>\n<p>*   <code>apiVersion<\/code> ve <code>kind<\/code>: Kaynak t\u00fcr\u00fcn\u00fc belirtir (<code>Service<\/code>).<br \/>\n*   <code>metadata<\/code>: Servisin ad\u0131.<br \/>\n*   <code>spec.selector<\/code>: Bu servisin trafi\u011fi y\u00f6nlendirece\u011fi Pod&#8217;lar\u0131 belirler. <code>Deployment<\/code>&#8216;taki etiketle e\u015fle\u015fmelidir.<br \/>\n*   <code>spec.ports<\/code>: Servisin dinleyece\u011fi portlar ve bu portlardan gelen trafi\u011fin Pod&#8217;lardaki hangi portlara y\u00f6nlendirilece\u011fi.<br \/>\n*   <code>type: LoadBalancer<\/code>: DigitalOcean&#8217;da otomatik olarak bir Y\u00fck Dengeleyici (Load Balancer) olu\u015fturur ve uygulaman\u0131z\u0131 internet \u00fczerinden eri\u015filebilir hale getirir. Alternatif olarak, k\u00fcme i\u00e7i ileti\u015fim i\u00e7in <code>ClusterIP<\/code> veya d\u00fc\u011f\u00fcm portu \u00fczerinden eri\u015fim i\u00e7in <code>NodePort<\/code> kullan\u0131labilir.<\/p>\n<p><strong>\u00d6nemli:<\/strong> <code>your_docker_registry\/nodejs-app-kubernetes:latest<\/code> k\u0131sm\u0131n\u0131 kendi Docker kay\u0131t defterinizdeki imaj\u0131n\u0131z\u0131n tam yolu ile de\u011fi\u015ftirmelisiniz. Bu genellikle <code>registry.digitalocean.com\/<your-registry-name>\/nodejs-app-kubernetes:latest<\/code> veya <code>docker.io\/<your-dockerhub-username>\/nodejs-app-kubernetes:latest<\/code> \u015feklinde olacakt\u0131r.<\/p>\n<h3>Uygulamay\u0131 Kubernetes&#8217;e Da\u011f\u0131tma (Manuel Test)<\/h3>\n<p>CI\/CD hatt\u0131n\u0131 kurmadan \u00f6nce, bu dosyalar\u0131 manuel olarak uygulayarak her \u015feyin beklendi\u011fi gibi \u00e7al\u0131\u015ft\u0131\u011f\u0131ndan emin olabilirsiniz:<\/p>\n<pre><code class=\"language-bash\">kubectl apply -f deployment.yaml\nkubectl apply -f service.yaml<\/code><\/pre>\n<p>Da\u011f\u0131t\u0131m\u0131n durumunu kontrol edin:<\/p>\n<pre><code class=\"language-bash\">kubectl get pods\nkubectl get svc<\/code><\/pre>\n<p><code>kubectl get svc<\/code> \u00e7\u0131kt\u0131s\u0131nda <code>nodejs-app-service<\/code> i\u00e7in bir <code>EXTERNAL-IP<\/code> atand\u0131\u011f\u0131n\u0131 g\u00f6receksiniz. Bu IP adresini taray\u0131c\u0131n\u0131zda a\u00e7arak uygulaman\u0131z\u0131n Kubernetes \u00fczerinde \u00e7al\u0131\u015ft\u0131\u011f\u0131n\u0131 do\u011frulayabilirsiniz.<\/p>\n<h2>S\u00fcrekli Entegrasyon ve Da\u011f\u0131t\u0131m (CI\/CD) i\u00e7in Semaphore Kullan\u0131m\u0131<\/h2>\n<p>\u015eimdi s\u0131ra geldi uygulaman\u0131n otomatik olarak derlenmesi, test edilmesi ve DigitalOcean Kubernetes k\u00fcmesine da\u011f\u0131t\u0131lmas\u0131 i\u00e7in bir CI\/CD hatt\u0131 olu\u015fturmaya. Bunun i\u00e7in Semaphore CI\/CD&#8217;yi kullanaca\u011f\u0131z.<\/p>\n<h3>Semaphore&#8217;a Giri\u015f<\/h3>\n<p>Semaphore, h\u0131zl\u0131 ve g\u00fcvenilir CI\/CD s\u00fcre\u00e7leri sunan, bulut tabanl\u0131 bir platformdur. \u00d6zellikle Docker ve Kubernetes entegrasyonlar\u0131 sayesinde modern bulut uygulamalar\u0131 i\u00e7in ideal bir \u00e7\u00f6z\u00fcmd\u00fcr. Semaphore&#8217;un h\u0131z\u0131, esnekli\u011fi ve kolay yap\u0131land\u0131r\u0131labilirli\u011fi, geli\u015ftirme s\u00fcre\u00e7lerini \u00f6nemli \u00f6l\u00e7\u00fcde h\u0131zland\u0131r\u0131r.<\/p>\n<h3>Proje Olu\u015fturma ve GitHub Ba\u011flant\u0131s\u0131<\/h3>\n<p>1.  <strong>Semaphore Hesab\u0131 Olu\u015fturma:<\/strong> <code>semaphoreci.com<\/code> adresine gidin ve GitHub, GitLab veya Bitbucket hesab\u0131n\u0131zla kaydolun.<br \/>\n2.  <strong>Yeni Proje Olu\u015fturma:<\/strong> Semaphore kontrol panelinde &#8220;Create New Project&#8221; d\u00fc\u011fmesine t\u0131klay\u0131n.<br \/>\n3.  <strong>Depo Se\u00e7imi:<\/strong> Uygulama kodunuzu i\u00e7eren Git deposunu (GitHub, GitLab, Bitbucket) se\u00e7in. Semaphore, deponuzu otomatik olarak tarayacak ve bir ba\u015flang\u0131\u00e7 yap\u0131land\u0131rmas\u0131 \u00f6nerecektir.<\/p>\n<h3>Semaphore Yap\u0131land\u0131rma Dosyas\u0131: <code>.semaphore\/semaphore.yml<\/code><\/h3>\n<p>Semaphore, CI\/CD hatt\u0131n\u0131z\u0131 <code>.semaphore\/semaphore.yml<\/code> ad\u0131nda bir YAML dosyas\u0131 arac\u0131l\u0131\u011f\u0131yla yap\u0131land\u0131r\u0131r. Bu dosyay\u0131 projenizin k\u00f6k dizininde olu\u015fturun.<\/p>\n<pre><code class=\"language-yaml\">version: v1.0\nname: Node.js Kubernetes Da\u011f\u0131t\u0131m\u0131\n\n<h2>Semaphore'un CI\/CD i\u015flemlerini y\u00fcr\u00fctece\u011fi makineyi tan\u0131mlar<\/h2>\nagent:\n  machine:\n    type: e1-standard-2 # Daha h\u0131zl\u0131 bir makine tipi se\u00e7ilebilir\n    os_image: ubuntu1804 # Ubuntu 18.04 imaj\u0131\n\n<h2>Global ortam de\u011fi\u015fkenleri<\/h2>\n<h2>Bu de\u011fi\u015fkenler t\u00fcm bloklarda kullan\u0131labilir<\/h2>\nenv_vars:\n  - name: DOCKER_IMAGE_NAME\n    value: registry.digitalocean.com\/<your-registry-name>\/nodejs-app-kubernetes # DigitalOcean Container Registry yolunuz\n  - name: KUBERNETES_CLUSTER_NAME\n    value: nodejs-prod-cluster # DigitalOcean Kubernetes k\u00fcmenizin ad\u0131\n  - name: KUBERNETES_DEPLOYMENT_NAME\n    value: nodejs-app-deployment\n  - name: KUBERNETES_CONTAINER_NAME\n    value: nodejs-app-container\n\n<h2>Pipeline'\u0131 olu\u015fturan bloklar<\/h2>\nblocks:\n  - name: Ba\u011f\u0131ml\u0131l\u0131klar\u0131 Kur ve Test Et\n    task:\n      jobs:\n        - name: Kurulum ve Test\n          commands:\n            - checkout # Git deposunu kopyala\n            - cache restore # \u00d6nbelle\u011fi geri y\u00fckle (node_modules i\u00e7in)\n            - npm install # Ba\u011f\u0131ml\u0131l\u0131klar\u0131 y\u00fckle\n            - cache store # \u00d6nbelle\u011fi kaydet\n            - npm test # Uygulama testlerini \u00e7al\u0131\u015ft\u0131r (e\u011fer varsa)\n\n  - name: Docker \u0130maj\u0131n\u0131 Olu\u015ftur ve Kay\u0131t Defterine G\u00f6nder\n    task:\n      env_vars:\n        - name: DOCKER_TAG\n          value: ${SEMAPHORE_GIT_SHA} # Git commit SHA's\u0131n\u0131 etiket olarak kullan\n      jobs:\n        - name: Docker \u0130\u015flemleri\n          commands:\n            # DigitalOcean Container Registry'ye giri\u015f yap\n            # DOCKER_USERNAME ve DOCKER_PASSWORD Semaphore Secrets olarak tan\u0131mlanmal\u0131\n            - echo \"${DOCKER_PASSWORD}\" | docker login -u \"${DOCKER_USERNAME}\" --password-stdin ${DOCKER_IMAGE_NAME%%\/*}\n            - docker build -t ${DOCKER_IMAGE_NAME}:${DOCKER_TAG} .\n            - docker push ${DOCKER_IMAGE_NAME}:${DOCKER_TAG}\n\n  - name: Kubernetes'e Da\u011f\u0131t\n    task:\n      jobs:\n        - name: Da\u011f\u0131t\u0131m\n          commands:\n            # DigitalOcean CLI (doctl) kurulumu ve kimlik do\u011frulama\n            - checkout\n            - curl -sL https:\/\/github.com\/digitalocean\/doctl\/releases\/download\/v1.73.0\/doctl-1.73.0-linux-amd64.tar.gz | tar -xzv\n            - sudo mv doctl \/usr\/local\/bin\n            # DigitalOcean API token'\u0131 kullanarak kimlik do\u011frulamas\u0131 yap\n            # DO_API_TOKEN Semaphore Secret olarak tan\u0131mlanmal\u0131\n            - doctl auth init -t \"${DO_API_TOKEN}\"\n            \n            # Kubernetes k\u00fcmesi yap\u0131land\u0131rmas\u0131n\u0131 al\n            - doctl kubernetes cluster kubeconfig save ${KUBERNETES_CLUSTER_NAME} --kubeconfig $SEMAPHORE_KUBECONFIG_PATH\n            - export KUBECONFIG=$SEMAPHORE_KUBECONFIG_PATH\n            - kubectl config use-context do-fra1-${KUBERNETES_CLUSTER_NAME} # K\u00fcme ba\u011flam\u0131n\u0131 kullan (b\u00f6lgeye dikkat)\n\n            # Kubernetes Deployment'\u0131n\u0131 g\u00fcncelle\n            # Yeni Docker imaj\u0131 etiketi ile konteyneri g\u00fcncelle\n            - kubectl set image deployment\/${KUBERNETES_DEPLOYMENT_NAME} ${KUBERNETES_CONTAINER_NAME}=${DOCKER_IMAGE_NAME}:${DOCKER_TAG}\n            - kubectl rollout status deployment\/${KUBERNETES_DEPLOYMENT_NAME} # Da\u011f\u0131t\u0131m\u0131n tamamlanmas\u0131n\u0131 bekle<\/code><\/pre>\n<p><strong>Yap\u0131land\u0131rma Dosyas\u0131 A\u00e7\u0131klamas\u0131:<\/strong><\/p>\n<p>1.  <strong><code>agent<\/code>:<\/strong> CI\/CD i\u015flerinin \u00e7al\u0131\u015faca\u011f\u0131 sanal makineyi tan\u0131mlar. <code>e1-standard-2<\/code> daha iyi performans sunar.<br \/>\n2.  <strong><code>env_vars<\/code>:<\/strong> Pipeline genelinde kullan\u0131lacak ortam de\u011fi\u015fkenlerini tan\u0131mlar. <code>DOCKER_IMAGE_NAME<\/code> k\u0131sm\u0131n\u0131 kendi DigitalOcean Container Registry ad\u0131n\u0131zla g\u00fcncellemeyi unutmay\u0131n. E\u011fer Docker Hub kullan\u0131yorsan\u0131z, <code>docker.io\/<your-dockerhub-username>\/nodejs-app-kubernetes<\/code> \u015feklinde olmal\u0131d\u0131r.<br \/>\n3.  <strong><code>blocks<\/code>:<\/strong> Pipeline&#8217;\u0131 mant\u0131ksal a\u015famalara b\u00f6ler.<\/p>\n<p>    *   <strong>Block 1: Ba\u011f\u0131ml\u0131l\u0131klar\u0131 Kur ve Test Et<\/strong><br \/>\n        *   <code>checkout<\/code>: Git deposunu Semaphore \u00e7al\u0131\u015fma dizinine kopyalar.<br \/>\n        *   <code>cache restore<\/code> ve <code>cache store<\/code>: <code>node_modules<\/code> dizinini \u00f6nbelle\u011fe alarak sonraki derlemelerde ba\u011f\u0131ml\u0131l\u0131klar\u0131n tekrar indirilmesini engeller, bu da s\u00fcreyi k\u0131salt\u0131r.<br \/>\n        *   <code>npm install<\/code>: Node.js ba\u011f\u0131ml\u0131l\u0131klar\u0131n\u0131 y\u00fckler.<br \/>\n        *   <code>npm test<\/code>: Uygulaman\u0131n testlerini \u00e7al\u0131\u015ft\u0131r\u0131r (e\u011fer <code>package.json<\/code> i\u00e7inde tan\u0131ml\u0131ysa).<\/p>\n<p>    *   <strong>Block 2: Docker \u0130maj\u0131n\u0131 Olu\u015ftur ve Kay\u0131t Defterine G\u00f6nder<\/strong><br \/>\n        *   <code>DOCKER_TAG<\/code>: Git commit&#8217;inin SHA&#8217;s\u0131n\u0131 Docker imaj etiketi olarak kullan\u0131r\u0131z. Bu, her da\u011f\u0131t\u0131m\u0131n benzersiz bir versiyona sahip olmas\u0131n\u0131 sa\u011flar.<br \/>\n        *   <code>docker login<\/code>: DigitalOcean Container Registry (veya Docker Hub) kimlik do\u011frulamas\u0131 yapar. <code>DOCKER_USERNAME<\/code> ve <code>DOCKER_PASSWORD<\/code> g\u00fcvenli bir \u015fekilde Semaphore Secrets olarak saklanmal\u0131d\u0131r (a\u015fa\u011f\u0131ya bak\u0131n\u0131z).<br \/>\n        *   <code>docker build<\/code>: Docker imaj\u0131n\u0131 olu\u015fturur.<br \/>\n        *   <code>docker push<\/code>: Olu\u015fturulan imaj\u0131 kay\u0131t defterine g\u00f6nderir.<\/p>\n<p>    *   <strong>Block 3: Kubernetes&#8217;e Da\u011f\u0131t<\/strong><br \/>\n        *   <code>doctl<\/code> kurulumu ve kimlik do\u011frulama: Semaphore \u00e7al\u0131\u015fma ortam\u0131na <code>doctl<\/code> komut sat\u0131r\u0131 arac\u0131n\u0131 indirir ve DigitalOcean API token&#8217;\u0131 ile kimlik do\u011frulamas\u0131 yapar. <code>DO_API_TOKEN<\/code> da Semaphore Secret olarak saklanmal\u0131d\u0131r.<br \/>\n        *   <code>doctl kubernetes cluster kubeconfig save<\/code>: Kubernetes k\u00fcmesi yap\u0131land\u0131rmas\u0131n\u0131 indirir ve Semaphore&#8217;un ge\u00e7ici <code>kubeconfig<\/code> dosyas\u0131na kaydeder.<br \/>\n        *   <code>kubectl config use-context<\/code>: Kubernetes k\u00fcmesi ba\u011flam\u0131n\u0131 ayarlar. K\u00fcme ad\u0131n\u0131z ve b\u00f6lgenize g\u00f6re (<code>do-<region>-<cluster-name><\/code>) ba\u011flam ad\u0131 de\u011fi\u015febilir.<br \/>\n        *   <code>kubectl set image<\/code>: Kubernetes Deployment&#8217;\u0131n\u0131zdaki konteynerin imaj\u0131n\u0131 yeni olu\u015fturulan ve kay\u0131t defterine g\u00f6nderilen imaj etiketiyle g\u00fcnceller. Bu, Kubernetes&#8217;in yeni Pod&#8217;lar\u0131 eski Pod&#8217;larla de\u011fi\u015ftirerek uygulaman\u0131z\u0131 g\u00fcncellemeyi tetikler (Rolling Update).<br \/>\n        *   <code>kubectl rollout status<\/code>: Da\u011f\u0131t\u0131m\u0131n ba\u015far\u0131l\u0131 bir \u015fekilde tamamlanmas\u0131n\u0131 bekler.<\/p>\n<h3>Semaphore Secrets Olu\u015fturma<\/h3>\n<p>G\u00fcvenlik nedeniyle hassas bilgileri (API token&#8217;lar\u0131, \u015fifreler) do\u011frudan <code>.semaphore\/semaphore.yml<\/code> dosyas\u0131na yazmamal\u0131y\u0131z. Bunun yerine Semaphore Secrets kullanmal\u0131y\u0131z.<\/p>\n<p>1.  Semaphore kontrol panelinde projenizi se\u00e7in.<br \/>\n2.  Sol men\u00fcden &#8220;Configuration&#8221; -> &#8220;Secrets&#8221; se\u00e7ene\u011fine gidin.<br \/>\n3.  &#8220;Create New Secret&#8221; d\u00fc\u011fmesine t\u0131klay\u0131n ve a\u015fa\u011f\u0131daki s\u0131rlar\u0131 olu\u015fturun:<br \/>\n    *   <strong><code>DO_API_TOKEN<\/code><\/strong>:<br \/>\n        *   Name: <code>digitalocean-api-token<\/code><br \/>\n        *   Environment variable: <code>DO_API_TOKEN<\/code><br \/>\n        *   Value: DigitalOcean API token&#8217;\u0131n\u0131z.<br \/>\n    *   <strong><code>DOCKER_USERNAME<\/code><\/strong>:<br \/>\n        *   Name: <code>docker-credentials<\/code><br \/>\n        *   Environment variable: <code>DOCKER_USERNAME<\/code><br \/>\n        *   Value: DigitalOcean Container Registry kullan\u0131c\u0131 ad\u0131n\u0131z (bu genellikle DigitalOcean hesap e-posta adresinizdir) veya Docker Hub kullan\u0131c\u0131 ad\u0131n\u0131z.<br \/>\n    *   <strong><code>DOCKER_PASSWORD<\/code><\/strong>:<br \/>\n        *   Name: <code>docker-credentials<\/code> (ayn\u0131 s\u0131r ad\u0131 alt\u0131nda)<br \/>\n        *   Environment variable: <code>DOCKER_PASSWORD<\/code><br \/>\n        *   Value: DigitalOcean Container Registry \u015fifreniz (bu genellikle DigitalOcean API token&#8217;\u0131n\u0131zd\u0131r) veya Docker Hub \u015fifreniz.<\/p>\n<p>Bu s\u0131rlar\u0131 olu\u015fturduktan sonra, <code>.semaphore\/semaphore.yml<\/code> dosyan\u0131zdaki <code>blocks<\/code> k\u0131sm\u0131n\u0131n alt\u0131nda <code>secrets<\/code> b\u00f6l\u00fcm\u00fcn\u00fc ekleyerek bu s\u0131rlar\u0131 pipeline&#8217;\u0131n\u0131za ba\u011flaman\u0131z gerekir:<\/p>\n<pre><code class=\"language-yaml\"># ... di\u011fer k\u0131s\u0131mlar ...\n\nblocks:\n  - name: Ba\u011f\u0131ml\u0131l\u0131klar\u0131 Kur ve Test Et\n    task:\n      jobs:\n        - name: Kurulum ve Test\n          commands:\n            # ... commands ...\n\n  - name: Docker \u0130maj\u0131n\u0131 Olu\u015ftur ve Kay\u0131t Defterine G\u00f6nder\n    task:\n      secrets:\n        - name: docker-credentials # Olu\u015fturdu\u011funuz secret'\u0131n ad\u0131\n      env_vars:\n        - name: DOCKER_TAG\n          value: ${SEMAPHORE_GIT_SHA}\n      jobs:\n        - name: Docker \u0130\u015flemleri\n          commands:\n            # ... commands ...\n\n  - name: Kubernetes'e Da\u011f\u0131t\n    task:\n      secrets:\n        - name: digitalocean-api-token # Olu\u015fturdu\u011funuz secret'\u0131n ad\u0131\n      jobs:\n        - name: Da\u011f\u0131t\u0131m\n          commands:\n            # ... commands ...<\/code><\/pre>\n<p>Bu de\u011fi\u015fiklikleri yapt\u0131ktan sonra, <code>.semaphore\/semaphore.yml<\/code> dosyan\u0131z\u0131 ve di\u011fer t\u00fcm uygulama dosyalar\u0131n\u0131 Git deponuza commit edin ve push edin. Semaphore otomatik olarak bir pipeline \u00e7al\u0131\u015ft\u0131rmas\u0131 ba\u015flatacakt\u0131r.<\/p>\n<p>Her ba\u015far\u0131l\u0131 <code>git push<\/code> i\u015flemi, Semaphore&#8217;da otomatik olarak yeni bir derleme ve da\u011f\u0131t\u0131m tetikleyecektir. Pipeline&#8217;\u0131n\u0131z\u0131n durumunu Semaphore kontrol panelinden izleyebilirsiniz.<\/p>\n<h2>G\u00fcvenlik ve En \u0130yi Uygulamalar<\/h2>\n<p>CI\/CD ve bulut ortamlar\u0131nda g\u00fcvenlik, her zaman \u00f6ncelikli olmal\u0131d\u0131r.<\/p>\n<p>*   <strong>Ortam De\u011fi\u015fkenlerinin G\u00fcvenli Kullan\u0131m\u0131 (Semaphore Secrets):<\/strong> Hassas bilgileri (API anahtarlar\u0131, \u015fifreler) asla do\u011frudan yap\u0131land\u0131rma dosyalar\u0131na yazmay\u0131n. Semaphore Secrets gibi mekanizmalar\u0131 kullanarak bu bilgileri \u015fifreli ve g\u00fcvenli bir \u015fekilde saklay\u0131n ve sadece yetkili i\u015flere eri\u015fim izni verin.<br \/>\n*   <strong>En D\u00fc\u015f\u00fck Ayr\u0131cal\u0131k \u0130lkesi (Least Privilege):<\/strong> DigitalOcean API token&#8217;\u0131n\u0131za ve Kubernetes Service Account&#8217;lar\u0131n\u0131za yaln\u0131zca g\u00f6revlerini yerine getirmek i\u00e7in kesinlikle gerekli olan minimum izinleri verin. \u00d6rne\u011fin, <code>doctl<\/code> i\u00e7in olu\u015fturdu\u011funuz token&#8217;a sadece Kubernetes k\u00fcmesi y\u00f6netimi ve Container Registry eri\u015fimi izinleri verin, di\u011fer hizmetlere eri\u015fimini k\u0131s\u0131tlay\u0131n.<br \/>\n*   <strong>Konteyner G\u00fcvenli\u011fi:<\/strong><br \/>\n    *   K\u00fc\u00e7\u00fck ve g\u00fcncel temel imajlar kullan\u0131n (\u00f6rn. <code>node:16-alpine<\/code>).<br \/>\n    *   Konteyner i\u00e7inde <code>root<\/code> kullan\u0131c\u0131s\u0131 olarak \u00e7al\u0131\u015fmaktan ka\u00e7\u0131n\u0131n. <code>USER node<\/code> gibi bir komut ekleyerek daha az yetkili bir kullan\u0131c\u0131yla \u00e7al\u0131\u015f\u0131n.<br \/>\n    *   Gereksiz ba\u011f\u0131ml\u0131l\u0131klar\u0131 ve ara\u00e7lar\u0131 imajdan kald\u0131r\u0131n.<br \/>\n    *   G\u00fcvenlik taray\u0131c\u0131lar\u0131 kullanarak imajlardaki bilinen g\u00fcvenlik a\u00e7\u0131klar\u0131n\u0131 d\u00fczenli olarak kontrol edin.<br \/>\n*   <strong>Sa\u011fl\u0131k Kontrolleri (Health Checks):<\/strong> Kubernetes <code>livenessProbe<\/code> ve <code>readinessProbe<\/code> kullanarak uygulaman\u0131z\u0131n sa\u011fl\u0131\u011f\u0131n\u0131 s\u00fcrekli izleyin. Bu, sorunlu Pod&#8217;lar\u0131n otomatik olarak yeniden ba\u015flat\u0131lmas\u0131n\u0131 veya trafikten \u00e7\u0131kar\u0131lmas\u0131n\u0131 sa\u011flar.<br \/>\n*   <strong>Geri Alma Stratejileri (Rollback):<\/strong> Bir da\u011f\u0131t\u0131m ba\u015far\u0131s\u0131z olursa veya sorunlara yol a\u00e7arsa, h\u0131zl\u0131ca \u00f6nceki kararl\u0131 bir s\u00fcr\u00fcme geri d\u00f6nebilmek i\u00e7in stratejileriniz olmal\u0131d\u0131r. Kubernetes <code>Deployment<\/code>&#8216;lar\u0131 otomatik olarak ge\u00e7mi\u015f s\u00fcr\u00fcmleri saklar ve <code>kubectl rollout undo<\/code> komutuyla geri alma imkan\u0131 sunar.<br \/>\n*   <strong>Yap\u0131land\u0131rma Y\u00f6netimi (ConfigMaps, Secrets):<\/strong> Uygulama yap\u0131land\u0131rmalar\u0131n\u0131 ve hassas verileri do\u011frudan imaj\u0131n i\u00e7ine g\u00f6mmek yerine Kubernetes <code>ConfigMaps<\/code> ve <code>Secrets<\/code> kullanarak y\u00f6netin. Bu, imajlar\u0131 yeniden derlemeden yap\u0131land\u0131rma de\u011fi\u015fiklikleri yapman\u0131za olanak tan\u0131r ve hassas verileri daha g\u00fcvenli tutar.<br \/>\n*   <strong>G\u00fcnl\u00fckleme ve \u0130zleme:<\/strong> Uygulaman\u0131z\u0131n ve k\u00fcmenizin performans\u0131n\u0131 ve sa\u011fl\u0131\u011f\u0131n\u0131 izlemek i\u00e7in Prometheus\/Grafana gibi ara\u00e7lar, g\u00fcnl\u00fckleri toplamak i\u00e7in ELK Stack (Elasticsearch, Logstash, Kibana) veya di\u011fer merkezi g\u00fcnl\u00fckleme \u00e7\u00f6z\u00fcmleri kurun.<\/p>\n<h2>Sonu\u00e7 ve Gelecek Ad\u0131mlar<\/h2>\n<p>Bu makalede, Node.js uygulamas\u0131n\u0131 DigitalOcean Kubernetes&#8217;e Semaphore CI\/CD kullanarak da\u011f\u0131tma s\u00fcrecini ad\u0131m ad\u0131m ele ald\u0131k. Basit bir Node.js uygulamas\u0131n\u0131 Docker ile konteynerize ettik, DigitalOcean \u00fczerinde bir Kubernetes k\u00fcmesi kurduk ve son olarak Semaphore CI\/CD hatt\u0131n\u0131 yap\u0131land\u0131rarak otomatik derleme, test ve da\u011f\u0131t\u0131m i\u015flemlerini otomatikle\u015ftirdik.<\/p>\n<p>Bu s\u00fcre\u00e7, modern yaz\u0131l\u0131m geli\u015ftirme pratiklerinin temel ta\u015flar\u0131n\u0131 olu\u015fturmaktad\u0131r:<br \/>\n*   <strong>Otomasyon:<\/strong> Manuel hatalar\u0131 ortadan kald\u0131r\u0131r ve da\u011f\u0131t\u0131m s\u00fcre\u00e7lerini h\u0131zland\u0131r\u0131r.<br \/>\n*   <strong>H\u0131z:<\/strong> Geli\u015ftiricilerin kodlar\u0131n\u0131 daha h\u0131zl\u0131 bir \u015fekilde \u00fcretim ortam\u0131na ula\u015ft\u0131rmas\u0131n\u0131 sa\u011flar.<br \/>\n*   <strong>G\u00fcvenilirlik:<\/strong> Tutarl\u0131 ve tekrarlanabilir da\u011f\u0131t\u0131mlar sayesinde \u00fcretim ortam\u0131n\u0131n istikrar\u0131n\u0131 art\u0131r\u0131r.<br \/>\n*   <strong>\u00d6l\u00e7eklenebilirlik:<\/strong> Kubernetes&#8217;in sa\u011flad\u0131\u011f\u0131 esneklik sayesinde uygulama kolayca \u00f6l\u00e7eklenebilir.<\/p>\n<p><strong>Gelecek Ad\u0131mlar:<\/strong><br \/>\nBu kurulum, sa\u011flam bir ba\u015flang\u0131\u00e7 noktas\u0131d\u0131r. Uygulaman\u0131z\u0131 daha da geli\u015ftirmek ve \u00fcretim ortam\u0131na uygun hale getirmek i\u00e7in a\u015fa\u011f\u0131daki konular\u0131 d\u00fc\u015f\u00fcnebilirsiniz:<br \/>\n*   <strong>Helm Kullan\u0131m\u0131:<\/strong> Kubernetes uygulamalar\u0131n\u0131 paketlemek ve y\u00f6netmek i\u00e7in Helm kullanmak, karma\u015f\u0131k uygulamalar\u0131n da\u011f\u0131t\u0131m\u0131n\u0131 basitle\u015ftirebilir.<br \/>\n*   <strong>\u0130zleme ve G\u00fcnl\u00fckleme:<\/strong> Uygulaman\u0131z\u0131n performans\u0131n\u0131 ve hatalar\u0131n\u0131 izlemek i\u00e7in Prometheus, Grafana, ELK Stack gibi ara\u00e7lar\u0131 entegre edin.<br \/>\n*   <strong>Daha Geli\u015fmi\u015f CI\/CD Senaryolar\u0131:<\/strong> Ortam bazl\u0131 da\u011f\u0131t\u0131mlar (geli\u015ftirme, test, \u00fcretim), manuel onay ad\u0131mlar\u0131, A\/B testi da\u011f\u0131t\u0131mlar\u0131 gibi daha karma\u015f\u0131k CI\/CD stratejilerini ke\u015ffedin.<br \/>\n*   <strong>Veritaban\u0131 ve Kal\u0131c\u0131 Depolama:<\/strong> Uygulaman\u0131z\u0131n bir veritaban\u0131na ihtiyac\u0131 varsa, DigitalOcean Managed Databases veya Kubernetes Persistent Volumes kullanarak kal\u0131c\u0131 depolama \u00e7\u00f6z\u00fcmlerini entegre edin.<br \/>\n*   <strong>API Gateway ve Ingress:<\/strong> Trafik y\u00f6netimi, SSL sonland\u0131rma ve birden fazla hizmeti tek bir giri\u015f noktas\u0131ndan y\u00f6netmek i\u00e7in Kubernetes Ingress Controller veya bir API Gateway kullan\u0131n.<br \/>\n*   <strong>Test Otomasyonu:<\/strong> Birim testleri, entegrasyon testleri ve u\u00e7tan uca testleri CI\/CD hatt\u0131n\u0131za dahil ederek yaz\u0131l\u0131m kalitesini art\u0131r\u0131n.<\/p>\n<p>Bu rehberin, Node.js uygulamalar\u0131n\u0131z\u0131 DigitalOcean Kubernetes&#8217;e Semaphore CI\/CD ile da\u011f\u0131tma yolculu\u011funuzda size yard\u0131mc\u0131 olmas\u0131n\u0131 umuyoruz.<\/body><\/p>\n","protected":false},"excerpt":{"rendered":"Node.js Uygulamas\u0131n\u0131 DigitalOcean Kubernetes&#8217;e Semaphore CI\/CD ile Da\u011f\u0131tma Rehberi\nGiri\u015f\nModern yaz\u0131l\u0131m geli\u015ftirme s\u00fcre\u00e7leri, h\u0131z, g\u00fcveni","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":[1328],"tags":[],"class_list":{"0":"post-37529","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-bash","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>Node.js Uygulamas\u0131n\u0131 DigitalOcean Kubernetes&#039;e Semaphore CI\/CD ile Da\u011f\u0131tma 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\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Node.js Uygulamas\u0131n\u0131 DigitalOcean Kubernetes&#039;e Semaphore CI\/CD ile Da\u011f\u0131tma Rehberi\" \/>\n<meta property=\"og:description\" content=\"Node.js Uygulamas\u0131n\u0131 DigitalOcean Kubernetes&#039;e Semaphore CI\/CD ile Da\u011f\u0131tma Rehberi Giri\u015f Modern yaz\u0131l\u0131m geli\u015ftirme s\u00fcre\u00e7leri, h\u0131z, g\u00fcveni\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/\" \/>\n<meta property=\"og:site_name\" content=\"Kodlar\u0131n Gizemli D\u00fcnyas\u0131\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-07T17:40:57+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=\"20 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/\"},\"author\":{\"name\":\"Fatih Soysal\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"headline\":\"Node.js Uygulamas\u0131n\u0131 DigitalOcean Kubernetes&#8217;e Semaphore CI\/CD ile Da\u011f\u0131tma Rehberi\",\"datePublished\":\"2026-01-07T17:40:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/\"},\"wordCount\":3000,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"articleSection\":[\"Bash\"],\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/#respond\"]}],\"copyrightYear\":\"2026\",\"copyrightHolder\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/\",\"name\":\"Node.js Uygulamas\u0131n\u0131 DigitalOcean Kubernetes'e Semaphore CI\/CD ile Da\u011f\u0131tma Rehberi - Kodlar\u0131n Gizemli D\u00fcnyas\u0131\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\"},\"datePublished\":\"2026-01-07T17:40:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/fatihsoysal.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Node.js Uygulamas\u0131n\u0131 DigitalOcean Kubernetes&#8217;e Semaphore CI\/CD ile Da\u011f\u0131tma 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":"Node.js Uygulamas\u0131n\u0131 DigitalOcean Kubernetes'e Semaphore CI\/CD ile Da\u011f\u0131tma 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\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/","og_locale":"tr_TR","og_type":"article","og_title":"Node.js Uygulamas\u0131n\u0131 DigitalOcean Kubernetes'e Semaphore CI\/CD ile Da\u011f\u0131tma Rehberi","og_description":"Node.js Uygulamas\u0131n\u0131 DigitalOcean Kubernetes'e Semaphore CI\/CD ile Da\u011f\u0131tma Rehberi Giri\u015f Modern yaz\u0131l\u0131m geli\u015ftirme s\u00fcre\u00e7leri, h\u0131z, g\u00fcveni","og_url":"https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/","og_site_name":"Kodlar\u0131n Gizemli D\u00fcnyas\u0131","article_published_time":"2026-01-07T17:40:57+00:00","author":"Fatih Soysal","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Fatih Soysal","Tahmini okuma s\u00fcresi":"20 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/#article","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/"},"author":{"name":"Fatih Soysal","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"headline":"Node.js Uygulamas\u0131n\u0131 DigitalOcean Kubernetes&#8217;e Semaphore CI\/CD ile Da\u011f\u0131tma Rehberi","datePublished":"2026-01-07T17:40:57+00:00","mainEntityOfPage":{"@id":"https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/"},"wordCount":3000,"commentCount":0,"publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"articleSection":["Bash"],"inLanguage":"tr","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/#respond"]}],"copyrightYear":"2026","copyrightHolder":{"@id":"https:\/\/fatihsoysal.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/","url":"https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/","name":"Node.js Uygulamas\u0131n\u0131 DigitalOcean Kubernetes'e Semaphore CI\/CD ile Da\u011f\u0131tma Rehberi - Kodlar\u0131n Gizemli D\u00fcnyas\u0131","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/#website"},"datePublished":"2026-01-07T17:40:57+00:00","breadcrumb":{"@id":"https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fatihsoysal.com\/blog\/node-js-uygulamasini-digitalocean-kubernetese-semaphore-ci-cd-ile-dagitma-rehberi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/fatihsoysal.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Node.js Uygulamas\u0131n\u0131 DigitalOcean Kubernetes&#8217;e Semaphore CI\/CD ile Da\u011f\u0131tma 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\/37529","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=37529"}],"version-history":[{"count":1,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/37529\/revisions"}],"predecessor-version":[{"id":37530,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/37529\/revisions\/37530"}],"wp:attachment":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/media?parent=37529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/categories?post=37529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/tags?post=37529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}