kubectl ile Çalışma: Küme Denetim Aracınız
Bir Kubernetes kümesindeki her kaynağı incelemek, oluşturmak ve yönetmek için kullanılan komut satırı aracı kubectl ile uygulamalı çalışın.
kubectl ile Çalışma: Küme Denetim Aracınız, CoddyKit'te ücretsiz bir Docker & Kubernetes for Developers dersidir. Bu, 4 dersinin 4. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, Docker & Kubernetes for Developers öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. Docker & Kubernetes for Developers kursu toplamda 4 dersten oluşur.
Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.
What Is kubectl
kubectl is the official CLI that talks to the Kubernetes API server. Nearly every cluster operation, creating, reading, updating, deleting resources, goes through it.
Configuring Cluster Access
kubectl reads a kubeconfig file (default ~/.kube/config) that holds cluster endpoints, users, and credentials grouped into contexts.
kubectl config get-contexts
kubectl config use-context my-clusterListing Resources with get
kubectl get lists resources. Add -o wide for more columns or -A for all namespaces.
kubectl get pods
kubectl get pods -o wide
kubectl get nodes -AInspecting with describe
kubectl describe shows detailed, human-readable status plus an events section that is invaluable for debugging.
kubectl describe pod my-podCreating Resources
Apply a manifest file with kubectl apply -f. This is declarative: you describe the desired state and Kubernetes reconciles to it.
kubectl apply -f deployment.yamlImperative Quick Creates
For quick experiments you can create resources imperatively.
kubectl create deployment web --image=nginx
kubectl run tmp --image=busybox --restart=Never -- sleep 3600Viewing Logs
Stream container output with kubectl logs. Use -f to follow and --previous to see a crashed container.
kubectl logs my-pod -f
kubectl logs my-pod --previousExecuting Into a Pod
Open a shell inside a running container to debug interactively.
kubectl exec -it my-pod -- /bin/shEditing and Deleting
Edit live resources or remove them. Prefer editing manifests in git over edit for production.
kubectl edit deployment web
kubectl delete pod my-podNamespaces and Scoping
Most commands accept -n namespace. Set a default namespace to avoid repeating it.
kubectl get pods -n kube-system
kubectl config set-context --current --namespace=devOutput Formats
Use -o yaml or -o json to see the full object, and -o jsonpath to extract a single field.
kubectl get pod my-pod -o yaml
kubectl get pod my-pod -o jsonpath="{.status.phase}"Quick Check
Test what you have learned.
Recap
You practiced the core kubectl verbs: get, describe, apply, logs, exec, delete, plus contexts, namespaces, and output formats to control and debug your cluster.
Sıkça Sorulan Sorular
“kubectl ile Çalışma: Küme Denetim Aracınız” dersi ücretsiz mi?
Evet — “kubectl ile Çalışma: Küme Denetim Aracınız” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve Docker & Kubernetes for Developers kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. Docker & Kubernetes for Developers kursu toplamda 4 dersten oluşur.
“kubectl ile Çalışma: Küme Denetim Aracınız” dersinde ne öğreneceğim?
Bir Kubernetes kümesindeki her kaynağı incelemek, oluşturmak ve yönetmek için kullanılan komut satırı aracı kubectl ile uygulamalı çalışın. Docker & Kubernetes for Developers ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.
Docker & Kubernetes for Developers öğrenmeye başlamak için deneyim gerekli mi?
Önceden deneyim gerekmez. CoddyKit'te Docker & Kubernetes for Developers, başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 4. dersidir.
“kubectl ile Çalışma: Küme Denetim Aracınız” dersi ne kadar sürer?
Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.
Bu Docker & Kubernetes for Developers dersinde kod yazıp çalıştırabilir miyim?
Evet. Her Docker & Kubernetes for Developers dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.
Bu kursun tüm dersleri
- Kubernetes'e giriş ve önemi
- Kubernetes mimarisi ve bileşenleri
- İlk pod'unuzu dağıtma
- kubectl ile Çalışma: Küme Denetim Aracınız