Day 5 Flow



Docker terminology - > Image (hub/local) -> Container -> Registry - Notary (security source/token) - Docker Machine - Stack(service/deploy/yml) - Swarm(define network/bridge/overlay/) - Cluster - super cluster

RAFT Alogorithm



Two options:
kubectl CLI 
kub dashboard

Both of these talk to kubernetes master and it intern talks to image repository (where registry is pointed be it local or hub docker.etc.)
----
Image repository contains:
here each kub is machine and these are nodes.

minikube is a node. node is somewhat related to docker machine but it does more then docker machine.

In nodes,  pods, pods containing containers, containers contain images.
this pod is not present in docker.

In kub , IPs are at node level.
------
kubernetes- master
Following processes present:
API server - its a process, transmits data to relevant nodes. which is nearest node, free node, load balancing.

controller - takes care of replicating pods. min level and max level.
- replication controller
- scheduling controller - (for jobscheduling and tasks)

Inside node there's proxy object. helps to connect nodes/container/pods.

Events - 
takes care of
threads
threads
proximity


once container created in kube it automatically starts.

collection of kubernetes-master is called namespace.

in docker, there's notary . here in kub , it's called secure. which is equivalent to notary.
encrypted in format byte64.


default--
kube-system
kube-admin


minikube is single node cluster. one onde multiple elements.
sometimes app we can try on single node if it works, we take to multi cluster environment

like minikube which is single node cluster ,kubeadm is also a utility. this is 8 node cluster. it is free. we should have linux enterprise or windows server.

Flucker - this is 32 node cluster available.

Super ultra kub cluster - 1024 node cluster.




KN
Image - Image(S)- Container(s)- POD- Proxy - secure - PODS - - Nodes(minikube 1 node/kubeadm 8 node) - Namespsaces- cluster - super cluster (super ultra cluster)



C:\Users\kubectl version
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-03-26T16:55:54Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"", Minor:"", GitVersion:"v1.9.0", GitCommit:"925c127ec6b946659ad0fd596fa959be43f0cc05", GitTreeState:"clean", BuildDate:"2018-01-26T19:04:38Z", GoVersion:"go1.9.1", Compiler:"gc", Platform:"linux/amd64"}



following command shows api supported by kub/features available, written in go.
these are lib files.
C:\Users\>kubectl api-versions
admissionregistration.k8s.io/v1alpha1
admissionregistration.k8s.io/v1beta1
apiextensions.k8s.io/v1beta1
apiregistration.k8s.io/v1beta1
apps/v1
apps/v1beta1
apps/v1beta2
authentication.k8s.io/v1
authentication.k8s.io/v1beta1
authorization.k8s.io/v1
authorization.k8s.io/v1beta1
autoscaling/v1
autoscaling/v2beta1
batch/v1
batch/v1beta1
batch/v2alpha1
certificates.k8s.io/v1beta1
events.k8s.io/v1beta1
extensions/v1beta1
networking.k8s.io/v1
policy/v1beta1
rbac.authorization.k8s.io/v1
rbac.authorization.k8s.io/v1alpha1
rbac.authorization.k8s.io/v1beta1
scheduling.k8s.io/v1alpha1
settings.k8s.io/v1alpha1
storage.k8s.io/v1
storage.k8s.io/v1alpha1
storage.k8s.io/v1beta1
v1



kubectl expose deployment dh-nginx --type=NodePort  (exposing the service/container that is created and shows up in browser)


C:\Users\>kubectl get service
NAME         TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)        AGE
dh-nginx     NodePort    10.108.143.72   <none>        80:31444/TCP   43s
kubernetes   ClusterIP   10.96.0.1       <none>        443/TCP        2h


kub always use dynamic ports. it is faster
in docker ther'es option to specify

in kub - when container is created, pod gets created.



one node can have one proxy in kub.
one proxy per pod can also be configured.
n pods / n proxy can be done.


In kub -
command: ["printenv"]  is an entrypoint.
args is CMD which is present in docker.


Comments

Popular posts from this blog

Day 2 recap questions walkthrough (certification kind of)

Day 5

Day 1 - Notes