26/04/2025

K8s – Components

  1. Service

A static IP address thats attached to each Pod so that when pod dies a new one comes with a new IP address but Service is attached so other applications (pods) will keep accessing it.

  1. Ingress

The entry point for external users.

  1. ConfigMap

Podlar servisler ile konusuyor ama cesitli degiskenler kullaniyorlar. Örnegin DB URL iste bu degiskenleri application a ulastiran sey Config map.

  1. Secrets

Temelde configmap ama veriyi plain(username, password gibi) text olarak degilde base64 encoded olarak sakliyor. K8s bunlari encrypt etmez dolayisi ile ayri bir tool a ihtiyac var.

  1. Volume
    Pod a bir disk bagliyor bu local veya remote olabilir. K8s verinin kaliciligini yönetmiyor dolayisiyla admin backup vs den sorumlu.
  2. Deployment
    Service sadece podun baglandigi sey degildir ayni zamanda bir loadbalancerdir. Ayni pod dan birden fazla oldugunda diger podlar bunlara Servisler ile erisir ancak birde cok pod tanimladimiz yer Deployment dir. Normalde podlar la degil deploymentlar ile calisilir k8s de.
  3. Stateful set
    mesela iki db ayni yere yaziyor bu durumda data inconsistency olusur. Bunu engellemek ve kimin is yapacagina karar vermek icin staful durumlarda (örnegin DB) statefull set kullanilir. u applicationlar statefull set ile olusuturulur Deployment ile DEGIL. Ancak stateful set olusturmak cok da kolay degildir bu nedenle genellikle DB ler K8s disinda olusturulur.