Posts

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 ma...

disadvantages of docker

- New plugins' cannot be uptaken - Architectural issues singleton - Mgmt info - CLI - If any incident happens healing is attemptive. before it reaches to threshold there's error coming in system and want to repair. this is not seen in docker. - start/service- when container is created i need to run service to get into container. - Event management -not seen in docker - Incident management is issue management. - Flexibility - market proven. should be able to use plugins available in market easily. docker - container management or container network management kub - cluster managment less orchestrator, auto healing,

Day 5 Q & A Recap

1. Docker-machine -- Do they reuse IP ? A: yes. 2. Volumes created within a docker-engine , Is this machine dependent, If yes - how one should share the volume? A: volume created on dock engine is not m/c independent. can be exported as tarball. 3. Can we host a windows container in docker tool box - Say a Nano Server or ASP.NET? A: docker toolbox doesn't allow to host windows containers. need to have enterprise edition. 4.What is your recommendation for Multi container management ,with Limited central    control? A: docker-compose. if its multi container that means docker-compose can be used with yaml file. 5.A new feature has come up in Docker newer version - Can we test and use them in Docker - Any guidelines we should follow to incorporate? A: if experiemental CLI is enabled then it can be done. in the docker version command docker cli is enabled/disabled can be verified. either config.json or docker version command. 6.Once docker-machines are connected ...

Day 4

Yet another markup language  bring services and business logic together To relate microservices together, i.e yaml - data generalization - business logic specification. html - we do for data to display. yaml is mark down language - im not worried about data display, worried about how business logic connected. if service is depends on other two images, we specify in yaml. In yaml - syntax is specific to service or application level yaml tell you - what are services - how are connected it is not programming language or logic based language it tells dependency between services/containers/images program can be called inside yaml file. but yaml is not for logic approach. it is for data generalization. there are three types of languages: language  1 - logic and application flow - this is generation lang 3gl language 2 - markup language - for visual display. html , ojet. service side scripting languages - adf, node js language 3 - generalization language . u...

Day 5

Installation Kuberenetes Download kubernetes and minikube https://github.com/kubernetes/minikube/releases (v.25.0) - download file    minikube-windows-amd64  (rename to minikube.exe) https://storage.googleapis.com/kubernetes-release/release/v1.10.0/bin/windows/amd64/kubectl.exe place these two exe in C:\Windows\System32 In command prompt launch minikube start Troubleshooting: Make sure proxy is disabled. If there are issues in starting minikube delete the .minikube directory from c:\users\<username>\.minikube and restart the machine and invoke minikube start Command Prompt> minikube start Starting local Kubernetes v1.9.0 cluster... Starting VM... Downloading Minikube ISO  142.22 MB / 142.22 MB [============================================] 100.00% 0s Getting VM IP address... Moving files into cluster... Downloading localkube binary  162.41 MB / 162.41 MB [============================================] 100.00% 0s  0 B...

Day 3

Two types of volumes 1) Local - within docker machine, scope is within container. 2) Flocker -  is a driver, helps to have volume outside local machine. it can be in cloud/IP/server/host. docker machine should have access to target. communicating from one container to antoher is -e option via environment variable. if data is more, then volume level. first level communication  is : data communication volume communicaton network communication In docker, two methods of volume association: 1) -v 2) --mount - came into existence since 17.0 Difference between these two options: performance wise - same. error and mgmt perspective -  (--mount) is good compared to -v. Duplex communication: container can update data in mnt location. and mnt can update container.  i.e RW container reads from mount and cannot do modification to mnt i.e R only mnt can see where is the container but container cannot see where it's mounted.  In -v option, ...

Day 2 recap questions walkthrough (certification kind of)

-- Answer them as Best Recommendation, As Devops you hold a key to Performance ============================================================================== 1. What is best to execute a script for every container initialization ? A: container initialization - means content gets created so  it is ENTRYPOINT to be used. creation/initialization all are same. 2. In case of Image Build for question 1? A: use RUN 3. When to use between --env-file , -e and ENV in Dockerfile ? 4. If there is a large Database like RDBMS, What kind of binding is recommended? A: use volume outside docker machine 5. When we use 2 Hosts in picture - Which network driver is best suited ? A: overlay is the driver. when there's one host, it's bridge. overlay is two independent IP docker machine. 6. A Service running or restarting in a container - what is the state of container status ? A:  docker top <> 7. An Active Running container creates a performance issue - As devops wh...