Kubernetes Architecture 1
Kubernetes Architecture 1
Kubernetes Architecture 1
------------------------
Kubernetes creates cluster, deploy and manage clusters. ( Clusters are nothing but
group of containers )
Kubernetes Architecture
-------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Containerization Orchestration Containerization
----------- ------------------
Dockerswarm ----------------------------> Docker
Kubernetes ------------------------------- Docker / XYZ
+++++++++
kube api server acts like a receptionist.
It receives the yaml file and pass the request to kube scheduler.
++++++++
kube scheduler will take the action.
So kube scheduler will create pods and containers.
++++++++
What is etcd?
Etcd is also called cluster store.
It has the information of the complete cluster.
+++++++++++
What is controller manager?
It is responsibile to make sure that the actual state is same as desired state.
These four components together called as control plane. ( KUBERNETES MASTER IS
ALSO CALLED AS CONTROL PLANE )
++++++++++
Kubernetes node
---------------
kube proxy --
It will provide IP Address to pod.
+++++++++++++++++++++++++++
Kubernetes Terminology
------------------------
AWS, is expensive
Freeways to work on kubernetes is katakoda
Goto https://www.katacoda.com/
Learn --- --- Kubernetes Introduction -- Start Course
-- Launch Multinode cluster -- Start Scenario
Continue
Continue
Step 3:
Run
kubeadm token list
Continue
Step 4:
Run
kbectl get nodes
You can see one controlplane and one node
++++++++++++++++++++++++++++++++
We learn kuberntes on GCP, as AWS is expensive.
Sign up to GCP account using gmail credentials. ( Free trial comes with USD 300 )
https://cloud.google.com/
Sign in using gmail
Click on console
You will enter into google cloud platform console
Navigation Menu --- Kubernetes Engine -- Clusters -- Create cluster -- Create
Observation: Cluster size is 3
By default, it creates 3 node cluster.
2. Service Object: This is used for port mapping and network load balancing.-
Protocol & port number ?
3. NameSpace: This is used for creating partitions in the cluster. Pods running in
a namespace cannot communicate with other pods running in other namespace.
4. Secrets: This is used for passing encrypted data to the pods. - Encryption ?
6. Deployment: This is used for performing all activites that a ReplicaSet can do.
It can also handle rolling updates.