Giter Club home page Giter Club logo

udemy-kubernetes-kurs-ornekleri's Introduction

Kubernetes'e Başlarken adlı Udemy kursu için örnek dosyalar

Bu repo'da, Udemy'de hazırladığım Kubernetes'e Başlarken kursunda kullanılan örnek dosyaları bulabilirsiniz. Kayıt olmak için bu linki takip edebilirsiniz.

Tanıtım videosunu izlemek için aşağıdaki görüntüye tıklayabilirsiniz

Kubernetes'e Başlarken Tanıtım Videosu

Kurs içerisinde kullanılan kubectl ve minikube komutları

minikube komutları

minikube start: minikube'u başlatır.

minikube dashboard: minikube içerisinde çalışan Kubernetes Dashboard pod'unu, port-forward ile kendi bilgisyarınızdan erişebilir hale getirir.

minikube stop: minikube'u durdurur.

minikube status: minikube'un durumunu gösterir.

kubectl komutları

kubectl version: kubectl aracının kendi versiyon bilgisini ve o anda bağlı olduğu cluster'ın versiyon bilgisini gösterir.

kubectl version --client: kubectl aracının kendi versiyon bilgisini gösterir.

kubectl run pod1 --image="imaga-name": İsmi verilen imajdan pod1 adında pod ayağa kaldırır.

kubectl get node: Node'ları listeler.

kubectl get pods: Pod'ları listeler.

kubectl port-forward pod1 8080:80: pod1 adındaki pod'un 80 portunu kendi bilgisayarınızdaki 8080 portuna yönlendirir.

kubectl delete pod pod1: pod1 ismindeki pod objesini siler.

kubectl get pods -w: Pod'ları listeler ve izleme modunu başlatır, herhangi bir değişiklik olduğunda anlık olarak gösterir (-w ya da --watch birçok kubectl komutu ile birlikte kullanılabilir).

kubectl get pods --all-namespaces: Tüm namespace'lerdeki pod'ları listeler (--all-namespaces birçok kubectl komutu ile birlikte çalışır).

kubectl logs pod1: pod1 isminki pod'un loglarını gösterir.

kubectl logs -f pod1: pod1 ismindeki pod'un loglarını anlık olarak gösterir (-f ya da --follow kullanılabilir).

kubectl apply -f example.yml: example.yml içerisindeki yönergeleri uygular.

kubectl exec -i -t pod1 -- bash: pod1 ismindeki pod'a bağlanır ve bash shell'ini açar.

kubectl run pod1 --image="image-name": İsmi verilen imajdan pod1 adında pod ayağa kaldırır.

kubectl get rc: ReplicationController objelerini listeler.

kubectl get rc -o wide: ReplicationController objelerini listeler ekstra birkaç kolon bilgisi daha ekleyerek gösterir (-o wide ya da --output wide birden çok kubectl komutu ile birlikte kullanılabilir)

kubectl config view: kubeconfig dosyasının içeriğini listeler.

kubectl create ns ns2: ns2 adında namespace oluşturur.

kubectl config set-context minikube --namespace=ns2: O anda bulunulan context'i ve namespace'i değiştirir. Bu örnekte minikube context'i içerisindeki ns2 namespace'ine geçiş gösterilmiştir.

kubectl delete ns ns2: ns2 namespace'ini siler.

kubectl scale rc rc2 --replicas=1: rc2 isimli ReplicationController'daki replica (kopya) sayısını 1'e ölçekler.

kubectl get all: Geçerli olan namespace içerisindeki tüm Kubernetes objelerini listeler.

kubectl describe svc service-for-label-1: service-for-label-1 ismindeki service objesinin ayrıntılarını verir.

kubectl get svc: Tüm service'leri listeler.

kubectl rollout history deploy dep4: dep4 isimli Deployment objesi üzerindeki güncelleme durumunu gösterir

kubectl get rs: ReplicaSet'leri listeler.

kubectl rollout undo deploy dep4: dep4 isimli Deployment objesini, bir önceki sürüme getirir (rollback)

Repo'ya katkı verenler

udemy-kubernetes-kurs-ornekleri's People

Contributors

akiffeyzioglu avatar sadedil avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.