
Konular 2025 mart güncelleme öncesi müfredat olarak anlatılsada// başvuru adımlar ve uygulamalar aynı bilginize .09.12.2025
Bölüme Ait Tüm yazılı kaynaklar ve eğitim sunumuna buradan ulaşabilirsiniz .
Ders takibinin etkin sağlanması adına Bölüme ait GitHub reposuna tüm .yml içeriklerine aşağıdaki repo adresinden ulaşabilirsiniz.
https://github.com/ahmetcanyilmaz2022/CKA.git
Bir sonraki video kaydından oluşan dersimizde ilgili sorulara ait Lab ortamında çözümler mevcuttur
Q1: Scale the deployment web-app to 3 pods.
Q2: Set image deployment opslab to nginx:alpine
Q3: Set the number of deployment replicas named opslab to 5 and get the record output with the history command.
Q4: Revert the deployment named opslab to the previous replica number and check
Q5: Create a deployment containing 5 replicas in the nginx image named student
Q6: Observe and resolve the error on the deployment named crash
!Soru Çözümleri bir sonraki ders kaydı olan videomuzda yer almaktadır.!
Q1:
Add a taint to the worker1 node with the following specification: environment=production:NoSchedule. Create a pod named sample-pod that tolerates the taint on worker1 so that it can be scheduled on this node. Verify that the pod is running on worker1.
Q2:
Schedule a pod as follows:
✑ Name: nginx-kusc00401
✑ Image: nginx
✑ Node selector: disk=ssd
Must match pod worker1
Q1:
Create a pod named nginx-pod with the nginx image.
Add a liveness probe to the pod with the following conditions: HTTP GET probe to the /healthz endpoint on port 80.
Set the initial delay for the probe to 3 seconds.
Set the period for the probe to 5 seconds.
Apply the configuration to create the pod and ensure the liveness probe is properly configured.
https://kubernetes. o/docs/tasks/conf gure-pod-conta ner/conf gure-l veness-read ness-startup-probes/
Q2:
Create a pod named nginx-pod with the nginx image.
Add a readiness probe to the pod with the following conditions: HTTP GET probe to the /readiness endpoint on port 80.
Set the initial delay for the probe to 5 seconds.
Set the period for the probe to 5 seconds.
Apply the configuration to create the pod and ensure the readiness probe is properly configured.
https://kubernetes. o/docs/tasks/conf gure-pod-conta ner/conf gure-l veness-read ness-startup-probes/
! Çözümler bir sonraki video ders kaydında !
Bölüme Ait Tüm yazılı kaynaklar ve eğitim sunumuna buradan ulaşabilirsiniz .
Ders takibinin etkin sağlanması adına Bölüme ait GitHub reposuna tüm .yml içeriklerine aşağıdaki repo adresinden ulaşabilirsiniz.
https://github.com/ahmetcanyilmaz2022/CKA.git
Q1:
Reconfigure the existing deployment front-end and add a port specification named http exposing port 80/TCP of the existing container nginx.
Create a NodePort service that meets the following requirements:
Service Name: front-end-svc
Container Port: http
NodePort: (automatically assigned or specify one if needed)
After creating the service, ensure it exposes the individual Pods via a NodePort on the nodes on which they are scheduled.
Q2:
Create a NodePort service that meets the following requirements:
Pod Name: nginx-pod
Image: nginx
NodePort Service Name: nginx-service
NodePort: 30080
Port: 80
After creating the service, ensure it can be accessed on port 30080 on all nodes in the cluster
Q1:
Create a persistent volume with name app-data, of capacity 10Mi and access mode ReadOnlyMany. The type of volume is hostPath and its location is “/srv/app-data”.
Q2:
Create a new PersistentVolumeClaim:
Name: pv-volume
Capacity: 10Mi
accessMode: ReadWriteOnce
class: hostpath
Create a new Pod which mounts the PersistentVolumeClaim as a volume:
Name: web-server
Image: nginx
Mount path: /usr/share/nginx/html
Configure the new Pod to have ReadWriteOnce access on the volume
! Soru Çözümleri bir sonraki video ders içeriğinde mevcuttur.!
Q1:
Create a Kubernetes Pod with the following specifications:
Pod Name: opslab-env-multi-pod
Container 1:
Name: nginx&image
Environment Variable:
Name: USER
Value: admin
Container 2:
Name: busybox&image
Command: sleep "4000"
This question asks to create a pod with two containers, an environment variable in the first container, and a command in the second one.
! Soru çözümleri bir sonraki ders içeriği videosunda mevcuttur!
Q1:
Create a ConfigMap named app-config with the following key-value pairs:
APP_ENV: production
Then, create a Pod named web-server with the image nginx that uses the app-config ConfigMap to set the environment variable APP_ENV for the container.
!Soru çözümleri bir sonraki ders içeriği videosunda mevcuttur !
Q1:
Create a Secret named my-secret with the following data:
username: OpsLabUser
password: Password
Then, create a Pod with the following specifications:
Name: secret-pod
Container Name: secret-container
Image: nginx
Configure the Pod to use my-secret as environment variables:
Set an environment variable USERNAME using the username key from my-secret
Set an environment variable PASSWORD using the password key from my-secret
Note: Verify that the Pod is successfully using the Secret data as environment variables.
! Soru Çözümleri Bir sonraki ders içeriğinde mevcuttur!
Bölüme Ait Tüm yazılı kaynaklar ve eğitim sunumuna buradan ulaşabilirsiniz .
Ders takibinin etkin sağlanması adına Bölüme ait GitHub reposuna tüm .yml içeriklerine aşağıdaki repo adresinden ulaşabilirsiniz.
https://github.com/ahmetcanyilmaz2022/CKA.git
Q1:
Create a DaemonSet YAML file with the following specifications:
Image: nginx
Namespace: daemon
The DaemonSet should run on both the master node and worker node.
The name of the DaemonSet should be "student".
How would you write the YAML file based on these requirements?
Q2:
Create a simple Pod YAML file with the following specifications:
Image: nginx
Include resource limits and requests for both CPU and memory.
CPU request: 100m (millicores)
Memory request: 200M
CPU limit: 200m (millicores)
Memory limit: 400M
How would you write the YAML file to fulfill these requirements?
! Soru Çözümleri bir sonraki video ders kaydında mevcuttur!
Q1:
Kubernetes Job with Retry Policy and Completion Requirements
You are required to create a Job in Kubernetes. The Job should run a specific command and keep retrying until it completes successfully. Configure the Job according to the following requirements:
The Job should be named "opslab".
Each pod should use the busybox image and run the command: echo "Hello OpsLab!" .
Completions: The Job should be considered complete after successfully running at least 3 pods.
BackoffLimit: The Job should retry up to 5 times if a pod fails.
RestartPolicy: Never. Pods should not automatically restart if they fail.
Create a Kubernetes Job YAML file that meets the above requirements and explain each part of the configuration.
Q1:
Create a new nginx Ingress resource as follows:
✑ Name: pong
✑ Namespace: ing-internal
✑ Exposing service hello on path /hello using service port 5678
ADD :annotations: nginx.ingress.kubernetes.io/rewrite-target: /
Q2:
Create a new nginx Ingress resource as follows:
• Name: ping
• Namespace: ing-custom
• Exposing service hi on path /hi using service port 5678
! Soru Çözümleri Bir sonraki ders kaydı videosunda mevcuttur !
Q1:
Create a new NetworkPolicy named allow-port-from-namespace in the existing namespace fubar.
Ensure that the new NetworkPolicy allows Pods in namespace internal to connect to port 9000 of Pods in namespace fubar.
Further ensure that the new NetworkPolicy:
✑ does not allow access to Pods, which don't listen on port 9000
✑ does not allow access from Pods, which are not in namespace internal
https://kubernetes.io/docs/concepts/services-networking/network-policies/
Q2:
Create a new NetworkPolicy named allow in the existing namespace echo.
Ensure that the new NetworkPolicy allows Pods in namespace internal to connect to port 9200/tcp of Pods in namespace echo.
Further ensure that the new NetworkPolicy:
• does not allow access to Pods, which don't listen on port 9200/tcp
• does not allow access from Pods, which are not in namespace internal
https://kubernetes.io/docs/concepts/services-networking/network-policies/
! Soru Çözümleri Bir sonraki ders kaydı videosunda mevcuttur !
Q1:
You have been asked to create a new ClusterRole for a deployment pipeline and bind it to a specific ServiceAccount scoped to a specific namespace. Task -
Create a new ClusterRole named deployment-clusterrole, which only allows to create the following resource types:
✑ Deployment
✑ Stateful Set
✑ DaemonSet
Create a new ServiceAccount named cicd-token in the existing namespace app-team1.
Bind the new ClusterRole deployment-clusterrole to the new ServiceAccount cicd-token, limited to the namespace app-team1.
! Soru Çözümleri Bir sonraki ders kaydı videosunda mevcuttur !
*****ımperatıve commands****
kubectl create role
Create a Role named "pod-reader" that allows users to perform get, watch and list on pods: kubectl create role pod-reader --verb=get --verb=list --verb=watch --resource=pods --namespace=default
/////////////////////////////////
kubectl create rolebinding
Within the namespace "acme", grant the permissions in the "view" ClusterRole to the service account in the namespace "acme" named "myapp":
kubectl create rolebinding myapp-view-binding --clusterrole=view --serviceaccount=acme:myapp --namespace=acme
//////////////////////////////
kubectl create clusterrole
Create a ClusterRole named "pod-reader" that allows user to perform get, watch and list on pods:
kubectl create clusterrole pod-reader --verb=get,list,watch --resource=pods --namespace=default
//////////////////////////////
kubectl create cluster rolebinding
Across the entire cluster, grant the permissions in the "view" ClusterRole to a service account named "myapp" in the namespace "acme":
kubectl create clusterrolebinding myapp-view-binding --clusterrole=view --serviceaccount=acme:myapp
https://kubernetes.io/docs/reference/access-authn-authz/rbac/
Q1:
First, create a snapshot of the existing etcd instance running at https://127.0.0.1:2379, saving the snapshot to /var/lib/etcd-snapshot
! Soru Çözümleri bir sonraki ders kaydı videosunda mevcuttur.!
Q1:
Set the node named worker1 as unavailable and reschedule all the pods running on it. Reveal Solution
! Soru Çözümleri bir sonraki ders kaydı videosunda mevcuttur.!
Q1:
You have an existing Kubernetes cluster, and you want to add a new node named node01 to this cluster. How would you create the necessary join command to add this node?
Q1:
In your Kubernetes cluster, a node named worker1 is not functioning. You need to SSH into worker1 and restart the node.
! Soru Çözümleri Bir Sonraki ders kaydı videosunda mevcuttur!
CrashLoopBackOff: Pod sürekli çöküyor ve yeniden başlatılamıyor. Sebep genellikle uygulama hatası.
ImagePullBackOff: Container image’ı çekilemiyor. Sebep genellikle yanlış image adı veya erişim sorunu.
ErrImagePull: Image çekilemiyor. Genellikle image yok veya yanlış tag kullanımı.
PodPending: Pod başlatılamıyor. Genellikle kaynak yetersizliği (CPU, RAM) nedeniyle.
Evicted: Pod, kaynak eksikliği nedeniyle node'dan çıkarıldı. DeadlineExceeded: İşlem belirtilen süre içinde tamamlanamadı.
Q1:
How would you retrieve the logs of the database-pod ?
and save them to a file named log.txt
Q2:
Monitor the logs of pod nginx and:
Extract log lines “nginx”
Write them to podlog/dev/nginx.txt
Q3:
How would you retrieve the logs of all containers in pods with the label app=frontend and save them to a file named frontend.txt?
Q4:
How would you retrieve the names of all nodes in your Kubernetes cluster and save them to a file named nodes.txt without displaying the header?
Q5:
How would you write a command to check the deployments in the default namespace to a file named deploy.sh?
! Soru Çözümleri bir sonraki video ders kaydında mevcuttur !
Bölüme Ait Tüm yazılı kaynaklar ve eğitim sunumuna buradan ulaşabilirsiniz .
Ders takibinin etkin sağlanması adına Bölüme ait GitHub reposuna tüm .yml içeriklerine aşağıdaki repo adresinden ulaşabilirsiniz.
https://github.com/ahmetcanyilmaz2022/CKA.git
Temel Kubernetes Nokta Atış Eğitimi
Bu eğitim, Kubernetes’e sağlam bir başlangıç yapmak, profesyonel seviyede pratik kazanmak ve uluslararası sertifikasyonlara hazırlanmak isteyenler için özel olarak tasarlanmış kapsamlı bir kaynaktır. Türkçe olarak hazırlanmış kurs içeriği, hem CKA (Certified Kubernetes Administrator) hem de CKAD (Certified Kubernetes Application Developer) sınavlarına hazırlık niteliğinde olup, aynı zamanda gerçek dünyada Kubernetes ile çalışan herkes için güçlü bir temel oluşturur.
Eğitim yalnızca teorik bilgilerden oluşmaz; aksine, gerçek senaryoları yansıtan uygulamalı laboratuvar ortamları, örnek mimariler ve sınav formatına yakın alıştırmalarla desteklenmiştir. Kubernetes’in temelinden başlayarak; pod yönetimi, Deployment stratejileri, depolama çözümleri, ağ politikaları, RBAC, cluster yönetimi, YAML yapılandırmaları, kubectl kullanım pratikleri gibi tüm kritik konular detaylı bir şekilde ele alınmaktadır.
Güncelleme ile birlikte, eğitim kapsamına Helm de eklenmiştir. Install türevleri, template mekanizması, values dosyaları, ve gerçek dünyada Helm kullanım senaryoları üzerinde basit özet ve sade dille anlatılarak, modern Kubernetes uygulama yönetimi konusunda güçlü bir yetkinlik kazanmanız hedeflenmiştir.
Bu kurs size şunları sağlar:
Gerçeğe Yakın Laboratuvar Ortamları: Öğrendiklerinizi uygulamalı olarak pekiştirme imkânı.
Kapsamlı ve Güncel İçerik: Temel seviyeden ileri seviyeye uzanan Kubernetes ve Helm modülleri.
Soru Çözüm ve Sınav Teknikleri: Zaman yönetimi, ipuçları ve sınavda gerekli pratikler.
Uygulamalı Deneyim: Gerçekçi kullanım senaryoları üzerinden Kubernetes ekosistemini tanıma.
Sürekli Destek: Eğitmen ile birebir iletişim ve sorularınıza hızlı dönüş.
Amacımız, sizi sadece sınavlara hazırlamakla sınırlı kalmadan; Kubernetes ekosistemine hâkim, uygulama yönetimi konusunda yetkin ve profesyonel iş dünyasına hazır bireyler haline getirmektir. Kubernetes ve Helm teknolojilerine sağlam bir giriş yapmak, yetkinlik kazanmak ve uluslararası arenada güçlü bir profil oluşturmak için bu eğitime katılabilirsiniz.