Skip to content

Latest commit

 

History

History
148 lines (100 loc) · 3.14 KB

Kubernetes.md

File metadata and controls

148 lines (100 loc) · 3.14 KB

Kubernetes(k8s) course

image

1. About k8s.

2. Docker Swarm vs k8s.

3. k8s archetecture & components.

* Master

* Node

* Pod

* components
    * Master components
        * etcd       
        * kube-apiserver
        * kube-scheduler
        * kube-controller-manager
            * Node Controller
            * Replication Controller
            * Endpoints Controller
            * Service Account & Token Controllers
        * cloud-controller-manager
            * Node Controller
            * Replication Controller
            * Endpoints Controller
            * Service Account & Token Controllers
        * kubectl
    * Node components
        * kubelet
        * kube-proxy
        * Container Runtime
        
    * Cluster DNS
    
    * Web UI (Dashboard)
    
    * Container Resource Monitoring
    
    * Cluster-level Logging    

3. Kuernetes Objects:

 * Names
 * Namespaces
 * Labels and Selectors
 * Annotations
 * Field Selectors

4. Single-node cluster - minikube

* Single-node cluster setup

* Creating deployments

* Creating services

* Monitor (dashboard)

5. Multi-node cluster - kubeadm/kops

* provisioning the AWS EC2 instances

* multi-node cluster setup

* master and worker node

* Creating/updating/removing/rollback deployments

    * deplloyments using yml files

* Creating services.

* Expose the deployment.

* kubeadm comands
  
     * kubeadm version
     * kubeadm init
     * kubeadm join
     * kubeadm reset
     * kubeadm token
     * kubeadm config

* kops commands

     * kops version
     * kops create
     * kops update
     * kops edit
     * kops get
     * kops validate
     * kops delete
     
* Dashboard UI

6. kubectl commands & examples.

* kubectl help    
* kubectl cluster-info    
* kubectl expose    
* kubectl run    
* kubectl expose    
* kubectl plugin    
* kubectl scale    
* kubectl get   
* kubectl dashboard    
* kubectl describe    
* kubectl create    
* kubectl apply    
* kubectl delete    
* kubectl exec
* kubectl cp
* kubectl rollout    
* kubectl proxy
* kubectl autoscale
* kubectl attach
* kubectl replace

7. Kubernetes Storage

* Volumes

* Persistent Volume

* Difference b/w Volumes & Persistent Volume

8. Examples on Jenkins + Github + maven + nexus + docker + k8s.

* Jenkins, git, maven, nexus, docker, k8s installation on AWS EC2 instance

* Jenkins job setup as to 

     * checkout the code from Github
     
     * build/package using maven
     
     * build the docker file to create docker images
     
     * push the docker images to dockerhub
     
     * deploy the docker image to k8s.